entropic-bond 1.51.10 → 1.51.12

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.
@@ -320,7 +320,12 @@ const M = (d = class {
320
320
  }
321
321
  toReferenceObj(e, t) {
322
322
  const r = this[e.name];
323
- return Array.isArray(r) ? r.map((s) => (e.isPureReference || this.pushDocument(t, d.collectionPath(s, e), s), this.buildRefObject(s, d.collectionPath(s, e), e.cachedProps))) : (e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedProps));
323
+ if (Array.isArray(r)) {
324
+ if (e.cachedProps)
325
+ throw new Error(`${this.className}.${e.name} is an array but cached props are not allowed in array references`);
326
+ return r.map((s) => (e.isPureReference || this.pushDocument(t, d.collectionPath(s, e), s), this.buildRefObject(s, d.collectionPath(s, e), e.cachedProps)));
327
+ } else
328
+ return e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedProps);
324
329
  }
325
330
  buildRefObject(e, t, r) {
326
331
  const s = r == null ? void 0 : r.reduce((n, o) => (e[o] !== void 0 && (n[o] = e[o]), n), {});
@@ -1519,7 +1524,7 @@ const p = class p extends T {
1519
1524
  }
1520
1525
  };
1521
1526
  p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
1522
- let V = p;
1527
+ let $ = p;
1523
1528
  class me extends T {
1524
1529
  constructor() {
1525
1530
  super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
@@ -1625,7 +1630,7 @@ const g = class g {
1625
1630
  }
1626
1631
  };
1627
1632
  g.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
1628
- let $ = g;
1633
+ let V = g;
1629
1634
  class ge {
1630
1635
  constructor(e) {
1631
1636
  this._registeredFunctions = e;
@@ -1717,10 +1722,10 @@ function we(i, e) {
1717
1722
  return e.split(".").reduce((t, r) => t[r], i);
1718
1723
  }
1719
1724
  export {
1720
- V as Auth,
1725
+ $ as Auth,
1721
1726
  me as AuthMock,
1722
1727
  T as AuthService,
1723
- $ as CloudFunctions,
1728
+ V as CloudFunctions,
1724
1729
  ge as CloudFunctionsMock,
1725
1730
  v as CloudStorage,
1726
1731
  C as DataSource,