entropic-bond 1.53.23 → 1.53.24
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 +122 -120
- package/lib/entropic-bond.js.map +1 -1
- package/lib/entropic-bond.umd.cjs +2 -2
- package/lib/entropic-bond.umd.cjs.map +1 -1
- package/package.json +1 -1
package/lib/entropic-bond.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class A {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.subscribers = /* @__PURE__ */ new Set();
|
|
4
4
|
}
|
|
@@ -46,36 +46,36 @@ class U {
|
|
|
46
46
|
const f = [];
|
|
47
47
|
for (let i = 0; i < 256; ++i)
|
|
48
48
|
f.push((i + 256).toString(16).slice(1));
|
|
49
|
-
function
|
|
49
|
+
function B(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
52
|
let R;
|
|
53
|
-
const
|
|
54
|
-
function
|
|
53
|
+
const Q = new Uint8Array(16);
|
|
54
|
+
function W() {
|
|
55
55
|
if (!R) {
|
|
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
58
|
R = crypto.getRandomValues.bind(crypto);
|
|
59
59
|
}
|
|
60
|
-
return R(
|
|
60
|
+
return R(Q);
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
function
|
|
62
|
+
const q = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), F = { randomUUID: q };
|
|
63
|
+
function Y(i, e, t) {
|
|
64
64
|
i = i || {};
|
|
65
|
-
const r = i.random ?? i.rng?.() ??
|
|
65
|
+
const r = i.random ?? i.rng?.() ?? W();
|
|
66
66
|
if (r.length < 16)
|
|
67
67
|
throw new Error("Random bytes length must be >= 16");
|
|
68
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
68
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, B(r);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function z(i, e, t) {
|
|
71
|
+
return F.randomUUID && !i ? F.randomUUID() : Y(i);
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var H = Object.defineProperty, J = (i, e, t, r) => {
|
|
74
74
|
for (var s = void 0, n = i.length - 1, o; n >= 0; n--)
|
|
75
75
|
(o = i[n]) && (s = o(e, t, s) || s);
|
|
76
|
-
return s &&
|
|
77
|
-
},
|
|
78
|
-
const
|
|
76
|
+
return s && H(e, t, s), s;
|
|
77
|
+
}, d;
|
|
78
|
+
const N = (d = class {
|
|
79
79
|
/**
|
|
80
80
|
* Registers a class to be used by the persistence engine.
|
|
81
81
|
* @param className the name of the class to be registered
|
|
@@ -136,14 +136,14 @@ const L = (l = class {
|
|
|
136
136
|
* @see registerFactory
|
|
137
137
|
*/
|
|
138
138
|
static annotations(e) {
|
|
139
|
-
if (e instanceof
|
|
139
|
+
if (e instanceof d ? e = e.className : typeof e == "string" || (e = new e().className), !this._factoryMap[e]) throw new Error(`You should register class ${e} prior to use.`);
|
|
140
140
|
return this._factoryMap[e].annotation;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
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 =
|
|
146
|
+
constructor(e = z()) {
|
|
147
147
|
this._id = e;
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
@@ -273,7 +273,7 @@ const L = (l = class {
|
|
|
273
273
|
if (!this.className) throw new Error(`You should register \`${this.constructor.name || this.toString() || "this"}\` class prior to streaming it.`);
|
|
274
274
|
return this._persistentProperties.forEach((r) => {
|
|
275
275
|
const s = this[r.name], n = this.removeUnderscore(r);
|
|
276
|
-
s != null && (r.isReference ? t[n] = this.toReferenceObj(r, e) : t[n] = this.toDeepObj(s, e), r.searchableArray && (t[
|
|
276
|
+
s != null && (r.isReference ? t[n] = this.toReferenceObj(r, e) : t[n] = this.toDeepObj(s, e), r.searchableArray && (t[d.searchableArrayNameFor(n)] = s.map((o) => o.id)));
|
|
277
277
|
}), t.__className = this.className, t;
|
|
278
278
|
}
|
|
279
279
|
static searchableArrayNameFor(e) {
|
|
@@ -284,11 +284,11 @@ const L = (l = class {
|
|
|
284
284
|
if (Array.isArray(e))
|
|
285
285
|
return e.map((t) => this.fromDeepObject(t));
|
|
286
286
|
if (e.__documentReference) {
|
|
287
|
-
const t = e, r =
|
|
287
|
+
const t = e, r = d.createInstance(t);
|
|
288
288
|
return r.__documentReference = e.__documentReference, r;
|
|
289
289
|
}
|
|
290
290
|
if (e.__className)
|
|
291
|
-
return
|
|
291
|
+
return d.createInstance(e);
|
|
292
292
|
if (typeof e == "object") {
|
|
293
293
|
const t = {};
|
|
294
294
|
return Object.entries(e).forEach(
|
|
@@ -302,7 +302,7 @@ const L = (l = class {
|
|
|
302
302
|
if (Array.isArray(e))
|
|
303
303
|
return e.map((r) => this.toDeepObj(r, t));
|
|
304
304
|
if (e.__documentReference) return e;
|
|
305
|
-
if (e instanceof
|
|
305
|
+
if (e instanceof d)
|
|
306
306
|
return e.toObj(t);
|
|
307
307
|
if (typeof e == "object") {
|
|
308
308
|
const r = {};
|
|
@@ -319,7 +319,7 @@ const L = (l = class {
|
|
|
319
319
|
}
|
|
320
320
|
toReferenceObj(e, t) {
|
|
321
321
|
const r = this[e.name];
|
|
322
|
-
return Array.isArray(r) ? r.map((s) => (e.isPureReference || this.pushDocument(t,
|
|
322
|
+
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.cachedPropsConfig?.cachedProps))) : (e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedPropsConfig?.cachedProps));
|
|
323
323
|
}
|
|
324
324
|
buildRefObject(e, t, r) {
|
|
325
325
|
const s = r?.reduce((n, o) => (e[o] !== void 0 && (n[o] = e[o]), n), {});
|
|
@@ -342,14 +342,14 @@ const L = (l = class {
|
|
|
342
342
|
return e.name.slice(1);
|
|
343
343
|
}
|
|
344
344
|
static createReference(e) {
|
|
345
|
-
const t =
|
|
345
|
+
const t = d.createInstance(e);
|
|
346
346
|
return t.__documentReference = e.__documentReference || { storedInCollection: t.className }, t;
|
|
347
347
|
}
|
|
348
348
|
static createInstance(e) {
|
|
349
349
|
if (typeof e == "string")
|
|
350
|
-
return new (
|
|
350
|
+
return new (d.classFactory(e))();
|
|
351
351
|
try {
|
|
352
|
-
return new (
|
|
352
|
+
return new (d.classFactory(e.__className))().fromObject(e);
|
|
353
353
|
} catch (t) {
|
|
354
354
|
const r = Object.entries(e).filter(([s, n]) => n != null && typeof n != "function").map(([s, n]) => `${s}: ${n}`).join(`,
|
|
355
355
|
`);
|
|
@@ -362,29 +362,29 @@ const L = (l = class {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
static propInfo(e, t) {
|
|
365
|
-
return
|
|
365
|
+
return d.createInstance(e).getPropInfo(t);
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
368
368
|
* Retrieves a collection of references with the properties that are stored in the reference object
|
|
369
369
|
* @returns the references collection
|
|
370
370
|
*/
|
|
371
371
|
static getSystemRegisteredReferencesWithCachedProps() {
|
|
372
|
-
return
|
|
373
|
-
const o =
|
|
372
|
+
return d.registeredClassesAndLegacyNames().reduce((r, s) => {
|
|
373
|
+
const o = d.createInstance(s).getPersistentProperties().filter(
|
|
374
374
|
(a) => a.cachedPropsConfig?.cachedProps
|
|
375
375
|
);
|
|
376
376
|
return o.length > 0 && (r[s] = o), r;
|
|
377
377
|
}, {});
|
|
378
378
|
}
|
|
379
|
-
},
|
|
380
|
-
|
|
379
|
+
}, d._factoryMap = {}, d);
|
|
380
|
+
J([
|
|
381
381
|
S
|
|
382
|
-
],
|
|
383
|
-
let u =
|
|
382
|
+
], N.prototype, "_id");
|
|
383
|
+
let u = N;
|
|
384
384
|
function S(i, e) {
|
|
385
385
|
return _()(i, e);
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function ie(i) {
|
|
388
388
|
return function(e, t) {
|
|
389
389
|
return _({
|
|
390
390
|
storeInCollection: i,
|
|
@@ -392,10 +392,10 @@ function te(i) {
|
|
|
392
392
|
})(e, t);
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ne(i, e) {
|
|
396
396
|
return _({ isReference: !0 })(i, e);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function oe(i, e, t) {
|
|
399
399
|
const r = Array.isArray(i) ? { cachedProps: i } : i;
|
|
400
400
|
return function(s, n) {
|
|
401
401
|
return _({
|
|
@@ -406,10 +406,10 @@ function se(i, e, t) {
|
|
|
406
406
|
})(s, n);
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ae(i, e, t) {
|
|
410
410
|
return _({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ce(i, e, t) {
|
|
413
413
|
return function(r, s) {
|
|
414
414
|
const n = Array.isArray(i) ? { cachedProps: i } : i;
|
|
415
415
|
return _({
|
|
@@ -431,30 +431,30 @@ function _(i) {
|
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Z(i, e) {
|
|
435
435
|
return (t) => {
|
|
436
436
|
u.registerFactory(i, t, e), t.prototype.__className = i;
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function ue(i) {
|
|
440
440
|
return (e) => {
|
|
441
441
|
u.registerFactory(i, e, void 0, !0);
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function he(i, e) {
|
|
445
445
|
return _({ searchableArray: !0 })(i, e);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function le(i, e) {
|
|
448
448
|
return _({ validator: (t) => t != null })(i, e);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function de(i = (e) => e != null) {
|
|
451
451
|
return function(e, t) {
|
|
452
452
|
return _({ validator: i })(e, t);
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
-
class
|
|
455
|
+
class fe extends u {
|
|
456
456
|
constructor() {
|
|
457
|
-
super(...arguments), this._onChange = new
|
|
457
|
+
super(...arguments), this._onChange = new A();
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
460
460
|
* Subscribes a listener callback function. Every time a property is changed,
|
|
@@ -589,7 +589,7 @@ const j = class j {
|
|
|
589
589
|
* @returns a Query object
|
|
590
590
|
*/
|
|
591
591
|
find() {
|
|
592
|
-
return new
|
|
592
|
+
return new G(this);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
595
|
* Define the search conditions. You pass query operations and how the query
|
|
@@ -703,7 +703,7 @@ j.error = {
|
|
|
703
703
|
invalidQueryOrder: "Cannot add where calls after or calls"
|
|
704
704
|
};
|
|
705
705
|
let C = j;
|
|
706
|
-
class
|
|
706
|
+
class G {
|
|
707
707
|
constructor(e) {
|
|
708
708
|
this.queryObject = { operations: [] }, this.model = e;
|
|
709
709
|
}
|
|
@@ -992,7 +992,7 @@ const y = class y {
|
|
|
992
992
|
}
|
|
993
993
|
};
|
|
994
994
|
y.error = { shouldBeRegistered: "You should register a data source before using the data Store." };
|
|
995
|
-
let
|
|
995
|
+
let U = y;
|
|
996
996
|
class w {
|
|
997
997
|
installCachedPropsUpdaters(e = {}) {
|
|
998
998
|
w.onUpdate = e.onUpdate;
|
|
@@ -1069,7 +1069,7 @@ class w {
|
|
|
1069
1069
|
static async processDocumentChange(e, t) {
|
|
1070
1070
|
if (e.before)
|
|
1071
1071
|
return t.map(async (r) => {
|
|
1072
|
-
const s =
|
|
1072
|
+
const s = U.getModel(r.collectionPropOwner);
|
|
1073
1073
|
let n = s.find();
|
|
1074
1074
|
r.prop.cachedPropsConfig?.cachedProps?.forEach((a) => {
|
|
1075
1075
|
const c = e.before?.[a], h = e.after?.[a];
|
|
@@ -1079,15 +1079,15 @@ class w {
|
|
|
1079
1079
|
return Promise.all([
|
|
1080
1080
|
o.map(async (a) => {
|
|
1081
1081
|
r.prop.cachedPropsConfig?.cachedProps?.forEach(async (c) => {
|
|
1082
|
-
const h = e.before?.[c],
|
|
1083
|
-
h !==
|
|
1082
|
+
const h = e.before?.[c], l = e.after?.[c];
|
|
1083
|
+
h !== l && (a[`_${r.prop.name}`][`_${c}`] = l, await s.save(a), this.onUpdate?.(a, r.prop));
|
|
1084
1084
|
});
|
|
1085
1085
|
})
|
|
1086
1086
|
]);
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
class
|
|
1090
|
+
class pe extends w {
|
|
1091
1091
|
/**
|
|
1092
1092
|
* @param jsonRawData the JSON object to be used as data store
|
|
1093
1093
|
*/
|
|
@@ -1148,10 +1148,12 @@ class le extends w {
|
|
|
1148
1148
|
s || (this._collectionListeners[t] = {}, s = this._collectionListeners[t]);
|
|
1149
1149
|
const n = (a) => {
|
|
1150
1150
|
if (!a.after) return;
|
|
1151
|
-
const c =
|
|
1152
|
-
|
|
1151
|
+
const c = [a.after];
|
|
1152
|
+
a.before && c.push(a.before);
|
|
1153
|
+
const l = this.retrieveQueryDocs(c, e.operations).filter((D, $, T) => $ === T.findIndex((x) => x.id === D.id));
|
|
1154
|
+
l.length > 0 && r(l.map((D) => ({
|
|
1153
1155
|
before: void 0,
|
|
1154
|
-
after:
|
|
1156
|
+
after: D,
|
|
1155
1157
|
type: a.type,
|
|
1156
1158
|
params: a.params
|
|
1157
1159
|
})));
|
|
@@ -1232,14 +1234,14 @@ class le extends w {
|
|
|
1232
1234
|
}
|
|
1233
1235
|
isQueryMatched(e, t) {
|
|
1234
1236
|
const r = {
|
|
1235
|
-
"==": (h,
|
|
1236
|
-
"!=": (h,
|
|
1237
|
-
"<": (h,
|
|
1238
|
-
"<=": (h,
|
|
1239
|
-
">": (h,
|
|
1240
|
-
">=": (h,
|
|
1241
|
-
containsAny: (h,
|
|
1242
|
-
contains: (h,
|
|
1237
|
+
"==": (h, l) => h === l,
|
|
1238
|
+
"!=": (h, l) => h !== l,
|
|
1239
|
+
"<": (h, l) => h < l,
|
|
1240
|
+
"<=": (h, l) => h <= l,
|
|
1241
|
+
">": (h, l) => h > l,
|
|
1242
|
+
">=": (h, l) => h >= l,
|
|
1243
|
+
containsAny: (h, l) => h?.some((D) => l?.includes(D)),
|
|
1244
|
+
contains: (h, l) => h?.includes(l)
|
|
1243
1245
|
}, { property: s, value: n, operator: o } = t, [a, c] = this.retrieveValuesToCompare(e, s, n);
|
|
1244
1246
|
return r[o](a, c);
|
|
1245
1247
|
}
|
|
@@ -1288,17 +1290,17 @@ const v = class v {
|
|
|
1288
1290
|
};
|
|
1289
1291
|
v._cloudStorageFactoryMap = {};
|
|
1290
1292
|
let P = v;
|
|
1291
|
-
function
|
|
1293
|
+
function K(i, e) {
|
|
1292
1294
|
return P.registerCloudStorage(i, e), (t) => {
|
|
1293
1295
|
t.prototype.__className = i;
|
|
1294
1296
|
};
|
|
1295
1297
|
}
|
|
1296
|
-
var
|
|
1297
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
1298
|
+
var X = Object.getOwnPropertyDescriptor, ee = (i, e, t, r) => {
|
|
1299
|
+
for (var s = r > 1 ? void 0 : r ? X(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
1298
1300
|
(o = i[n]) && (s = o(s) || s);
|
|
1299
1301
|
return s;
|
|
1300
1302
|
};
|
|
1301
|
-
let
|
|
1303
|
+
let E = class extends P {
|
|
1302
1304
|
constructor(i = "") {
|
|
1303
1305
|
super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = i;
|
|
1304
1306
|
}
|
|
@@ -1346,17 +1348,17 @@ let D = class extends P {
|
|
|
1346
1348
|
return delete this.mockFileSystem[i], this.resolveWithDelay();
|
|
1347
1349
|
}
|
|
1348
1350
|
};
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
],
|
|
1352
|
-
var
|
|
1353
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
1351
|
+
E = ee([
|
|
1352
|
+
K("MockCloudStorage", () => new E())
|
|
1353
|
+
], E);
|
|
1354
|
+
var te = Object.defineProperty, re = Object.getOwnPropertyDescriptor, O = (i, e, t, r) => {
|
|
1355
|
+
for (var s = r > 1 ? void 0 : r ? re(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
1354
1356
|
(o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
|
|
1355
|
-
return r && s &&
|
|
1356
|
-
},
|
|
1357
|
+
return r && s && te(e, t, s), s;
|
|
1358
|
+
}, se = /* @__PURE__ */ ((i) => (i[i.stored = 0] = "stored", i[i.pendingDataSet = 1] = "pendingDataSet", i[i.deleted = 2] = "deleted", i))(se || {});
|
|
1357
1359
|
let b = class extends u {
|
|
1358
1360
|
constructor() {
|
|
1359
|
-
super(...arguments), this._onChange = new
|
|
1361
|
+
super(...arguments), this._onChange = new A();
|
|
1360
1362
|
}
|
|
1361
1363
|
async save({ data: i, fileName: e, progress: t, cloudStorageProvider: r } = {}) {
|
|
1362
1364
|
const s = i || this._pendingData;
|
|
@@ -1417,13 +1419,13 @@ O([
|
|
|
1417
1419
|
S
|
|
1418
1420
|
], b.prototype, "_mimeType", 2);
|
|
1419
1421
|
b = O([
|
|
1420
|
-
|
|
1422
|
+
Z("StoredFile")
|
|
1421
1423
|
], b);
|
|
1422
|
-
class
|
|
1424
|
+
class M {
|
|
1423
1425
|
}
|
|
1424
|
-
const p = class p extends
|
|
1426
|
+
const p = class p extends M {
|
|
1425
1427
|
constructor() {
|
|
1426
|
-
if (super(), this._onAuthStateChange = new
|
|
1428
|
+
if (super(), this._onAuthStateChange = new A(), !p._authService) throw new Error(p.error.shouldBeRegistered);
|
|
1427
1429
|
p._authService.onAuthStateChange(
|
|
1428
1430
|
(e) => this.authStateChanged(e)
|
|
1429
1431
|
);
|
|
@@ -1547,8 +1549,8 @@ const p = class p extends N {
|
|
|
1547
1549
|
}
|
|
1548
1550
|
};
|
|
1549
1551
|
p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
|
|
1550
|
-
let
|
|
1551
|
-
class
|
|
1552
|
+
let I = p;
|
|
1553
|
+
class me extends M {
|
|
1552
1554
|
constructor() {
|
|
1553
1555
|
super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
|
|
1554
1556
|
}
|
|
@@ -1649,8 +1651,8 @@ const g = class g {
|
|
|
1649
1651
|
}
|
|
1650
1652
|
};
|
|
1651
1653
|
g.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
|
|
1652
|
-
let
|
|
1653
|
-
class
|
|
1654
|
+
let k = g;
|
|
1655
|
+
class ge {
|
|
1654
1656
|
constructor(e) {
|
|
1655
1657
|
this._registeredFunctions = e;
|
|
1656
1658
|
}
|
|
@@ -1663,9 +1665,9 @@ class fe {
|
|
|
1663
1665
|
return e(t);
|
|
1664
1666
|
}
|
|
1665
1667
|
}
|
|
1666
|
-
class
|
|
1668
|
+
class V {
|
|
1667
1669
|
}
|
|
1668
|
-
const m = class m extends
|
|
1670
|
+
const m = class m extends V {
|
|
1669
1671
|
constructor() {
|
|
1670
1672
|
super();
|
|
1671
1673
|
}
|
|
@@ -1690,8 +1692,8 @@ const m = class m extends M {
|
|
|
1690
1692
|
}
|
|
1691
1693
|
};
|
|
1692
1694
|
m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
|
|
1693
|
-
let
|
|
1694
|
-
class
|
|
1695
|
+
let L = m;
|
|
1696
|
+
class _e extends V {
|
|
1695
1697
|
constructor(e) {
|
|
1696
1698
|
super(), this._userCredentials = e;
|
|
1697
1699
|
}
|
|
@@ -1717,62 +1719,62 @@ class pe extends M {
|
|
|
1717
1719
|
return this._userCredentials;
|
|
1718
1720
|
}
|
|
1719
1721
|
}
|
|
1720
|
-
function
|
|
1722
|
+
function ye(i, e) {
|
|
1721
1723
|
return i ? i.replace(/\${\s*(\w*)\s*}/g, function(t, r) {
|
|
1722
1724
|
return e[r] || "";
|
|
1723
1725
|
}) : "";
|
|
1724
1726
|
}
|
|
1725
|
-
function
|
|
1727
|
+
function ve(i) {
|
|
1726
1728
|
return i ? i.replace(
|
|
1727
1729
|
/([-_ ][\w])/g,
|
|
1728
1730
|
(e) => e.toUpperCase().replace("-", "").replace("_", "").replace(" ", "")
|
|
1729
1731
|
) : "";
|
|
1730
1732
|
}
|
|
1731
|
-
function
|
|
1733
|
+
function Pe(i, e = "-") {
|
|
1732
1734
|
if (!i) return "";
|
|
1733
1735
|
const t = i.slice(1).replace(/( |[A-Z])/g, (r) => r === " " ? "-" : e + r[0].toLowerCase());
|
|
1734
1736
|
return i[0].toLocaleLowerCase() + t.replace(/--/g, "-");
|
|
1735
1737
|
}
|
|
1736
|
-
function
|
|
1738
|
+
function be(i, e) {
|
|
1737
1739
|
return e.split(".").reduce((t, r) => t[r], i);
|
|
1738
1740
|
}
|
|
1739
1741
|
export {
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1742
|
+
I as Auth,
|
|
1743
|
+
me as AuthMock,
|
|
1744
|
+
M as AuthService,
|
|
1745
|
+
k as CloudFunctions,
|
|
1746
|
+
ge as CloudFunctionsMock,
|
|
1745
1747
|
P as CloudStorage,
|
|
1746
1748
|
w as DataSource,
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1749
|
+
fe as EntropicComponent,
|
|
1750
|
+
pe as JsonDataSource,
|
|
1751
|
+
E as MockCloudStorage,
|
|
1750
1752
|
C as Model,
|
|
1751
|
-
|
|
1753
|
+
A as Observable,
|
|
1752
1754
|
u as Persistent,
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1755
|
+
G as Query,
|
|
1756
|
+
L as ServerAuth,
|
|
1757
|
+
_e as ServerAuthMock,
|
|
1758
|
+
V as ServerAuthService,
|
|
1759
|
+
U as Store,
|
|
1758
1760
|
b as StoredFile,
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1761
|
+
se as StoredFileEvent,
|
|
1762
|
+
ve as camelCase,
|
|
1763
|
+
be as getDeepValue,
|
|
1762
1764
|
S as persistent,
|
|
1763
1765
|
_ as persistentParser,
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1766
|
+
ae as persistentPureReference,
|
|
1767
|
+
ce as persistentPureReferenceWithCachedProps,
|
|
1768
|
+
ne as persistentReference,
|
|
1769
|
+
ie as persistentReferenceAt,
|
|
1770
|
+
oe as persistentReferenceWithCachedProps,
|
|
1771
|
+
K as registerCloudStorage,
|
|
1772
|
+
ue as registerLegacyClassName,
|
|
1773
|
+
Z as registerPersistentClass,
|
|
1774
|
+
ye as replaceValue,
|
|
1775
|
+
le as required,
|
|
1776
|
+
de as requiredWithValidator,
|
|
1777
|
+
he as searchableArray,
|
|
1778
|
+
Pe as snakeCase
|
|
1777
1779
|
};
|
|
1778
1780
|
//# sourceMappingURL=entropic-bond.js.map
|