entropic-bond 1.51.12 → 1.52.0

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.
@@ -321,8 +321,8 @@ const M = (d = class {
321
321
  toReferenceObj(e, t) {
322
322
  const r = this[e.name];
323
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`);
324
+ if (e.cachedProps && !e.searchableArray)
325
+ throw new Error(`${this.className}.${e.name} is an array but cached array props are only allowed in searchable array references`);
326
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
327
  } else
328
328
  return e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedProps);
@@ -402,26 +402,29 @@ function ie(i) {
402
402
  function ne(i, e) {
403
403
  return _({ isReference: !0 })(i, e);
404
404
  }
405
- function oe(i, e) {
406
- return function(t, r) {
407
- return _({
405
+ function oe(i, e, t) {
406
+ return function(r, s) {
407
+ const n = {
408
408
  isReference: !0,
409
- cachedProps: i,
410
- storeInCollection: e
411
- })(t, r);
409
+ cachedProps: e,
410
+ storeInCollection: t,
411
+ typeName: i instanceof l ? i.className : new i().className
412
+ };
413
+ return _(n)(r, s);
412
414
  };
413
415
  }
414
416
  function ae(i, e, t) {
415
417
  return _({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
416
418
  }
417
- function ce(i, e) {
418
- return function(t, r) {
419
+ function ce(i, e, t) {
420
+ return function(r, s) {
419
421
  return _({
420
422
  isReference: !0,
421
423
  isPureReference: !0,
422
- cachedProps: i,
423
- storeInCollection: e
424
- })(t, r);
424
+ cachedProps: e,
425
+ storeInCollection: t,
426
+ typeName: i instanceof l ? i.className : new i().className
427
+ })(r, s);
425
428
  };
426
429
  }
427
430
  function _(i) {
@@ -1395,9 +1398,9 @@ D([
1395
1398
  w = D([
1396
1399
  J("StoredFile")
1397
1400
  ], w);
1398
- class T {
1401
+ class x {
1399
1402
  }
1400
- const p = class p extends T {
1403
+ const p = class p extends x {
1401
1404
  constructor() {
1402
1405
  if (super(), this._onAuthStateChange = new F(), !p._authService)
1403
1406
  throw new Error(p.error.shouldBeRegistered);
@@ -1525,7 +1528,7 @@ const p = class p extends T {
1525
1528
  };
1526
1529
  p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
1527
1530
  let $ = p;
1528
- class me extends T {
1531
+ class me extends x {
1529
1532
  constructor() {
1530
1533
  super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
1531
1534
  }
@@ -1645,9 +1648,9 @@ class ge {
1645
1648
  return e(t);
1646
1649
  }
1647
1650
  }
1648
- class x {
1651
+ class T {
1649
1652
  }
1650
- const m = class m extends x {
1653
+ const m = class m extends T {
1651
1654
  constructor() {
1652
1655
  super();
1653
1656
  }
@@ -1674,7 +1677,7 @@ const m = class m extends x {
1674
1677
  };
1675
1678
  m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
1676
1679
  let k = m;
1677
- class _e extends x {
1680
+ class _e extends T {
1678
1681
  constructor(e) {
1679
1682
  super(), this._userCredentials = e;
1680
1683
  }
@@ -1724,7 +1727,7 @@ function we(i, e) {
1724
1727
  export {
1725
1728
  $ as Auth,
1726
1729
  me as AuthMock,
1727
- T as AuthService,
1730
+ x as AuthService,
1728
1731
  V as CloudFunctions,
1729
1732
  ge as CloudFunctionsMock,
1730
1733
  v as CloudStorage,
@@ -1738,7 +1741,7 @@ export {
1738
1741
  Z as Query,
1739
1742
  k as ServerAuth,
1740
1743
  _e as ServerAuthMock,
1741
- x as ServerAuthService,
1744
+ T as ServerAuthService,
1742
1745
  A as Store,
1743
1746
  w as StoredFile,
1744
1747
  se as StoredFileEvent,