@entropic-bond/firebase 1.13.31 → 1.13.32
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.
|
@@ -47453,12 +47453,21 @@ var $ = class e {
|
|
|
47453
47453
|
});
|
|
47454
47454
|
}
|
|
47455
47455
|
onDocumentChange(e, t, n) {
|
|
47456
|
-
|
|
47457
|
-
|
|
47458
|
-
|
|
47456
|
+
let r = $.instance.firestore(), i;
|
|
47457
|
+
return kg(Ml(r, e, t), (t) => {
|
|
47458
|
+
let r = t.exists();
|
|
47459
|
+
if (i === void 0 && !r) {
|
|
47460
|
+
i = r;
|
|
47461
|
+
return;
|
|
47462
|
+
}
|
|
47463
|
+
i = r, n({
|
|
47464
|
+
type: r ? "update" : "delete",
|
|
47459
47465
|
before: void 0,
|
|
47460
47466
|
after: t.data(),
|
|
47461
|
-
params:
|
|
47467
|
+
params: {
|
|
47468
|
+
...t.metadata,
|
|
47469
|
+
exists: r
|
|
47470
|
+
},
|
|
47462
47471
|
collectionPath: e
|
|
47463
47472
|
});
|
|
47464
47473
|
});
|