firebase-functions 5.0.0 → 5.0.1
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.
|
@@ -50,7 +50,7 @@ function _getValueProto(data, resource, valueFieldName) {
|
|
|
50
50
|
/** @internal */
|
|
51
51
|
function createSnapshotFromProtobuf(data, path, databaseId) {
|
|
52
52
|
if (!firestoreInstance) {
|
|
53
|
-
firestoreInstance = firestore.getFirestore(databaseId);
|
|
53
|
+
firestoreInstance = firestore.getFirestore((0, app_1.getApp)(), databaseId);
|
|
54
54
|
}
|
|
55
55
|
try {
|
|
56
56
|
const dataBuffer = Buffer.from(data);
|
|
@@ -66,7 +66,7 @@ exports.createSnapshotFromProtobuf = createSnapshotFromProtobuf;
|
|
|
66
66
|
/** @internal */
|
|
67
67
|
function createBeforeSnapshotFromProtobuf(data, path, databaseId) {
|
|
68
68
|
if (!firestoreInstance) {
|
|
69
|
-
firestoreInstance = firestore.getFirestore(databaseId);
|
|
69
|
+
firestoreInstance = firestore.getFirestore((0, app_1.getApp)(), databaseId);
|
|
70
70
|
}
|
|
71
71
|
try {
|
|
72
72
|
const dataBuffer = Buffer.from(data);
|
|
@@ -83,7 +83,7 @@ exports.createBeforeSnapshotFromProtobuf = createBeforeSnapshotFromProtobuf;
|
|
|
83
83
|
function createSnapshotFromJson(data, source, createTime, updateTime, databaseId) {
|
|
84
84
|
if (!firestoreInstance) {
|
|
85
85
|
firestoreInstance = databaseId
|
|
86
|
-
? firestore.getFirestore(databaseId)
|
|
86
|
+
? firestore.getFirestore((0, app_1.getApp)(), databaseId)
|
|
87
87
|
: firestore.getFirestore((0, app_1.getApp)());
|
|
88
88
|
}
|
|
89
89
|
const valueProto = _getValueProto(data, source, "value");
|
|
@@ -100,7 +100,7 @@ exports.createSnapshotFromJson = createSnapshotFromJson;
|
|
|
100
100
|
function createBeforeSnapshotFromJson(data, source, createTime, updateTime, databaseId) {
|
|
101
101
|
if (!firestoreInstance) {
|
|
102
102
|
firestoreInstance = databaseId
|
|
103
|
-
? firestore.getFirestore(databaseId)
|
|
103
|
+
? firestore.getFirestore((0, app_1.getApp)(), databaseId)
|
|
104
104
|
: firestore.getFirestore((0, app_1.getApp)());
|
|
105
105
|
}
|
|
106
106
|
const oldValueProto = _getValueProto(data, source, "oldValue");
|