entropic-bond 1.52.0 → 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,31 +378,40 @@ 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
|
-
function oe(i, e
|
|
405
|
+
function oe(i, e) {
|
|
406
|
+
return function(t, r) {
|
|
407
|
+
return g({
|
|
408
|
+
isReference: !0,
|
|
409
|
+
cachedProps: i,
|
|
410
|
+
storeInCollection: e
|
|
411
|
+
})(t, r);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function ae(i, e, t) {
|
|
406
415
|
return function(r, s) {
|
|
407
416
|
const n = {
|
|
408
417
|
isReference: !0,
|
|
@@ -410,15 +419,25 @@ function oe(i, e, t) {
|
|
|
410
419
|
storeInCollection: t,
|
|
411
420
|
typeName: i instanceof l ? i.className : new i().className
|
|
412
421
|
};
|
|
413
|
-
return
|
|
422
|
+
return g(n)(r, s);
|
|
414
423
|
};
|
|
415
424
|
}
|
|
416
|
-
function ae(i, e, t) {
|
|
417
|
-
return _({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
|
|
418
|
-
}
|
|
419
425
|
function ce(i, e, t) {
|
|
426
|
+
return g({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
|
|
427
|
+
}
|
|
428
|
+
function ue(i, e) {
|
|
429
|
+
return function(t, r) {
|
|
430
|
+
return g({
|
|
431
|
+
isReference: !0,
|
|
432
|
+
isPureReference: !0,
|
|
433
|
+
cachedProps: i,
|
|
434
|
+
storeInCollection: e
|
|
435
|
+
})(t, r);
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
function he(i, e, t) {
|
|
420
439
|
return function(r, s) {
|
|
421
|
-
return
|
|
440
|
+
return g({
|
|
422
441
|
isReference: !0,
|
|
423
442
|
isPureReference: !0,
|
|
424
443
|
cachedProps: e,
|
|
@@ -427,7 +446,7 @@ function ce(i, e, t) {
|
|
|
427
446
|
})(r, s);
|
|
428
447
|
};
|
|
429
448
|
}
|
|
430
|
-
function
|
|
449
|
+
function g(i) {
|
|
431
450
|
return function(e, t) {
|
|
432
451
|
Object.getOwnPropertyDescriptor(e, "_persistentProperties") || (e._persistentProperties ? e._persistentProperties = [...e._persistentProperties] : e._persistentProperties = []);
|
|
433
452
|
const r = e._persistentProperties.find((s) => s.name === t);
|
|
@@ -442,23 +461,23 @@ function J(i, e) {
|
|
|
442
461
|
l.registerFactory(i, t, e), t.prototype.__className = i;
|
|
443
462
|
};
|
|
444
463
|
}
|
|
445
|
-
function
|
|
464
|
+
function le(i) {
|
|
446
465
|
return (e) => {
|
|
447
466
|
l.registerFactory(i, e);
|
|
448
467
|
};
|
|
449
468
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
469
|
+
function de(i, e) {
|
|
470
|
+
return g({ searchableArray: !0 })(i, e);
|
|
452
471
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
472
|
+
function fe(i, e) {
|
|
473
|
+
return g({ validator: (t) => t != null })(i, e);
|
|
455
474
|
}
|
|
456
|
-
function
|
|
475
|
+
function pe(i = (e) => e != null) {
|
|
457
476
|
return function(e, t) {
|
|
458
|
-
return
|
|
477
|
+
return g({ validator: i })(e, t);
|
|
459
478
|
};
|
|
460
479
|
}
|
|
461
|
-
class
|
|
480
|
+
class me extends l {
|
|
462
481
|
constructor() {
|
|
463
482
|
super(...arguments), this._onChange = new F();
|
|
464
483
|
}
|
|
@@ -685,7 +704,7 @@ E.error = {
|
|
|
685
704
|
persistentNeedForSubCollection: "The document parameter for a sub-collection should be a Persistent instace",
|
|
686
705
|
invalidQueryOrder: "Cannot add where calls after or calls"
|
|
687
706
|
};
|
|
688
|
-
let
|
|
707
|
+
let R = E;
|
|
689
708
|
class Z {
|
|
690
709
|
constructor(e) {
|
|
691
710
|
this.queryObject = { operations: [] }, this.model = e;
|
|
@@ -710,10 +729,10 @@ class Z {
|
|
|
710
729
|
* @see orDeepProp
|
|
711
730
|
*/
|
|
712
731
|
where(e, t, r, s) {
|
|
713
|
-
var n, o,
|
|
732
|
+
var n, o, a;
|
|
714
733
|
if ((o = (n = this.queryObject.operations) == null ? void 0 : n.at(-1)) != null && o.aggregate && !s)
|
|
715
|
-
throw new Error(
|
|
716
|
-
return (
|
|
734
|
+
throw new Error(R.error.invalidQueryOrder);
|
|
735
|
+
return (a = this.queryObject.operations) == null || a.push({
|
|
717
736
|
property: e,
|
|
718
737
|
operator: t,
|
|
719
738
|
value: r,
|
|
@@ -745,17 +764,17 @@ class Z {
|
|
|
745
764
|
* @see orDeepProp
|
|
746
765
|
*/
|
|
747
766
|
whereDeepProp(e, t, r, s) {
|
|
748
|
-
var h,
|
|
749
|
-
if ((
|
|
750
|
-
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);
|
|
751
770
|
const n = e.split(".");
|
|
752
|
-
let o = {},
|
|
771
|
+
let o = {}, a = n.length > 1 ? o : r;
|
|
753
772
|
return n.slice(1).forEach((b, O) => {
|
|
754
773
|
o[b] = O < n.length - 2 ? {} : r, o = o[b];
|
|
755
774
|
}), (u = this.queryObject.operations) == null || u.push({
|
|
756
775
|
property: n[0],
|
|
757
776
|
operator: t,
|
|
758
|
-
value:
|
|
777
|
+
value: a,
|
|
759
778
|
aggregate: s
|
|
760
779
|
}), this;
|
|
761
780
|
}
|
|
@@ -935,7 +954,7 @@ const y = class y {
|
|
|
935
954
|
static getModel(e) {
|
|
936
955
|
if (!y._dataSource)
|
|
937
956
|
throw new Error(this.error.shouldBeRegistered);
|
|
938
|
-
return new
|
|
957
|
+
return new R(y._dataSource, e);
|
|
939
958
|
}
|
|
940
959
|
/**
|
|
941
960
|
* Retrieves a model for a subcollection
|
|
@@ -946,7 +965,7 @@ const y = class y {
|
|
|
946
965
|
static getModelForSubCollection(e, t) {
|
|
947
966
|
if (!y._dataSource)
|
|
948
967
|
throw new Error(this.error.shouldBeRegistered);
|
|
949
|
-
return new
|
|
968
|
+
return new R(y._dataSource, e, t);
|
|
950
969
|
}
|
|
951
970
|
/**
|
|
952
971
|
* Populates property references with actual data from the store.
|
|
@@ -987,19 +1006,21 @@ class C {
|
|
|
987
1006
|
C.onUpdate = e.onUpdate;
|
|
988
1007
|
const t = l.getSystemRegisteredReferencesWithCachedProps(), r = {};
|
|
989
1008
|
Object.entries(t).forEach(([n, o]) => {
|
|
990
|
-
o.forEach((
|
|
991
|
-
|
|
1009
|
+
o.forEach((a) => {
|
|
1010
|
+
if (!a.typeName)
|
|
1011
|
+
return;
|
|
1012
|
+
const h = l.collectionPath(l.createInstance(a.typeName), a);
|
|
992
1013
|
r[h] || (r[h] = []), r[h].push({
|
|
993
|
-
prop:
|
|
1014
|
+
prop: a,
|
|
994
1015
|
collectionPropOwner: n
|
|
995
1016
|
});
|
|
996
1017
|
});
|
|
997
1018
|
});
|
|
998
1019
|
const s = [];
|
|
999
1020
|
return Object.entries(r).forEach(([n, o]) => {
|
|
1000
|
-
const
|
|
1001
|
-
if (
|
|
1002
|
-
s.push(
|
|
1021
|
+
const a = this.subscribeToDocumentChangeListerner(n, (h) => C.onDocumentChange(h, o));
|
|
1022
|
+
if (a)
|
|
1023
|
+
s.push(a);
|
|
1003
1024
|
else if (e.noThrowOnNonImplementedListener)
|
|
1004
1025
|
throw new Error("The method documentChangeListerner has not been implemented in the concrete data source");
|
|
1005
1026
|
}), s;
|
|
@@ -1059,28 +1080,28 @@ class C {
|
|
|
1059
1080
|
static async onDocumentChange(e, t) {
|
|
1060
1081
|
if (e.before)
|
|
1061
1082
|
return t.map(async (r) => {
|
|
1062
|
-
var
|
|
1083
|
+
var a;
|
|
1063
1084
|
const s = A.getModel(r.collectionPropOwner);
|
|
1064
1085
|
let n = s.find();
|
|
1065
|
-
(
|
|
1066
|
-
const
|
|
1067
|
-
|
|
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));
|
|
1068
1089
|
});
|
|
1069
1090
|
const o = await n.get();
|
|
1070
1091
|
return Promise.all([
|
|
1071
1092
|
o.map(async (h) => {
|
|
1072
|
-
var
|
|
1073
|
-
(
|
|
1074
|
-
var
|
|
1093
|
+
var c;
|
|
1094
|
+
(c = r.prop.cachedProps) == null || c.forEach(async (u) => {
|
|
1095
|
+
var N;
|
|
1075
1096
|
const b = e.before[u], O = e.after[u];
|
|
1076
|
-
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));
|
|
1077
1098
|
});
|
|
1078
1099
|
})
|
|
1079
1100
|
]);
|
|
1080
1101
|
});
|
|
1081
1102
|
}
|
|
1082
1103
|
}
|
|
1083
|
-
class
|
|
1104
|
+
class ge extends C {
|
|
1084
1105
|
/**
|
|
1085
1106
|
* @param jsonRawData the JSON object to be used as data store
|
|
1086
1107
|
*/
|
|
@@ -1126,7 +1147,7 @@ class pe extends C {
|
|
|
1126
1147
|
throw new Error(this._simulateError.find);
|
|
1127
1148
|
const r = Object.values(this._jsonRawData[t] || {});
|
|
1128
1149
|
return e ? (this._lastLimit = e.limit || 0, this._cursor = 0, this._lastMatchingDocs = Object.entries(e).reduce(
|
|
1129
|
-
(n, [o,
|
|
1150
|
+
(n, [o, a]) => this.queryProcessor(n, o, a),
|
|
1130
1151
|
Object.values(r)
|
|
1131
1152
|
), this.resolveWithDelay(this._lastMatchingDocs.slice(0, e.limit))) : this.resolveWithDelay(r);
|
|
1132
1153
|
}
|
|
@@ -1191,13 +1212,13 @@ class pe extends C {
|
|
|
1191
1212
|
limit: (n) => e,
|
|
1192
1213
|
//.slice( 0, limit ),
|
|
1193
1214
|
operations: (n) => this.retrieveQueryDocs(e, n),
|
|
1194
|
-
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)
|
|
1195
1216
|
}[t](r);
|
|
1196
1217
|
}
|
|
1197
1218
|
retrieveQueryDocs(e, t) {
|
|
1198
1219
|
return t.reduce((r, s, n) => {
|
|
1199
1220
|
if (s.aggregate) {
|
|
1200
|
-
const o = e.filter((
|
|
1221
|
+
const o = e.filter((a) => this.isQueryMatched(a, s));
|
|
1201
1222
|
return n === 0 ? o : r.concat(o);
|
|
1202
1223
|
} else
|
|
1203
1224
|
return r.filter((o) => this.isQueryMatched(o, s));
|
|
@@ -1208,22 +1229,22 @@ class pe extends C {
|
|
|
1208
1229
|
}
|
|
1209
1230
|
isQueryMatched(e, t) {
|
|
1210
1231
|
const r = {
|
|
1211
|
-
"==": (
|
|
1212
|
-
"!=": (
|
|
1213
|
-
"<": (
|
|
1214
|
-
"<=": (
|
|
1215
|
-
">": (
|
|
1216
|
-
">=": (
|
|
1217
|
-
containsAny: (
|
|
1218
|
-
contains: (
|
|
1219
|
-
}, { property: s, value: n, operator: o } = t, [
|
|
1220
|
-
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);
|
|
1221
1242
|
}
|
|
1222
1243
|
retrieveValuesToCompare(e, t, r) {
|
|
1223
1244
|
const s = e[t];
|
|
1224
1245
|
if (s && typeof r == "object" && !Array.isArray(r)) {
|
|
1225
|
-
const
|
|
1226
|
-
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]);
|
|
1227
1248
|
}
|
|
1228
1249
|
return [n || s, o || r];
|
|
1229
1250
|
}
|
|
@@ -1381,19 +1402,19 @@ let w = class extends l {
|
|
|
1381
1402
|
}
|
|
1382
1403
|
};
|
|
1383
1404
|
D([
|
|
1384
|
-
|
|
1405
|
+
S
|
|
1385
1406
|
], w.prototype, "_reference", 2);
|
|
1386
1407
|
D([
|
|
1387
|
-
|
|
1408
|
+
S
|
|
1388
1409
|
], w.prototype, "_url", 2);
|
|
1389
1410
|
D([
|
|
1390
|
-
|
|
1411
|
+
S
|
|
1391
1412
|
], w.prototype, "_cloudStorageProviderName", 2);
|
|
1392
1413
|
D([
|
|
1393
|
-
|
|
1414
|
+
S
|
|
1394
1415
|
], w.prototype, "_originalFileName", 2);
|
|
1395
1416
|
D([
|
|
1396
|
-
|
|
1417
|
+
S
|
|
1397
1418
|
], w.prototype, "_mimeType", 2);
|
|
1398
1419
|
w = D([
|
|
1399
1420
|
J("StoredFile")
|
|
@@ -1528,14 +1549,14 @@ const p = class p extends x {
|
|
|
1528
1549
|
};
|
|
1529
1550
|
p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
|
|
1530
1551
|
let $ = p;
|
|
1531
|
-
class
|
|
1552
|
+
class _e extends x {
|
|
1532
1553
|
constructor() {
|
|
1533
1554
|
super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
|
|
1534
1555
|
}
|
|
1535
1556
|
signUp(e) {
|
|
1536
|
-
const { verificationLink: t, email: r, password: s, authProvider: n } = e, o = new Promise(async (
|
|
1537
|
-
var
|
|
1538
|
-
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));
|
|
1539
1560
|
});
|
|
1540
1561
|
return this.pendingPromises.push(o), o;
|
|
1541
1562
|
}
|
|
@@ -1602,7 +1623,7 @@ class me extends x {
|
|
|
1602
1623
|
};
|
|
1603
1624
|
}
|
|
1604
1625
|
}
|
|
1605
|
-
const
|
|
1626
|
+
const _ = class _ {
|
|
1606
1627
|
constructor() {
|
|
1607
1628
|
}
|
|
1608
1629
|
static useCloudFunctionsService(e) {
|
|
@@ -1610,14 +1631,14 @@ const g = class g {
|
|
|
1610
1631
|
}
|
|
1611
1632
|
static get instance() {
|
|
1612
1633
|
if (!this._cloudFunctionsService)
|
|
1613
|
-
throw new Error(
|
|
1614
|
-
return
|
|
1634
|
+
throw new Error(_.error.shouldBeRegistered);
|
|
1635
|
+
return _._instance || (_._instance = new _());
|
|
1615
1636
|
}
|
|
1616
1637
|
getRawFunction(e) {
|
|
1617
|
-
return
|
|
1638
|
+
return _._cloudFunctionsService.retrieveFunction(e);
|
|
1618
1639
|
}
|
|
1619
1640
|
getFunction(e) {
|
|
1620
|
-
const t =
|
|
1641
|
+
const t = _._cloudFunctionsService.callFunction, r = this.getRawFunction(e);
|
|
1621
1642
|
return async (s) => {
|
|
1622
1643
|
const n = await t(r, this.processParam(s));
|
|
1623
1644
|
return this.processResult(n);
|
|
@@ -1632,9 +1653,9 @@ const g = class g {
|
|
|
1632
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;
|
|
1633
1654
|
}
|
|
1634
1655
|
};
|
|
1635
|
-
|
|
1636
|
-
let V =
|
|
1637
|
-
class
|
|
1656
|
+
_.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
|
|
1657
|
+
let V = _;
|
|
1658
|
+
class ye {
|
|
1638
1659
|
constructor(e) {
|
|
1639
1660
|
this._registeredFunctions = e;
|
|
1640
1661
|
}
|
|
@@ -1677,7 +1698,7 @@ const m = class m extends T {
|
|
|
1677
1698
|
};
|
|
1678
1699
|
m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
|
|
1679
1700
|
let k = m;
|
|
1680
|
-
class
|
|
1701
|
+
class Pe extends T {
|
|
1681
1702
|
constructor(e) {
|
|
1682
1703
|
super(), this._userCredentials = e;
|
|
1683
1704
|
}
|
|
@@ -1704,63 +1725,65 @@ class _e extends T {
|
|
|
1704
1725
|
return this._userCredentials;
|
|
1705
1726
|
}
|
|
1706
1727
|
}
|
|
1707
|
-
function
|
|
1728
|
+
function ve(i, e) {
|
|
1708
1729
|
return i ? i.replace(/\${\s*(\w*)\s*}/g, function(t, r) {
|
|
1709
1730
|
return e[r] || "";
|
|
1710
1731
|
}) : "";
|
|
1711
1732
|
}
|
|
1712
|
-
function
|
|
1733
|
+
function we(i) {
|
|
1713
1734
|
return i ? i.replace(
|
|
1714
1735
|
/([-_ ][\w])/g,
|
|
1715
1736
|
(e) => e.toUpperCase().replace("-", "").replace("_", "").replace(" ", "")
|
|
1716
1737
|
) : "";
|
|
1717
1738
|
}
|
|
1718
|
-
function
|
|
1739
|
+
function be(i, e = "-") {
|
|
1719
1740
|
if (!i)
|
|
1720
1741
|
return "";
|
|
1721
1742
|
const t = i.slice(1).replace(/( |[A-Z])/g, (r) => r === " " ? "-" : e + r[0].toLowerCase());
|
|
1722
1743
|
return i[0].toLocaleLowerCase() + t.replace(/--/g, "-");
|
|
1723
1744
|
}
|
|
1724
|
-
function
|
|
1745
|
+
function Ce(i, e) {
|
|
1725
1746
|
return e.split(".").reduce((t, r) => t[r], i);
|
|
1726
1747
|
}
|
|
1727
1748
|
export {
|
|
1728
1749
|
$ as Auth,
|
|
1729
|
-
|
|
1750
|
+
_e as AuthMock,
|
|
1730
1751
|
x as AuthService,
|
|
1731
1752
|
V as CloudFunctions,
|
|
1732
|
-
|
|
1753
|
+
ye as CloudFunctionsMock,
|
|
1733
1754
|
v as CloudStorage,
|
|
1734
1755
|
C as DataSource,
|
|
1735
|
-
|
|
1736
|
-
|
|
1756
|
+
me as EntropicComponent,
|
|
1757
|
+
ge as JsonDataSource,
|
|
1737
1758
|
U as MockCloudStorage,
|
|
1738
|
-
|
|
1759
|
+
R as Model,
|
|
1739
1760
|
F as Observable,
|
|
1740
1761
|
l as Persistent,
|
|
1741
1762
|
Z as Query,
|
|
1742
1763
|
k as ServerAuth,
|
|
1743
|
-
|
|
1764
|
+
Pe as ServerAuthMock,
|
|
1744
1765
|
T as ServerAuthService,
|
|
1745
1766
|
A as Store,
|
|
1746
1767
|
w as StoredFile,
|
|
1747
1768
|
se as StoredFileEvent,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
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,
|
|
1754
1776
|
ne as persistentReference,
|
|
1755
1777
|
ie as persistentReferenceAt,
|
|
1756
1778
|
oe as persistentReferenceWithCachedProps,
|
|
1779
|
+
ae as persistentReferenceWithUpdatableCachedProps,
|
|
1757
1780
|
G as registerCloudStorage,
|
|
1758
|
-
|
|
1781
|
+
le as registerLegacyClassName,
|
|
1759
1782
|
J as registerPersistentClass,
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1783
|
+
ve as replaceValue,
|
|
1784
|
+
fe as required,
|
|
1785
|
+
pe as requiredWithValidator,
|
|
1786
|
+
de as searchableArray,
|
|
1787
|
+
be as snakeCase
|
|
1765
1788
|
};
|
|
1766
1789
|
//# sourceMappingURL=entropic-bond.js.map
|