entropic-bond 1.51.13 → 1.52.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.
package/lib/entropic-bond.js
CHANGED
|
@@ -45,7 +45,7 @@ class F {
|
|
|
45
45
|
}
|
|
46
46
|
let j;
|
|
47
47
|
const B = new Uint8Array(16);
|
|
48
|
-
function
|
|
48
|
+
function W() {
|
|
49
49
|
if (!j && (j = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !j))
|
|
50
50
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
51
51
|
return j(B);
|
|
@@ -53,24 +53,24 @@ function L() {
|
|
|
53
53
|
const f = [];
|
|
54
54
|
for (let i = 0; i < 256; ++i)
|
|
55
55
|
f.push((i + 256).toString(16).slice(1));
|
|
56
|
-
function
|
|
56
|
+
function L(i, e = 0) {
|
|
57
57
|
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]];
|
|
58
58
|
}
|
|
59
|
-
const Q = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
59
|
+
const Q = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), I = {
|
|
60
60
|
randomUUID: Q
|
|
61
61
|
};
|
|
62
62
|
function q(i, e, t) {
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
63
|
+
if (I.randomUUID && !e && !i)
|
|
64
|
+
return I.randomUUID();
|
|
65
65
|
i = i || {};
|
|
66
|
-
const r = i.random || (i.rng ||
|
|
66
|
+
const r = i.random || (i.rng || W)();
|
|
67
67
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
|
|
68
68
|
t = t || 0;
|
|
69
69
|
for (let s = 0; s < 16; ++s)
|
|
70
70
|
e[t + s] = r[s];
|
|
71
71
|
return e;
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return L(r);
|
|
74
74
|
}
|
|
75
75
|
var Y = Object.defineProperty, z = Object.getOwnPropertyDescriptor, H = (i, e, t, r) => {
|
|
76
76
|
for (var s = r > 1 ? void 0 : r ? z(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
@@ -378,33 +378,33 @@ const M = (d = class {
|
|
|
378
378
|
static getSystemRegisteredReferencesWithCachedProps() {
|
|
379
379
|
return d.registeredClasses().reduce((r, s) => {
|
|
380
380
|
const o = d.createInstance(s).getPersistentProperties().filter(
|
|
381
|
-
(
|
|
381
|
+
(a) => a.cachedProps
|
|
382
382
|
);
|
|
383
383
|
return o.length > 0 && (r[s] = o), r;
|
|
384
384
|
}, {});
|
|
385
385
|
}
|
|
386
386
|
}, d._factoryMap = {}, d);
|
|
387
387
|
H([
|
|
388
|
-
|
|
388
|
+
S
|
|
389
389
|
], M.prototype, "_id", 2);
|
|
390
390
|
let l = M;
|
|
391
|
-
function
|
|
392
|
-
return
|
|
391
|
+
function S(i, e) {
|
|
392
|
+
return g()(i, e);
|
|
393
393
|
}
|
|
394
394
|
function ie(i) {
|
|
395
395
|
return function(e, t) {
|
|
396
|
-
return
|
|
396
|
+
return g({
|
|
397
397
|
storeInCollection: i,
|
|
398
398
|
isReference: !0
|
|
399
399
|
})(e, t);
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
function ne(i, e) {
|
|
403
|
-
return
|
|
403
|
+
return g({ isReference: !0 })(i, e);
|
|
404
404
|
}
|
|
405
405
|
function oe(i, e) {
|
|
406
406
|
return function(t, r) {
|
|
407
|
-
return
|
|
407
|
+
return g({
|
|
408
408
|
isReference: !0,
|
|
409
409
|
cachedProps: i,
|
|
410
410
|
storeInCollection: e
|
|
@@ -412,11 +412,22 @@ function oe(i, e) {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
function ae(i, e, t) {
|
|
415
|
-
return
|
|
415
|
+
return function(r, s) {
|
|
416
|
+
const n = {
|
|
417
|
+
isReference: !0,
|
|
418
|
+
cachedProps: e,
|
|
419
|
+
storeInCollection: t,
|
|
420
|
+
typeName: i instanceof l ? i.className : new i().className
|
|
421
|
+
};
|
|
422
|
+
return g(n)(r, s);
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
function ce(i, e, t) {
|
|
426
|
+
return g({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
|
|
416
427
|
}
|
|
417
|
-
function
|
|
428
|
+
function ue(i, e) {
|
|
418
429
|
return function(t, r) {
|
|
419
|
-
return
|
|
430
|
+
return g({
|
|
420
431
|
isReference: !0,
|
|
421
432
|
isPureReference: !0,
|
|
422
433
|
cachedProps: i,
|
|
@@ -424,7 +435,18 @@ function ce(i, e) {
|
|
|
424
435
|
})(t, r);
|
|
425
436
|
};
|
|
426
437
|
}
|
|
427
|
-
function
|
|
438
|
+
function he(i, e, t) {
|
|
439
|
+
return function(r, s) {
|
|
440
|
+
return g({
|
|
441
|
+
isReference: !0,
|
|
442
|
+
isPureReference: !0,
|
|
443
|
+
cachedProps: e,
|
|
444
|
+
storeInCollection: t,
|
|
445
|
+
typeName: i instanceof l ? i.className : new i().className
|
|
446
|
+
})(r, s);
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
function g(i) {
|
|
428
450
|
return function(e, t) {
|
|
429
451
|
Object.getOwnPropertyDescriptor(e, "_persistentProperties") || (e._persistentProperties ? e._persistentProperties = [...e._persistentProperties] : e._persistentProperties = []);
|
|
430
452
|
const r = e._persistentProperties.find((s) => s.name === t);
|
|
@@ -439,23 +461,23 @@ function J(i, e) {
|
|
|
439
461
|
l.registerFactory(i, t, e), t.prototype.__className = i;
|
|
440
462
|
};
|
|
441
463
|
}
|
|
442
|
-
function
|
|
464
|
+
function le(i) {
|
|
443
465
|
return (e) => {
|
|
444
466
|
l.registerFactory(i, e);
|
|
445
467
|
};
|
|
446
468
|
}
|
|
447
|
-
function
|
|
448
|
-
return
|
|
469
|
+
function de(i, e) {
|
|
470
|
+
return g({ searchableArray: !0 })(i, e);
|
|
449
471
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
472
|
+
function fe(i, e) {
|
|
473
|
+
return g({ validator: (t) => t != null })(i, e);
|
|
452
474
|
}
|
|
453
|
-
function
|
|
475
|
+
function pe(i = (e) => e != null) {
|
|
454
476
|
return function(e, t) {
|
|
455
|
-
return
|
|
477
|
+
return g({ validator: i })(e, t);
|
|
456
478
|
};
|
|
457
479
|
}
|
|
458
|
-
class
|
|
480
|
+
class me extends l {
|
|
459
481
|
constructor() {
|
|
460
482
|
super(...arguments), this._onChange = new F();
|
|
461
483
|
}
|
|
@@ -682,7 +704,7 @@ E.error = {
|
|
|
682
704
|
persistentNeedForSubCollection: "The document parameter for a sub-collection should be a Persistent instace",
|
|
683
705
|
invalidQueryOrder: "Cannot add where calls after or calls"
|
|
684
706
|
};
|
|
685
|
-
let
|
|
707
|
+
let R = E;
|
|
686
708
|
class Z {
|
|
687
709
|
constructor(e) {
|
|
688
710
|
this.queryObject = { operations: [] }, this.model = e;
|
|
@@ -707,10 +729,10 @@ class Z {
|
|
|
707
729
|
* @see orDeepProp
|
|
708
730
|
*/
|
|
709
731
|
where(e, t, r, s) {
|
|
710
|
-
var n, o,
|
|
732
|
+
var n, o, a;
|
|
711
733
|
if ((o = (n = this.queryObject.operations) == null ? void 0 : n.at(-1)) != null && o.aggregate && !s)
|
|
712
|
-
throw new Error(
|
|
713
|
-
return (
|
|
734
|
+
throw new Error(R.error.invalidQueryOrder);
|
|
735
|
+
return (a = this.queryObject.operations) == null || a.push({
|
|
714
736
|
property: e,
|
|
715
737
|
operator: t,
|
|
716
738
|
value: r,
|
|
@@ -742,17 +764,17 @@ class Z {
|
|
|
742
764
|
* @see orDeepProp
|
|
743
765
|
*/
|
|
744
766
|
whereDeepProp(e, t, r, s) {
|
|
745
|
-
var h,
|
|
746
|
-
if ((
|
|
747
|
-
throw new Error(
|
|
767
|
+
var h, c, u;
|
|
768
|
+
if ((c = (h = this.queryObject.operations) == null ? void 0 : h.at(-1)) != null && c.aggregate && !s)
|
|
769
|
+
throw new Error(R.error.invalidQueryOrder);
|
|
748
770
|
const n = e.split(".");
|
|
749
|
-
let o = {},
|
|
771
|
+
let o = {}, a = n.length > 1 ? o : r;
|
|
750
772
|
return n.slice(1).forEach((b, O) => {
|
|
751
773
|
o[b] = O < n.length - 2 ? {} : r, o = o[b];
|
|
752
774
|
}), (u = this.queryObject.operations) == null || u.push({
|
|
753
775
|
property: n[0],
|
|
754
776
|
operator: t,
|
|
755
|
-
value:
|
|
777
|
+
value: a,
|
|
756
778
|
aggregate: s
|
|
757
779
|
}), this;
|
|
758
780
|
}
|
|
@@ -932,7 +954,7 @@ const y = class y {
|
|
|
932
954
|
static getModel(e) {
|
|
933
955
|
if (!y._dataSource)
|
|
934
956
|
throw new Error(this.error.shouldBeRegistered);
|
|
935
|
-
return new
|
|
957
|
+
return new R(y._dataSource, e);
|
|
936
958
|
}
|
|
937
959
|
/**
|
|
938
960
|
* Retrieves a model for a subcollection
|
|
@@ -943,7 +965,7 @@ const y = class y {
|
|
|
943
965
|
static getModelForSubCollection(e, t) {
|
|
944
966
|
if (!y._dataSource)
|
|
945
967
|
throw new Error(this.error.shouldBeRegistered);
|
|
946
|
-
return new
|
|
968
|
+
return new R(y._dataSource, e, t);
|
|
947
969
|
}
|
|
948
970
|
/**
|
|
949
971
|
* Populates property references with actual data from the store.
|
|
@@ -984,19 +1006,21 @@ class C {
|
|
|
984
1006
|
C.onUpdate = e.onUpdate;
|
|
985
1007
|
const t = l.getSystemRegisteredReferencesWithCachedProps(), r = {};
|
|
986
1008
|
Object.entries(t).forEach(([n, o]) => {
|
|
987
|
-
o.forEach((
|
|
988
|
-
|
|
1009
|
+
o.forEach((a) => {
|
|
1010
|
+
if (!a.typeName)
|
|
1011
|
+
return;
|
|
1012
|
+
const h = l.collectionPath(l.createInstance(a.typeName), a);
|
|
989
1013
|
r[h] || (r[h] = []), r[h].push({
|
|
990
|
-
prop:
|
|
1014
|
+
prop: a,
|
|
991
1015
|
collectionPropOwner: n
|
|
992
1016
|
});
|
|
993
1017
|
});
|
|
994
1018
|
});
|
|
995
1019
|
const s = [];
|
|
996
1020
|
return Object.entries(r).forEach(([n, o]) => {
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
s.push(
|
|
1021
|
+
const a = this.subscribeToDocumentChangeListerner(n, (h) => C.onDocumentChange(h, o));
|
|
1022
|
+
if (a)
|
|
1023
|
+
s.push(a);
|
|
1000
1024
|
else if (e.noThrowOnNonImplementedListener)
|
|
1001
1025
|
throw new Error("The method documentChangeListerner has not been implemented in the concrete data source");
|
|
1002
1026
|
}), s;
|
|
@@ -1056,28 +1080,28 @@ class C {
|
|
|
1056
1080
|
static async onDocumentChange(e, t) {
|
|
1057
1081
|
if (e.before)
|
|
1058
1082
|
return t.map(async (r) => {
|
|
1059
|
-
var
|
|
1083
|
+
var a;
|
|
1060
1084
|
const s = A.getModel(r.collectionPropOwner);
|
|
1061
1085
|
let n = s.find();
|
|
1062
|
-
(
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1086
|
+
(a = r.prop.cachedProps) == null || a.forEach((h) => {
|
|
1087
|
+
const c = e.before[h], u = e.after[h];
|
|
1088
|
+
c !== u && (n = n.orDeepProp(`${r.prop.name}.${h}`, "==", c));
|
|
1065
1089
|
});
|
|
1066
1090
|
const o = await n.get();
|
|
1067
1091
|
return Promise.all([
|
|
1068
1092
|
o.map(async (h) => {
|
|
1069
|
-
var
|
|
1070
|
-
(
|
|
1071
|
-
var
|
|
1093
|
+
var c;
|
|
1094
|
+
(c = r.prop.cachedProps) == null || c.forEach(async (u) => {
|
|
1095
|
+
var N;
|
|
1072
1096
|
const b = e.before[u], O = e.after[u];
|
|
1073
|
-
b !== O && (h[`_${r.prop.name}`][`_${u}`] = O, await s.save(h), (
|
|
1097
|
+
b !== O && (h[`_${r.prop.name}`][`_${u}`] = O, await s.save(h), (N = this.onUpdate) == null || N.call(this, h, r.prop));
|
|
1074
1098
|
});
|
|
1075
1099
|
})
|
|
1076
1100
|
]);
|
|
1077
1101
|
});
|
|
1078
1102
|
}
|
|
1079
1103
|
}
|
|
1080
|
-
class
|
|
1104
|
+
class ge extends C {
|
|
1081
1105
|
/**
|
|
1082
1106
|
* @param jsonRawData the JSON object to be used as data store
|
|
1083
1107
|
*/
|
|
@@ -1123,7 +1147,7 @@ class pe extends C {
|
|
|
1123
1147
|
throw new Error(this._simulateError.find);
|
|
1124
1148
|
const r = Object.values(this._jsonRawData[t] || {});
|
|
1125
1149
|
return e ? (this._lastLimit = e.limit || 0, this._cursor = 0, this._lastMatchingDocs = Object.entries(e).reduce(
|
|
1126
|
-
(n, [o,
|
|
1150
|
+
(n, [o, a]) => this.queryProcessor(n, o, a),
|
|
1127
1151
|
Object.values(r)
|
|
1128
1152
|
), this.resolveWithDelay(this._lastMatchingDocs.slice(0, e.limit))) : this.resolveWithDelay(r);
|
|
1129
1153
|
}
|
|
@@ -1188,13 +1212,13 @@ class pe extends C {
|
|
|
1188
1212
|
limit: (n) => e,
|
|
1189
1213
|
//.slice( 0, limit ),
|
|
1190
1214
|
operations: (n) => this.retrieveQueryDocs(e, n),
|
|
1191
|
-
sort: ({ order: n, propertyName: o }) => e.sort((
|
|
1215
|
+
sort: ({ order: n, propertyName: o }) => e.sort((a, h) => n === "asc" ? this.deepValue(a, o) > this.deepValue(h, o) ? 1 : -1 : this.deepValue(a, o) < this.deepValue(h, o) ? 1 : -1)
|
|
1192
1216
|
}[t](r);
|
|
1193
1217
|
}
|
|
1194
1218
|
retrieveQueryDocs(e, t) {
|
|
1195
1219
|
return t.reduce((r, s, n) => {
|
|
1196
1220
|
if (s.aggregate) {
|
|
1197
|
-
const o = e.filter((
|
|
1221
|
+
const o = e.filter((a) => this.isQueryMatched(a, s));
|
|
1198
1222
|
return n === 0 ? o : r.concat(o);
|
|
1199
1223
|
} else
|
|
1200
1224
|
return r.filter((o) => this.isQueryMatched(o, s));
|
|
@@ -1205,22 +1229,22 @@ class pe extends C {
|
|
|
1205
1229
|
}
|
|
1206
1230
|
isQueryMatched(e, t) {
|
|
1207
1231
|
const r = {
|
|
1208
|
-
"==": (
|
|
1209
|
-
"!=": (
|
|
1210
|
-
"<": (
|
|
1211
|
-
"<=": (
|
|
1212
|
-
">": (
|
|
1213
|
-
">=": (
|
|
1214
|
-
containsAny: (
|
|
1215
|
-
contains: (
|
|
1216
|
-
}, { property: s, value: n, operator: o } = t, [
|
|
1217
|
-
return r[o](
|
|
1232
|
+
"==": (c, u) => c === u,
|
|
1233
|
+
"!=": (c, u) => c !== u,
|
|
1234
|
+
"<": (c, u) => c < u,
|
|
1235
|
+
"<=": (c, u) => c <= u,
|
|
1236
|
+
">": (c, u) => c > u,
|
|
1237
|
+
">=": (c, u) => c >= u,
|
|
1238
|
+
containsAny: (c, u) => c == null ? void 0 : c.some((b) => u == null ? void 0 : u.includes(b)),
|
|
1239
|
+
contains: (c, u) => c == null ? void 0 : c.includes(u)
|
|
1240
|
+
}, { property: s, value: n, operator: o } = t, [a, h] = this.retrieveValuesToCompare(e, s, n);
|
|
1241
|
+
return r[o](a, h);
|
|
1218
1242
|
}
|
|
1219
1243
|
retrieveValuesToCompare(e, t, r) {
|
|
1220
1244
|
const s = e[t];
|
|
1221
1245
|
if (s && typeof r == "object" && !Array.isArray(r)) {
|
|
1222
|
-
const
|
|
1223
|
-
var [n, o] = this.retrieveValuesToCompare(s,
|
|
1246
|
+
const a = Object.keys(r)[0];
|
|
1247
|
+
var [n, o] = this.retrieveValuesToCompare(s, a, r == null ? void 0 : r[a]);
|
|
1224
1248
|
}
|
|
1225
1249
|
return [n || s, o || r];
|
|
1226
1250
|
}
|
|
@@ -1378,26 +1402,26 @@ let w = class extends l {
|
|
|
1378
1402
|
}
|
|
1379
1403
|
};
|
|
1380
1404
|
D([
|
|
1381
|
-
|
|
1405
|
+
S
|
|
1382
1406
|
], w.prototype, "_reference", 2);
|
|
1383
1407
|
D([
|
|
1384
|
-
|
|
1408
|
+
S
|
|
1385
1409
|
], w.prototype, "_url", 2);
|
|
1386
1410
|
D([
|
|
1387
|
-
|
|
1411
|
+
S
|
|
1388
1412
|
], w.prototype, "_cloudStorageProviderName", 2);
|
|
1389
1413
|
D([
|
|
1390
|
-
|
|
1414
|
+
S
|
|
1391
1415
|
], w.prototype, "_originalFileName", 2);
|
|
1392
1416
|
D([
|
|
1393
|
-
|
|
1417
|
+
S
|
|
1394
1418
|
], w.prototype, "_mimeType", 2);
|
|
1395
1419
|
w = D([
|
|
1396
1420
|
J("StoredFile")
|
|
1397
1421
|
], w);
|
|
1398
|
-
class
|
|
1422
|
+
class x {
|
|
1399
1423
|
}
|
|
1400
|
-
const p = class p extends
|
|
1424
|
+
const p = class p extends x {
|
|
1401
1425
|
constructor() {
|
|
1402
1426
|
if (super(), this._onAuthStateChange = new F(), !p._authService)
|
|
1403
1427
|
throw new Error(p.error.shouldBeRegistered);
|
|
@@ -1525,14 +1549,14 @@ const p = class p extends T {
|
|
|
1525
1549
|
};
|
|
1526
1550
|
p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
|
|
1527
1551
|
let $ = p;
|
|
1528
|
-
class
|
|
1552
|
+
class _e extends x {
|
|
1529
1553
|
constructor() {
|
|
1530
1554
|
super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
|
|
1531
1555
|
}
|
|
1532
1556
|
signUp(e) {
|
|
1533
|
-
const { verificationLink: t, email: r, password: s, authProvider: n } = e, o = new Promise(async (
|
|
1534
|
-
var
|
|
1535
|
-
n === "email" && (r || h({ code: "missingEmail", message: "missingEmail" }), s || h({ code: "missingPassword", message: "missingPassword" })), s !== "fail" && r !== "fail" ? (this._loggedUser = this.userCredentials(e), this._fakeRegisteredUsers[this._loggedUser.id] = this._loggedUser,
|
|
1557
|
+
const { verificationLink: t, email: r, password: s, authProvider: n } = e, o = new Promise(async (a, h) => {
|
|
1558
|
+
var c, u;
|
|
1559
|
+
n === "email" && (r || h({ code: "missingEmail", message: "missingEmail" }), s || h({ code: "missingPassword", message: "missingPassword" })), s !== "fail" && r !== "fail" ? (this._loggedUser = this.userCredentials(e), this._fakeRegisteredUsers[this._loggedUser.id] = this._loggedUser, a(this._loggedUser), (c = this.notifyChange) == null || c.call(this, this._loggedUser)) : (h({ code: "userNotFound", message: t || "Test auth error" }), (u = this.notifyChange) == null || u.call(this, void 0));
|
|
1536
1560
|
});
|
|
1537
1561
|
return this.pendingPromises.push(o), o;
|
|
1538
1562
|
}
|
|
@@ -1599,7 +1623,7 @@ class me extends T {
|
|
|
1599
1623
|
};
|
|
1600
1624
|
}
|
|
1601
1625
|
}
|
|
1602
|
-
const
|
|
1626
|
+
const _ = class _ {
|
|
1603
1627
|
constructor() {
|
|
1604
1628
|
}
|
|
1605
1629
|
static useCloudFunctionsService(e) {
|
|
@@ -1607,14 +1631,14 @@ const g = class g {
|
|
|
1607
1631
|
}
|
|
1608
1632
|
static get instance() {
|
|
1609
1633
|
if (!this._cloudFunctionsService)
|
|
1610
|
-
throw new Error(
|
|
1611
|
-
return
|
|
1634
|
+
throw new Error(_.error.shouldBeRegistered);
|
|
1635
|
+
return _._instance || (_._instance = new _());
|
|
1612
1636
|
}
|
|
1613
1637
|
getRawFunction(e) {
|
|
1614
|
-
return
|
|
1638
|
+
return _._cloudFunctionsService.retrieveFunction(e);
|
|
1615
1639
|
}
|
|
1616
1640
|
getFunction(e) {
|
|
1617
|
-
const t =
|
|
1641
|
+
const t = _._cloudFunctionsService.callFunction, r = this.getRawFunction(e);
|
|
1618
1642
|
return async (s) => {
|
|
1619
1643
|
const n = await t(r, this.processParam(s));
|
|
1620
1644
|
return this.processResult(n);
|
|
@@ -1629,9 +1653,9 @@ const g = class g {
|
|
|
1629
1653
|
return e.__className ? l.createInstance(e) : Array.isArray(e) ? e.map((t) => this.processResult(t)) : typeof e == "object" ? Object.entries(e).reduce((t, [r, s]) => (t[r] = this.processResult(s), t), {}) : e;
|
|
1630
1654
|
}
|
|
1631
1655
|
};
|
|
1632
|
-
|
|
1633
|
-
let V =
|
|
1634
|
-
class
|
|
1656
|
+
_.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
|
|
1657
|
+
let V = _;
|
|
1658
|
+
class ye {
|
|
1635
1659
|
constructor(e) {
|
|
1636
1660
|
this._registeredFunctions = e;
|
|
1637
1661
|
}
|
|
@@ -1645,9 +1669,9 @@ class ge {
|
|
|
1645
1669
|
return e(t);
|
|
1646
1670
|
}
|
|
1647
1671
|
}
|
|
1648
|
-
class
|
|
1672
|
+
class T {
|
|
1649
1673
|
}
|
|
1650
|
-
const m = class m extends
|
|
1674
|
+
const m = class m extends T {
|
|
1651
1675
|
constructor() {
|
|
1652
1676
|
super();
|
|
1653
1677
|
}
|
|
@@ -1674,7 +1698,7 @@ const m = class m extends x {
|
|
|
1674
1698
|
};
|
|
1675
1699
|
m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
|
|
1676
1700
|
let k = m;
|
|
1677
|
-
class
|
|
1701
|
+
class Pe extends T {
|
|
1678
1702
|
constructor(e) {
|
|
1679
1703
|
super(), this._userCredentials = e;
|
|
1680
1704
|
}
|
|
@@ -1701,63 +1725,65 @@ class _e extends x {
|
|
|
1701
1725
|
return this._userCredentials;
|
|
1702
1726
|
}
|
|
1703
1727
|
}
|
|
1704
|
-
function
|
|
1728
|
+
function ve(i, e) {
|
|
1705
1729
|
return i ? i.replace(/\${\s*(\w*)\s*}/g, function(t, r) {
|
|
1706
1730
|
return e[r] || "";
|
|
1707
1731
|
}) : "";
|
|
1708
1732
|
}
|
|
1709
|
-
function
|
|
1733
|
+
function we(i) {
|
|
1710
1734
|
return i ? i.replace(
|
|
1711
1735
|
/([-_ ][\w])/g,
|
|
1712
1736
|
(e) => e.toUpperCase().replace("-", "").replace("_", "").replace(" ", "")
|
|
1713
1737
|
) : "";
|
|
1714
1738
|
}
|
|
1715
|
-
function
|
|
1739
|
+
function be(i, e = "-") {
|
|
1716
1740
|
if (!i)
|
|
1717
1741
|
return "";
|
|
1718
1742
|
const t = i.slice(1).replace(/( |[A-Z])/g, (r) => r === " " ? "-" : e + r[0].toLowerCase());
|
|
1719
1743
|
return i[0].toLocaleLowerCase() + t.replace(/--/g, "-");
|
|
1720
1744
|
}
|
|
1721
|
-
function
|
|
1745
|
+
function Ce(i, e) {
|
|
1722
1746
|
return e.split(".").reduce((t, r) => t[r], i);
|
|
1723
1747
|
}
|
|
1724
1748
|
export {
|
|
1725
1749
|
$ as Auth,
|
|
1726
|
-
|
|
1727
|
-
|
|
1750
|
+
_e as AuthMock,
|
|
1751
|
+
x as AuthService,
|
|
1728
1752
|
V as CloudFunctions,
|
|
1729
|
-
|
|
1753
|
+
ye as CloudFunctionsMock,
|
|
1730
1754
|
v as CloudStorage,
|
|
1731
1755
|
C as DataSource,
|
|
1732
|
-
|
|
1733
|
-
|
|
1756
|
+
me as EntropicComponent,
|
|
1757
|
+
ge as JsonDataSource,
|
|
1734
1758
|
U as MockCloudStorage,
|
|
1735
|
-
|
|
1759
|
+
R as Model,
|
|
1736
1760
|
F as Observable,
|
|
1737
1761
|
l as Persistent,
|
|
1738
1762
|
Z as Query,
|
|
1739
1763
|
k as ServerAuth,
|
|
1740
|
-
|
|
1741
|
-
|
|
1764
|
+
Pe as ServerAuthMock,
|
|
1765
|
+
T as ServerAuthService,
|
|
1742
1766
|
A as Store,
|
|
1743
1767
|
w as StoredFile,
|
|
1744
1768
|
se as StoredFileEvent,
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1769
|
+
we as camelCase,
|
|
1770
|
+
Ce as getDeepValue,
|
|
1771
|
+
S as persistent,
|
|
1772
|
+
g as persistentParser,
|
|
1773
|
+
ce as persistentPureReference,
|
|
1774
|
+
ue as persistentPureReferenceWithCachedProps,
|
|
1775
|
+
he as persistentPureReferenceWithUpdatableCachedProps,
|
|
1751
1776
|
ne as persistentReference,
|
|
1752
1777
|
ie as persistentReferenceAt,
|
|
1753
1778
|
oe as persistentReferenceWithCachedProps,
|
|
1779
|
+
ae as persistentReferenceWithUpdatableCachedProps,
|
|
1754
1780
|
G as registerCloudStorage,
|
|
1755
|
-
|
|
1781
|
+
le as registerLegacyClassName,
|
|
1756
1782
|
J as registerPersistentClass,
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1783
|
+
ve as replaceValue,
|
|
1784
|
+
fe as required,
|
|
1785
|
+
pe as requiredWithValidator,
|
|
1786
|
+
de as searchableArray,
|
|
1787
|
+
be as snakeCase
|
|
1762
1788
|
};
|
|
1763
1789
|
//# sourceMappingURL=entropic-bond.js.map
|