entropic-bond 1.52.0 → 1.53.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.
- package/lib/auth/auth-mock.d.ts +2 -3
- package/lib/auth/auth.d.ts +1 -2
- package/lib/cloud-functions/cloud-functions-mock.d.ts +0 -1
- package/lib/cloud-storage/mock-cloud-storage.d.ts +0 -1
- package/lib/cloud-storage/stored-file.d.ts +3 -4
- package/lib/entropic-bond.js +120 -126
- 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/lib/persistent/entropic-component.d.ts +2 -3
- package/lib/persistent/persistent.d.ts +6 -8
- package/lib/server-auth/server-auth-mock.d.ts +2 -3
- package/lib/server-auth/server-auth.d.ts +0 -1
- package/lib/store/data-source.d.ts +1 -2
- package/lib/store/json-data-source.d.ts +1 -2
- package/lib/store/mocks/test-user.d.ts +0 -1
- package/lib/store/model.d.ts +2 -3
- package/lib/store/store.d.ts +2 -3
- package/lib/utils/utils.d.ts +0 -1
- package/package.json +11 -11
package/lib/auth/auth-mock.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { UserCredentials, SignData, AuthProvider } from './user-auth-types';
|
|
2
|
-
import { AuthService } from './auth';
|
|
3
1
|
import { Collection } from '../types/utility-types';
|
|
4
|
-
|
|
2
|
+
import { AuthService } from './auth';
|
|
3
|
+
import { UserCredentials, SignData, AuthProvider } from './user-auth-types';
|
|
5
4
|
export declare class AuthMock extends AuthService {
|
|
6
5
|
signUp<T extends {}>(signData: SignData): Promise<UserCredentials<T>>;
|
|
7
6
|
login<T extends {}>(signData: SignData): Promise<UserCredentials<T>>;
|
package/lib/auth/auth.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AuthProvider, SignData, UserCredentials } from './user-auth-types';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* The AuthService class is an abstract class that defines the interface of an authentication service.
|
|
5
4
|
* You should derive from this class to implement your own authentication service.
|
|
@@ -101,7 +100,7 @@ export declare class Auth extends AuthService {
|
|
|
101
100
|
* }
|
|
102
101
|
* })
|
|
103
102
|
*/
|
|
104
|
-
onAuthStateChange<T extends {}>(onChange: (userCredentials: UserCredentials<T>) => void): import('
|
|
103
|
+
onAuthStateChange<T extends {}>(onChange: (userCredentials: UserCredentials<T>) => void): import('..').Unsubscriber;
|
|
105
104
|
/**
|
|
106
105
|
* Removes a listener that was added by `onAuthStateChange` method.
|
|
107
106
|
* @param onChange the listener to be removed
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CloudStorage, StorableData, UploadControl, UploadProgress } from './cloud-storage';
|
|
2
|
-
import { Persistent } from '../persistent/persistent';
|
|
3
1
|
import { Callback } from '../observable/observable';
|
|
4
|
-
|
|
2
|
+
import { Persistent } from '../persistent/persistent';
|
|
3
|
+
import { CloudStorage, StorableData, UploadControl, UploadProgress } from './cloud-storage';
|
|
5
4
|
export declare enum StoredFileEvent {
|
|
6
5
|
stored = 0,
|
|
7
6
|
pendingDataSet = 1,
|
|
@@ -28,7 +27,7 @@ export declare class StoredFile extends Persistent {
|
|
|
28
27
|
get mimeType(): string | undefined;
|
|
29
28
|
setDataToStore(data: StorableData): this;
|
|
30
29
|
get originalFileName(): string | undefined;
|
|
31
|
-
onChange(listenerCallback: Callback<StoredFileChange>): import('
|
|
30
|
+
onChange(listenerCallback: Callback<StoredFileChange>): import('..').Unsubscriber;
|
|
32
31
|
private _reference;
|
|
33
32
|
private _url;
|
|
34
33
|
private _cloudStorageProviderName;
|
package/lib/entropic-bond.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class I {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.subscribers = /* @__PURE__ */ new Set();
|
|
4
4
|
}
|
|
@@ -43,41 +43,41 @@ class F {
|
|
|
43
43
|
return this.subscribers.size;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
var f = [];
|
|
47
|
+
for (var U = 0; U < 256; ++U)
|
|
48
|
+
f.push((U + 256).toString(16).slice(1));
|
|
49
|
+
function L(i, e = 0) {
|
|
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
|
+
}
|
|
52
|
+
var j, W = new Uint8Array(16);
|
|
53
|
+
function Q() {
|
|
49
54
|
if (!j && (j = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !j))
|
|
50
55
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
51
|
-
return j(
|
|
52
|
-
}
|
|
53
|
-
const f = [];
|
|
54
|
-
for (let i = 0; i < 256; ++i)
|
|
55
|
-
f.push((i + 256).toString(16).slice(1));
|
|
56
|
-
function W(i, e = 0) {
|
|
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]];
|
|
56
|
+
return j(W);
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
var q = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
59
|
+
const V = {
|
|
60
|
+
randomUUID: q
|
|
61
61
|
};
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
62
|
+
function Y(i, e, t) {
|
|
63
|
+
if (V.randomUUID && !e && !i)
|
|
64
|
+
return V.randomUUID();
|
|
65
65
|
i = i || {};
|
|
66
|
-
|
|
66
|
+
var r = i.random || (i.rng || Q)();
|
|
67
67
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
|
|
68
68
|
t = t || 0;
|
|
69
|
-
for (
|
|
69
|
+
for (var 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
|
-
var
|
|
76
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
75
|
+
var z = Object.defineProperty, H = Object.getOwnPropertyDescriptor, J = (i, e, t, r) => {
|
|
76
|
+
for (var s = r > 1 ? void 0 : r ? H(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
77
77
|
(o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
|
|
78
|
-
return r && s &&
|
|
78
|
+
return r && s && z(e, t, s), s;
|
|
79
79
|
}, d;
|
|
80
|
-
const
|
|
80
|
+
const T = (d = class {
|
|
81
81
|
/**
|
|
82
82
|
* Registers a class to be used by the persistence engine.
|
|
83
83
|
* @param className the name of the class to be registered
|
|
@@ -139,7 +139,7 @@ const M = (d = class {
|
|
|
139
139
|
* Returns a new instance of Persistent class.
|
|
140
140
|
* @param className the initial id of this instance. If not provided, a new id will be generated
|
|
141
141
|
*/
|
|
142
|
-
constructor(e =
|
|
142
|
+
constructor(e = Y()) {
|
|
143
143
|
this._id = e;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
@@ -320,12 +320,7 @@ const M = (d = class {
|
|
|
320
320
|
}
|
|
321
321
|
toReferenceObj(e, t) {
|
|
322
322
|
const r = this[e.name];
|
|
323
|
-
|
|
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
|
-
return r.map((s) => (e.isPureReference || this.pushDocument(t, d.collectionPath(s, e), s), this.buildRefObject(s, d.collectionPath(s, e), e.cachedProps)));
|
|
327
|
-
} else
|
|
328
|
-
return e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedProps);
|
|
323
|
+
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.cachedProps))) : (e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedProps));
|
|
329
324
|
}
|
|
330
325
|
buildRefObject(e, t, r) {
|
|
331
326
|
const s = r == null ? void 0 : r.reduce((n, o) => (e[o] !== void 0 && (n[o] = e[o]), n), {});
|
|
@@ -384,14 +379,14 @@ const M = (d = class {
|
|
|
384
379
|
}, {});
|
|
385
380
|
}
|
|
386
381
|
}, d._factoryMap = {}, d);
|
|
387
|
-
|
|
382
|
+
J([
|
|
388
383
|
R
|
|
389
|
-
],
|
|
390
|
-
let l =
|
|
384
|
+
], T.prototype, "_id", 2);
|
|
385
|
+
let l = T;
|
|
391
386
|
function R(i, e) {
|
|
392
387
|
return _()(i, e);
|
|
393
388
|
}
|
|
394
|
-
function
|
|
389
|
+
function ne(i) {
|
|
395
390
|
return function(e, t) {
|
|
396
391
|
return _({
|
|
397
392
|
storeInCollection: i,
|
|
@@ -399,31 +394,30 @@ function ie(i) {
|
|
|
399
394
|
})(e, t);
|
|
400
395
|
};
|
|
401
396
|
}
|
|
402
|
-
function
|
|
397
|
+
function oe(i, e) {
|
|
403
398
|
return _({ isReference: !0 })(i, e);
|
|
404
399
|
}
|
|
405
|
-
function
|
|
400
|
+
function ae(i, e, t) {
|
|
406
401
|
return function(r, s) {
|
|
407
|
-
|
|
402
|
+
return _({
|
|
408
403
|
isReference: !0,
|
|
409
|
-
cachedProps:
|
|
410
|
-
storeInCollection:
|
|
411
|
-
typeName:
|
|
412
|
-
};
|
|
413
|
-
return _(n)(r, s);
|
|
404
|
+
cachedProps: i,
|
|
405
|
+
storeInCollection: e,
|
|
406
|
+
typeName: t
|
|
407
|
+
})(r, s);
|
|
414
408
|
};
|
|
415
409
|
}
|
|
416
|
-
function
|
|
410
|
+
function ce(i, e, t) {
|
|
417
411
|
return _({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
|
|
418
412
|
}
|
|
419
|
-
function
|
|
413
|
+
function ue(i, e, t) {
|
|
420
414
|
return function(r, s) {
|
|
421
415
|
return _({
|
|
422
416
|
isReference: !0,
|
|
423
417
|
isPureReference: !0,
|
|
424
|
-
cachedProps:
|
|
425
|
-
storeInCollection:
|
|
426
|
-
typeName:
|
|
418
|
+
cachedProps: i,
|
|
419
|
+
storeInCollection: e,
|
|
420
|
+
typeName: t
|
|
427
421
|
})(r, s);
|
|
428
422
|
};
|
|
429
423
|
}
|
|
@@ -437,30 +431,30 @@ function _(i) {
|
|
|
437
431
|
});
|
|
438
432
|
};
|
|
439
433
|
}
|
|
440
|
-
function
|
|
434
|
+
function Z(i, e) {
|
|
441
435
|
return (t) => {
|
|
442
436
|
l.registerFactory(i, t, e), t.prototype.__className = i;
|
|
443
437
|
};
|
|
444
438
|
}
|
|
445
|
-
function
|
|
439
|
+
function he(i) {
|
|
446
440
|
return (e) => {
|
|
447
441
|
l.registerFactory(i, e);
|
|
448
442
|
};
|
|
449
443
|
}
|
|
450
|
-
function
|
|
444
|
+
function le(i, e) {
|
|
451
445
|
return _({ searchableArray: !0 })(i, e);
|
|
452
446
|
}
|
|
453
|
-
function
|
|
447
|
+
function de(i, e) {
|
|
454
448
|
return _({ validator: (t) => t != null })(i, e);
|
|
455
449
|
}
|
|
456
|
-
function
|
|
450
|
+
function fe(i = (e) => e != null) {
|
|
457
451
|
return function(e, t) {
|
|
458
452
|
return _({ validator: i })(e, t);
|
|
459
453
|
};
|
|
460
454
|
}
|
|
461
|
-
class
|
|
455
|
+
class pe extends l {
|
|
462
456
|
constructor() {
|
|
463
|
-
super(...arguments), this._onChange = new
|
|
457
|
+
super(...arguments), this._onChange = new I();
|
|
464
458
|
}
|
|
465
459
|
/**
|
|
466
460
|
* Subscribes a listener callback function. Every time a property is changed,
|
|
@@ -596,7 +590,7 @@ const E = class E {
|
|
|
596
590
|
* @returns a Query object
|
|
597
591
|
*/
|
|
598
592
|
find() {
|
|
599
|
-
return new
|
|
593
|
+
return new G(this);
|
|
600
594
|
}
|
|
601
595
|
/**
|
|
602
596
|
* Define the search conditions. You pass query operations and how the query
|
|
@@ -686,7 +680,7 @@ E.error = {
|
|
|
686
680
|
invalidQueryOrder: "Cannot add where calls after or calls"
|
|
687
681
|
};
|
|
688
682
|
let S = E;
|
|
689
|
-
class
|
|
683
|
+
class G {
|
|
690
684
|
constructor(e) {
|
|
691
685
|
this.queryObject = { operations: [] }, this.model = e;
|
|
692
686
|
}
|
|
@@ -981,7 +975,7 @@ const y = class y {
|
|
|
981
975
|
}
|
|
982
976
|
};
|
|
983
977
|
y.error = { shouldBeRegistered: "You should register a data source before using the data Store." };
|
|
984
|
-
let
|
|
978
|
+
let F = y;
|
|
985
979
|
class C {
|
|
986
980
|
installCachedPropsUpdaters(e = {}) {
|
|
987
981
|
C.onUpdate = e.onUpdate;
|
|
@@ -1060,7 +1054,7 @@ class C {
|
|
|
1060
1054
|
if (e.before)
|
|
1061
1055
|
return t.map(async (r) => {
|
|
1062
1056
|
var c;
|
|
1063
|
-
const s =
|
|
1057
|
+
const s = F.getModel(r.collectionPropOwner);
|
|
1064
1058
|
let n = s.find();
|
|
1065
1059
|
(c = r.prop.cachedProps) == null || c.forEach((h) => {
|
|
1066
1060
|
const a = e.before[h], u = e.after[h];
|
|
@@ -1071,16 +1065,16 @@ class C {
|
|
|
1071
1065
|
o.map(async (h) => {
|
|
1072
1066
|
var a;
|
|
1073
1067
|
(a = r.prop.cachedProps) == null || a.forEach(async (u) => {
|
|
1074
|
-
var
|
|
1068
|
+
var N;
|
|
1075
1069
|
const b = e.before[u], O = e.after[u];
|
|
1076
|
-
b !== O && (h[`_${r.prop.name}`][`_${u}`] = O, await s.save(h), (
|
|
1070
|
+
b !== O && (h[`_${r.prop.name}`][`_${u}`] = O, await s.save(h), (N = this.onUpdate) == null || N.call(this, h, r.prop));
|
|
1077
1071
|
});
|
|
1078
1072
|
})
|
|
1079
1073
|
]);
|
|
1080
1074
|
});
|
|
1081
1075
|
}
|
|
1082
1076
|
}
|
|
1083
|
-
class
|
|
1077
|
+
class me extends C {
|
|
1084
1078
|
/**
|
|
1085
1079
|
* @param jsonRawData the JSON object to be used as data store
|
|
1086
1080
|
*/
|
|
@@ -1241,12 +1235,12 @@ class pe extends C {
|
|
|
1241
1235
|
), t;
|
|
1242
1236
|
}
|
|
1243
1237
|
}
|
|
1244
|
-
const
|
|
1238
|
+
const v = class v {
|
|
1245
1239
|
static registerCloudStorage(e, t) {
|
|
1246
|
-
|
|
1240
|
+
v._cloudStorageFactoryMap[e] = t;
|
|
1247
1241
|
}
|
|
1248
1242
|
static createInstance(e) {
|
|
1249
|
-
const t =
|
|
1243
|
+
const t = v._cloudStorageFactoryMap[e];
|
|
1250
1244
|
if (!t)
|
|
1251
1245
|
throw new Error(`You should register the ${e} cloud storage provider prior to use it`);
|
|
1252
1246
|
return t();
|
|
@@ -1255,27 +1249,27 @@ const P = class P {
|
|
|
1255
1249
|
return this.__className;
|
|
1256
1250
|
}
|
|
1257
1251
|
static useCloudStorage(e) {
|
|
1258
|
-
|
|
1252
|
+
v._defaultCloudStorage = e;
|
|
1259
1253
|
}
|
|
1260
1254
|
static get defaultCloudStorage() {
|
|
1261
|
-
if (!
|
|
1255
|
+
if (!v._defaultCloudStorage)
|
|
1262
1256
|
throw new Error("You should define a default cloud storage provider prior to use it");
|
|
1263
|
-
return
|
|
1257
|
+
return v._defaultCloudStorage;
|
|
1264
1258
|
}
|
|
1265
1259
|
};
|
|
1266
|
-
|
|
1267
|
-
let
|
|
1268
|
-
function
|
|
1269
|
-
return
|
|
1260
|
+
v._cloudStorageFactoryMap = {};
|
|
1261
|
+
let P = v;
|
|
1262
|
+
function K(i, e) {
|
|
1263
|
+
return P.registerCloudStorage(i, e), (t) => {
|
|
1270
1264
|
t.prototype.__className = i;
|
|
1271
1265
|
};
|
|
1272
1266
|
}
|
|
1273
|
-
var
|
|
1274
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
1267
|
+
var X = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (i, e, t, r) => {
|
|
1268
|
+
for (var s = r > 1 ? void 0 : r ? ee(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
1275
1269
|
(o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
|
|
1276
|
-
return r && s &&
|
|
1270
|
+
return r && s && X(e, t, s), s;
|
|
1277
1271
|
};
|
|
1278
|
-
let
|
|
1272
|
+
let A = class extends P {
|
|
1279
1273
|
constructor(i = "") {
|
|
1280
1274
|
super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = i;
|
|
1281
1275
|
}
|
|
@@ -1324,21 +1318,21 @@ let U = class extends v {
|
|
|
1324
1318
|
return delete this.mockFileSystem[i], this.resolveWithDelay();
|
|
1325
1319
|
}
|
|
1326
1320
|
};
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
],
|
|
1330
|
-
var
|
|
1331
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
1321
|
+
A = te([
|
|
1322
|
+
K("MockCloudStorage", () => new A())
|
|
1323
|
+
], A);
|
|
1324
|
+
var re = Object.defineProperty, se = Object.getOwnPropertyDescriptor, D = (i, e, t, r) => {
|
|
1325
|
+
for (var s = r > 1 ? void 0 : r ? se(e, t) : e, n = i.length - 1, o; n >= 0; n--)
|
|
1332
1326
|
(o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
|
|
1333
|
-
return r && s &&
|
|
1334
|
-
},
|
|
1327
|
+
return r && s && re(e, t, s), s;
|
|
1328
|
+
}, ie = /* @__PURE__ */ ((i) => (i[i.stored = 0] = "stored", i[i.pendingDataSet = 1] = "pendingDataSet", i[i.deleted = 2] = "deleted", i))(ie || {});
|
|
1335
1329
|
let w = class extends l {
|
|
1336
1330
|
constructor() {
|
|
1337
|
-
super(...arguments), this._onChange = new
|
|
1331
|
+
super(...arguments), this._onChange = new I();
|
|
1338
1332
|
}
|
|
1339
1333
|
async save({ data: i, fileName: e, progress: t, cloudStorageProvider: r } = {}) {
|
|
1340
1334
|
const s = i || this._pendingData;
|
|
1341
|
-
s && (this._reference && await this.delete(), this.provider = r ||
|
|
1335
|
+
s && (this._reference && await this.delete(), this.provider = r || P.defaultCloudStorage, this._originalFileName = e || (s instanceof File ? s.name : void 0), this._reference = await this.provider.save(this.id, s, t), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
|
|
1342
1336
|
}
|
|
1343
1337
|
uploadControl() {
|
|
1344
1338
|
return this.provider.uploadControl();
|
|
@@ -1354,9 +1348,9 @@ let w = class extends l {
|
|
|
1354
1348
|
get provider() {
|
|
1355
1349
|
if (!this._provider)
|
|
1356
1350
|
try {
|
|
1357
|
-
this._provider =
|
|
1351
|
+
this._provider = P.createInstance(this._cloudStorageProviderName);
|
|
1358
1352
|
} catch {
|
|
1359
|
-
this._provider =
|
|
1353
|
+
this._provider = P.defaultCloudStorage;
|
|
1360
1354
|
}
|
|
1361
1355
|
return this._provider;
|
|
1362
1356
|
}
|
|
@@ -1396,13 +1390,13 @@ D([
|
|
|
1396
1390
|
R
|
|
1397
1391
|
], w.prototype, "_mimeType", 2);
|
|
1398
1392
|
w = D([
|
|
1399
|
-
|
|
1393
|
+
Z("StoredFile")
|
|
1400
1394
|
], w);
|
|
1401
1395
|
class x {
|
|
1402
1396
|
}
|
|
1403
1397
|
const p = class p extends x {
|
|
1404
1398
|
constructor() {
|
|
1405
|
-
if (super(), this._onAuthStateChange = new
|
|
1399
|
+
if (super(), this._onAuthStateChange = new I(), !p._authService)
|
|
1406
1400
|
throw new Error(p.error.shouldBeRegistered);
|
|
1407
1401
|
p._authService.onAuthStateChange(
|
|
1408
1402
|
(e) => this.authStateChanged(e)
|
|
@@ -1528,7 +1522,7 @@ const p = class p extends x {
|
|
|
1528
1522
|
};
|
|
1529
1523
|
p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
|
|
1530
1524
|
let $ = p;
|
|
1531
|
-
class
|
|
1525
|
+
class ge extends x {
|
|
1532
1526
|
constructor() {
|
|
1533
1527
|
super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
|
|
1534
1528
|
}
|
|
@@ -1633,8 +1627,8 @@ const g = class g {
|
|
|
1633
1627
|
}
|
|
1634
1628
|
};
|
|
1635
1629
|
g.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
|
|
1636
|
-
let
|
|
1637
|
-
class
|
|
1630
|
+
let k = g;
|
|
1631
|
+
class _e {
|
|
1638
1632
|
constructor(e) {
|
|
1639
1633
|
this._registeredFunctions = e;
|
|
1640
1634
|
}
|
|
@@ -1648,9 +1642,9 @@ class ge {
|
|
|
1648
1642
|
return e(t);
|
|
1649
1643
|
}
|
|
1650
1644
|
}
|
|
1651
|
-
class
|
|
1645
|
+
class B {
|
|
1652
1646
|
}
|
|
1653
|
-
const m = class m extends
|
|
1647
|
+
const m = class m extends B {
|
|
1654
1648
|
constructor() {
|
|
1655
1649
|
super();
|
|
1656
1650
|
}
|
|
@@ -1676,8 +1670,8 @@ const m = class m extends T {
|
|
|
1676
1670
|
}
|
|
1677
1671
|
};
|
|
1678
1672
|
m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
|
|
1679
|
-
let
|
|
1680
|
-
class
|
|
1673
|
+
let M = m;
|
|
1674
|
+
class ye extends B {
|
|
1681
1675
|
constructor(e) {
|
|
1682
1676
|
super(), this._userCredentials = e;
|
|
1683
1677
|
}
|
|
@@ -1704,7 +1698,7 @@ class _e extends T {
|
|
|
1704
1698
|
return this._userCredentials;
|
|
1705
1699
|
}
|
|
1706
1700
|
}
|
|
1707
|
-
function
|
|
1701
|
+
function ve(i, e) {
|
|
1708
1702
|
return i ? i.replace(/\${\s*(\w*)\s*}/g, function(t, r) {
|
|
1709
1703
|
return e[r] || "";
|
|
1710
1704
|
}) : "";
|
|
@@ -1715,52 +1709,52 @@ function Pe(i) {
|
|
|
1715
1709
|
(e) => e.toUpperCase().replace("-", "").replace("_", "").replace(" ", "")
|
|
1716
1710
|
) : "";
|
|
1717
1711
|
}
|
|
1718
|
-
function
|
|
1712
|
+
function we(i, e = "-") {
|
|
1719
1713
|
if (!i)
|
|
1720
1714
|
return "";
|
|
1721
1715
|
const t = i.slice(1).replace(/( |[A-Z])/g, (r) => r === " " ? "-" : e + r[0].toLowerCase());
|
|
1722
1716
|
return i[0].toLocaleLowerCase() + t.replace(/--/g, "-");
|
|
1723
1717
|
}
|
|
1724
|
-
function
|
|
1718
|
+
function be(i, e) {
|
|
1725
1719
|
return e.split(".").reduce((t, r) => t[r], i);
|
|
1726
1720
|
}
|
|
1727
1721
|
export {
|
|
1728
1722
|
$ as Auth,
|
|
1729
|
-
|
|
1723
|
+
ge as AuthMock,
|
|
1730
1724
|
x as AuthService,
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1725
|
+
k as CloudFunctions,
|
|
1726
|
+
_e as CloudFunctionsMock,
|
|
1727
|
+
P as CloudStorage,
|
|
1734
1728
|
C as DataSource,
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1729
|
+
pe as EntropicComponent,
|
|
1730
|
+
me as JsonDataSource,
|
|
1731
|
+
A as MockCloudStorage,
|
|
1738
1732
|
S as Model,
|
|
1739
|
-
|
|
1733
|
+
I as Observable,
|
|
1740
1734
|
l as Persistent,
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1735
|
+
G as Query,
|
|
1736
|
+
M as ServerAuth,
|
|
1737
|
+
ye as ServerAuthMock,
|
|
1738
|
+
B as ServerAuthService,
|
|
1739
|
+
F as Store,
|
|
1746
1740
|
w as StoredFile,
|
|
1747
|
-
|
|
1741
|
+
ie as StoredFileEvent,
|
|
1748
1742
|
Pe as camelCase,
|
|
1749
|
-
|
|
1743
|
+
be as getDeepValue,
|
|
1750
1744
|
R as persistent,
|
|
1751
1745
|
_ as persistentParser,
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1746
|
+
ce as persistentPureReference,
|
|
1747
|
+
ue as persistentPureReferenceWithCachedProps,
|
|
1748
|
+
oe as persistentReference,
|
|
1749
|
+
ne as persistentReferenceAt,
|
|
1750
|
+
ae as persistentReferenceWithCachedProps,
|
|
1751
|
+
K as registerCloudStorage,
|
|
1752
|
+
he as registerLegacyClassName,
|
|
1753
|
+
Z as registerPersistentClass,
|
|
1754
|
+
ve as replaceValue,
|
|
1755
|
+
de as required,
|
|
1756
|
+
fe as requiredWithValidator,
|
|
1757
|
+
le as searchableArray,
|
|
1758
|
+
we as snakeCase
|
|
1765
1759
|
};
|
|
1766
1760
|
//# sourceMappingURL=entropic-bond.js.map
|