@firebaseextensions/firestore-bigquery-change-tracker 1.1.25 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bigquery/index.js +5 -3
- package/package.json +1 -1
package/lib/bigquery/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.FirestoreBigQueryEventHistoryTracker = exports.RawChangelogViewSchema = exports.RawChangelogSchema = void 0;
|
|
19
19
|
const bigquery = require("@google-cloud/bigquery");
|
|
20
|
-
const
|
|
20
|
+
const firestore_1 = require("firebase-admin/firestore");
|
|
21
21
|
const traverse = require("traverse");
|
|
22
22
|
const node_fetch_1 = require("node-fetch");
|
|
23
23
|
const schema_1 = require("./schema");
|
|
@@ -101,8 +101,7 @@ class FirestoreBigQueryEventHistoryTracker {
|
|
|
101
101
|
if (property.constructor.name === "Buffer") {
|
|
102
102
|
this.remove();
|
|
103
103
|
}
|
|
104
|
-
if (property.constructor.name ===
|
|
105
|
-
firebase.firestore.DocumentReference.name) {
|
|
104
|
+
if (property.constructor.name === firestore_1.DocumentReference.name) {
|
|
106
105
|
this.update(property.path);
|
|
107
106
|
}
|
|
108
107
|
}
|
|
@@ -297,6 +296,9 @@ class FirestoreBigQueryEventHistoryTracker {
|
|
|
297
296
|
schema.fields.push(schema_1.documentPathParams);
|
|
298
297
|
}
|
|
299
298
|
const options = { friendlyName: changelogName, schema };
|
|
299
|
+
if (this.config.kmsKeyName) {
|
|
300
|
+
options["encryptionConfiguration"] = { kmsKeyName: this.config.kmsKeyName };
|
|
301
|
+
}
|
|
300
302
|
//Add partitioning
|
|
301
303
|
await partitioning.addPartitioningToSchema(schema.fields);
|
|
302
304
|
await partitioning.updateTableMetadata(options);
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "github.com/firebase/extensions.git",
|
|
6
6
|
"directory": "firestore-bigquery-export/firestore-bigquery-change-tracker"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.1.
|
|
8
|
+
"version": "1.1.27",
|
|
9
9
|
"description": "Core change-tracker library for Cloud Firestore Collection BigQuery Exports",
|
|
10
10
|
"main": "./lib/index.js",
|
|
11
11
|
"scripts": {
|