@fctc/interface-logic 5.2.4 → 5.2.6
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/dist/{chunk-Q5YXX4OR.js → chunk-CCTDGAMA.js} +52 -51
- package/dist/{chunk-WBGK2SHU.js → chunk-COC7NGXP.js} +20 -19
- package/dist/{chunk-6ARYI77N.mjs → chunk-F2VAAEVB.mjs} +12 -3
- package/dist/{chunk-OV7EKGYM.mjs → chunk-F4RE57FT.mjs} +1394 -640
- package/dist/{chunk-C5QQGBN4.js → chunk-FWBYTZIV.js} +23 -18
- package/dist/chunk-GGNOJ77I.js +1 -2
- package/dist/{chunk-BPJZ3QRN.mjs → chunk-HQVNK2EW.mjs} +128 -770
- package/dist/{chunk-VBYRP2P7.mjs → chunk-Q3Y6RCJ4.mjs} +19 -1
- package/dist/{chunk-5STZNSW4.js → chunk-U2COUTK5.js} +1663 -1087
- package/dist/{chunk-JDXUTKMX.js → chunk-U4Q3MW45.js} +170 -852
- package/dist/{chunk-QOXPJWSN.mjs → chunk-VBVNP77T.mjs} +6 -2
- package/dist/chunk-WAXGOBY2.mjs +0 -1
- package/dist/chunk-WTPKTZQC.js +118 -0
- package/dist/{chunk-ACSPOGTI.mjs → chunk-ZDXEWQQD.mjs} +14 -7
- package/dist/configs.js +4 -9
- package/dist/configs.mjs +7 -3
- package/dist/constants.d.mts +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +36 -70
- package/dist/constants.mjs +36 -1
- package/dist/environment.d.mts +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +8 -17
- package/dist/environment.mjs +12 -4
- package/dist/hooks.d.mts +7 -23
- package/dist/hooks.d.ts +7 -23
- package/dist/hooks.js +312 -635
- package/dist/hooks.mjs +312 -6
- package/dist/index.d.mts +4 -10
- package/dist/index.d.ts +4 -10
- package/dist/index.js +433 -1257
- package/dist/index.mjs +433 -8
- package/dist/{local-storage-BPvoMGYJ.d.mts → local-storage-AbiOQTLK.d.mts} +1 -1
- package/dist/{local-storage-BPvoMGYJ.d.ts → local-storage-AbiOQTLK.d.ts} +1 -1
- package/dist/models.js +4 -8
- package/dist/models.mjs +7 -2
- package/dist/provider.d.mts +4 -12
- package/dist/provider.d.ts +4 -12
- package/dist/provider.js +26 -51
- package/dist/provider.mjs +26 -6
- package/dist/services.d.mts +6 -10
- package/dist/services.d.ts +6 -10
- package/dist/services.js +30 -55
- package/dist/services.mjs +30 -6
- package/dist/types.js +1 -4
- package/dist/types.mjs +1 -1
- package/dist/utils.d.mts +33 -61
- package/dist/utils.d.ts +33 -61
- package/dist/utils.js +36 -139
- package/dist/utils.mjs +36 -2
- package/package.json +15 -29
- package/dist/chunk-6LSKTACC.js +0 -687
- package/dist/chunk-B432GFRR.mjs +0 -606
- package/dist/chunk-RPWKWEMA.js +0 -116
- package/dist/store.d.mts +0 -382
- package/dist/store.d.ts +0 -382
- package/dist/store.js +0 -326
- package/dist/store.mjs +0 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var _chunkCCTDGAMAjs = require('./chunk-CCTDGAMA.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkU4Q3MW45js = require('./chunk-U4Q3MW45.js');
|
|
5
8
|
|
|
6
9
|
// src/environment/EnvStore.ts
|
|
7
|
-
var EventEmitter = class {
|
|
8
|
-
listeners = {}
|
|
10
|
+
var EventEmitter = (_class = class {constructor() { _class.prototype.__init.call(this); }
|
|
11
|
+
__init() {this.listeners = {}}
|
|
9
12
|
on(event, callback) {
|
|
10
13
|
if (!this.listeners[event]) {
|
|
11
14
|
this.listeners[event] = [];
|
|
@@ -17,13 +20,13 @@ var EventEmitter = class {
|
|
|
17
20
|
this.listeners[event].forEach((callback) => callback(data));
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
|
-
};
|
|
23
|
+
}, _class);
|
|
21
24
|
var EnvStore = class {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
constructor(localStorageUtil =
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
constructor(localStorageUtil = _chunkU4Q3MW45js.localStorageUtils.call(void 0, ), sessionStorageUtil = _chunkU4Q3MW45js.sessionStorageUtils) {
|
|
27
30
|
this.state = {
|
|
28
31
|
baseUrl: "",
|
|
29
32
|
requests: null,
|
|
@@ -63,7 +66,7 @@ var EnvStore = class {
|
|
|
63
66
|
localStorageUtils: this.localStorageUtil,
|
|
64
67
|
sessionStorageUtils: this.sessionStorageUtil
|
|
65
68
|
};
|
|
66
|
-
this.state.requests =
|
|
69
|
+
this.state.requests = _chunkCCTDGAMAjs.axiosClient.init(this.state);
|
|
67
70
|
this.emitter.emit("update", this.getEnv());
|
|
68
71
|
return this.getEnv();
|
|
69
72
|
}
|
|
@@ -111,8 +114,8 @@ var EnvStore = class {
|
|
|
111
114
|
};
|
|
112
115
|
var env = null;
|
|
113
116
|
function initEnv({
|
|
114
|
-
localStorageUtils: localStorageUtil =
|
|
115
|
-
sessionStorageUtils: sessionStorageUtil =
|
|
117
|
+
localStorageUtils: localStorageUtil = _chunkU4Q3MW45js.localStorageUtils.call(void 0, ),
|
|
118
|
+
sessionStorageUtils: sessionStorageUtil = _chunkU4Q3MW45js.sessionStorageUtils
|
|
116
119
|
}) {
|
|
117
120
|
if (!env) {
|
|
118
121
|
env = new EnvStore(localStorageUtil, sessionStorageUtil);
|
|
@@ -123,9 +126,11 @@ function getEnv() {
|
|
|
123
126
|
if (!env) {
|
|
124
127
|
env = initEnv({});
|
|
125
128
|
}
|
|
126
|
-
return env
|
|
129
|
+
return _optionalChain([env, 'optionalAccess', _ => _.getEnv, 'call', _2 => _2()]);
|
|
127
130
|
}
|
|
128
131
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
exports.EnvStore = EnvStore; exports.initEnv = initEnv; exports.getEnv = getEnv;
|
package/dist/chunk-GGNOJ77I.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|