entropic-bond 1.53.20 → 1.53.21

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.
@@ -49,26 +49,26 @@ for (let i = 0; i < 256; ++i)
49
49
  function M(i, e = 0) {
50
50
  return (f[i[e + 0]] + f[i[e + 1]] + f[i[e + 2]] + f[i[e + 3]] + "-" + f[i[e + 4]] + f[i[e + 5]] + "-" + f[i[e + 6]] + f[i[e + 7]] + "-" + f[i[e + 8]] + f[i[e + 9]] + "-" + f[i[e + 10]] + f[i[e + 11]] + f[i[e + 12]] + f[i[e + 13]] + f[i[e + 14]] + f[i[e + 15]]).toLowerCase();
51
51
  }
52
- let O;
52
+ let D;
53
53
  const T = new Uint8Array(16);
54
54
  function x() {
55
- if (!O) {
55
+ if (!D) {
56
56
  if (typeof crypto > "u" || !crypto.getRandomValues)
57
57
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
58
- O = crypto.getRandomValues.bind(crypto);
58
+ D = crypto.getRandomValues.bind(crypto);
59
59
  }
60
- return O(T);
60
+ return D(T);
61
61
  }
62
62
  const B = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), A = { randomUUID: B };
63
- function W(i, e, t) {
63
+ function Q(i, e, t) {
64
64
  i = i || {};
65
65
  const r = i.random ?? i.rng?.() ?? x();
66
66
  if (r.length < 16)
67
67
  throw new Error("Random bytes length must be >= 16");
68
68
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, M(r);
69
69
  }
70
- function Q(i, e, t) {
71
- return A.randomUUID && !i ? A.randomUUID() : W(i);
70
+ function W(i, e, t) {
71
+ return A.randomUUID && !i ? A.randomUUID() : Q(i);
72
72
  }
73
73
  var q = Object.defineProperty, Y = (i, e, t, r) => {
74
74
  for (var s = void 0, n = i.length - 1, o; n >= 0; n--)
@@ -143,7 +143,7 @@ const k = (l = class {
143
143
  * Returns a new instance of Persistent class.
144
144
  * @param className the initial id of this instance. If not provided, a new id will be generated
145
145
  */
146
- constructor(e = Q()) {
146
+ constructor(e = W()) {
147
147
  this._id = e;
148
148
  }
149
149
  /**
@@ -537,10 +537,10 @@ class he extends u {
537
537
  return this.notify({ [e]: this[e] }), t;
538
538
  }
539
539
  }
540
- const D = class D {
540
+ const R = class R {
541
541
  constructor(e, t, r) {
542
542
  if (r) {
543
- if (!(t instanceof u)) throw new Error(D.error.persistentNeedForSubCollection);
543
+ if (!(t instanceof u)) throw new Error(R.error.persistentNeedForSubCollection);
544
544
  this.collectionName = `${t.className}/${t.id}/${r}`;
545
545
  } else
546
546
  this.collectionName = t instanceof u ? t.className : t;
@@ -635,7 +635,7 @@ const D = class D {
635
635
  }
636
636
  onCollectionChange(e, t) {
637
637
  return this._stream.onCollectionChange(
638
- e.getQueryObject(),
638
+ this.preprocessQueryObject(e.getQueryObject()),
639
639
  this.collectionName,
640
640
  (r) => t(r.map((s) => ({
641
641
  after: s.after && u.createInstance(s.after),
@@ -698,11 +698,11 @@ const D = class D {
698
698
  };
699
699
  }
700
700
  };
701
- D.error = {
701
+ R.error = {
702
702
  persistentNeedForSubCollection: "The document parameter for a sub-collection should be a Persistent instace",
703
703
  invalidQueryOrder: "Cannot add where calls after or calls"
704
704
  };
705
- let C = D;
705
+ let C = R;
706
706
  class H {
707
707
  constructor(e) {
708
708
  this.queryObject = { operations: [] }, this.model = e;
@@ -1343,7 +1343,7 @@ let j = class extends P {
1343
1343
  j = G([
1344
1344
  J("MockCloudStorage", () => new j())
1345
1345
  ], j);
1346
- var K = Object.defineProperty, X = Object.getOwnPropertyDescriptor, R = (i, e, t, r) => {
1346
+ var K = Object.defineProperty, X = Object.getOwnPropertyDescriptor, O = (i, e, t, r) => {
1347
1347
  for (var s = r > 1 ? void 0 : r ? X(e, t) : e, n = i.length - 1, o; n >= 0; n--)
1348
1348
  (o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
1349
1349
  return r && s && K(e, t, s), s;
@@ -1395,22 +1395,22 @@ let b = class extends u {
1395
1395
  return this._onChange.subscribe(i);
1396
1396
  }
1397
1397
  };
1398
- R([
1398
+ O([
1399
1399
  S
1400
1400
  ], b.prototype, "_reference", 2);
1401
- R([
1401
+ O([
1402
1402
  S
1403
1403
  ], b.prototype, "_url", 2);
1404
- R([
1404
+ O([
1405
1405
  S
1406
1406
  ], b.prototype, "_cloudStorageProviderName", 2);
1407
- R([
1407
+ O([
1408
1408
  S
1409
1409
  ], b.prototype, "_originalFileName", 2);
1410
- R([
1410
+ O([
1411
1411
  S
1412
1412
  ], b.prototype, "_mimeType", 2);
1413
- b = R([
1413
+ b = O([
1414
1414
  z("StoredFile")
1415
1415
  ], b);
1416
1416
  class L {