Skip to content

Commit 960322d

Browse files
committed
refactor(*): use pnpm
1 parent 4e37917 commit 960322d

File tree

29 files changed

+23946
-53210
lines changed

29 files changed

+23946
-53210
lines changed

docs/firestore-bundle-builder/api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type QueryCondition = {
9090
| "not-in"
9191
| "array-contains-any"
9292
),
93-
any
93+
any,
9494
];
9595
orderBy?: [string, ("asc" | "desc")?];
9696
limit?: number;

firestore-bigquery-export/firestore-bigquery-change-tracker/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

firestore-bigquery-export/firestore-bigquery-change-tracker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"description": "Core change-tracker library for Cloud Firestore Collection BigQuery Exports",
1010
"main": "./lib/index.js",
1111
"scripts": {
12-
"build": "npm run clean && npm run compile",
12+
"build": "pnpm run clean && pnpm run compile",
1313
"clean": "rimraf lib",
1414
"compile": "tsc",
1515
"test:local": "jest",

firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@ export class FirestoreBigQueryEventHistoryTracker
146146
return undefined;
147147
}
148148

149-
const data = traverse<traverse.Traverse<any>>(eventData).map(function (
150-
property
151-
) {
152-
if (property && property.constructor) {
153-
if (property.constructor.name === "Buffer") {
154-
this.remove();
155-
}
149+
const data = traverse<traverse.Traverse<any>>(eventData).map(
150+
function (property) {
151+
if (property && property.constructor) {
152+
if (property.constructor.name === "Buffer") {
153+
this.remove();
154+
}
156155

157-
if (property.constructor.name === DocumentReference.name) {
158-
this.update(property.path);
156+
if (property.constructor.name === DocumentReference.name) {
157+
this.update(property.path);
158+
}
159159
}
160160
}
161-
});
161+
);
162162

163163
return data;
164164
}

firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/partitioning.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,8 @@ export class Partitioning {
291291
}
292292

293293
async addPartitioningToSchema(fields = []): Promise<void> {
294-
const { proceed, message } = await this.shouldAddPartitioningToSchema(
295-
fields
296-
);
294+
const { proceed, message } =
295+
await this.shouldAddPartitioningToSchema(fields);
297296

298297
if (!proceed) {
299298
functions.logger.warn(`Did not add partitioning to schema: ${message}`);

firestore-bigquery-export/firestore-bigquery-change-tracker/src/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export const bigQueryTableInsertErrors = (
212212
{
213213
row: object;
214214
errors: Array<{ message: string }>;
215-
}
215+
},
216216
]
217217
) => {
218218
logger.warn(`Error when inserting data to table.`);

0 commit comments

Comments
 (0)