Skip to content

Commit

Permalink
refactor(*): use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
cabljac committed Aug 8, 2024
1 parent 4e37917 commit 960322d
Show file tree
Hide file tree
Showing 29 changed files with 23,946 additions and 53,210 deletions.
2 changes: 1 addition & 1 deletion docs/firestore-bundle-builder/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type QueryCondition = {
| "not-in"
| "array-contains-any"
),
any
any,
];
orderBy?: [string, ("asc" | "desc")?];
limit?: number;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "Core change-tracker library for Cloud Firestore Collection BigQuery Exports",
"main": "./lib/index.js",
"scripts": {
"build": "npm run clean && npm run compile",
"build": "pnpm run clean && pnpm run compile",
"clean": "rimraf lib",
"compile": "tsc",
"test:local": "jest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,19 @@ export class FirestoreBigQueryEventHistoryTracker
return undefined;
}

const data = traverse<traverse.Traverse<any>>(eventData).map(function (
property
) {
if (property && property.constructor) {
if (property.constructor.name === "Buffer") {
this.remove();
}
const data = traverse<traverse.Traverse<any>>(eventData).map(
function (property) {
if (property && property.constructor) {
if (property.constructor.name === "Buffer") {
this.remove();
}

if (property.constructor.name === DocumentReference.name) {
this.update(property.path);
if (property.constructor.name === DocumentReference.name) {
this.update(property.path);
}
}
}
});
);

return data;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,8 @@ export class Partitioning {
}

async addPartitioningToSchema(fields = []): Promise<void> {
const { proceed, message } = await this.shouldAddPartitioningToSchema(
fields
);
const { proceed, message } =
await this.shouldAddPartitioningToSchema(fields);

if (!proceed) {
functions.logger.warn(`Did not add partitioning to schema: ${message}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const bigQueryTableInsertErrors = (
{
row: object;
errors: Array<{ message: string }>;
}
},
]
) => {
logger.warn(`Error when inserting data to table.`);
Expand Down
Loading

0 comments on commit 960322d

Please sign in to comment.