vue-fn 0.1.0-beta.0 → 0.1.0-beta.2
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/domain/index.mjs +235 -220
- package/domain/index.mjs.map +1 -1
- package/domain/plugin.d.ts +16 -38
- package/domain-server/index.mjs +235 -220
- package/domain-server/index.mjs.map +1 -1
- package/domain-server/plugin.d.ts +16 -38
- package/index.browser-CWCjzKuA.js.map +1 -1
- package/package.json +2 -2
- package/shared-domain/index.mjs +1 -1
- package/shared-domain/index.mjs.map +1 -1
package/domain/index.mjs
CHANGED
|
@@ -1,199 +1,209 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as E, computed as m, shallowRef as P, shallowReactive as S, watch as b, readonly as I, triggerRef as C, effectScope as M, onScopeDispose as F, shallowReadonly as y } from "vue";
|
|
2
2
|
import { n as T } from "../index.browser-CWCjzKuA.js";
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
let
|
|
6
|
-
const
|
|
7
|
-
let
|
|
3
|
+
function g(s, i = !0, u = !1) {
|
|
4
|
+
const c = E();
|
|
5
|
+
let t;
|
|
6
|
+
const r = E(!1);
|
|
7
|
+
let e = () => {
|
|
8
8
|
};
|
|
9
|
-
const
|
|
10
|
-
apply: function(
|
|
11
|
-
let
|
|
9
|
+
const n = new Proxy(s, {
|
|
10
|
+
apply: function(l, f, a) {
|
|
11
|
+
let d;
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
d = l(...a);
|
|
14
14
|
} catch (p) {
|
|
15
|
-
|
|
15
|
+
d = p;
|
|
16
16
|
}
|
|
17
|
-
if (
|
|
18
|
-
if (
|
|
19
|
-
throw
|
|
17
|
+
if (d instanceof Error) {
|
|
18
|
+
if (c.value = d, t = d, i)
|
|
19
|
+
throw e(), d;
|
|
20
20
|
} else
|
|
21
|
-
|
|
21
|
+
r.value = !0, c.value = void 0, t = !0, e();
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), o = () => {
|
|
24
24
|
}, v = new Proxy(
|
|
25
|
-
(
|
|
26
|
-
|
|
25
|
+
(l) => {
|
|
26
|
+
c.value = l;
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
apply: function(
|
|
30
|
-
|
|
29
|
+
apply: function(l, f, a) {
|
|
30
|
+
l(...a), o(...a);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
return {
|
|
35
|
-
promise: new Promise((
|
|
36
|
-
if (
|
|
37
|
-
|
|
35
|
+
promise: new Promise((l, f) => {
|
|
36
|
+
if (i && t instanceof Error) {
|
|
37
|
+
f(t);
|
|
38
38
|
return;
|
|
39
|
-
} else if (
|
|
40
|
-
|
|
39
|
+
} else if (t === !0) {
|
|
40
|
+
l();
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
43
|
+
let a;
|
|
44
|
+
u && (a = setTimeout(() => {
|
|
45
|
+
const d = new Error("timeout!");
|
|
46
|
+
c.value = d, i && f(d);
|
|
47
|
+
}, u)), e = () => {
|
|
48
|
+
a && (clearTimeout(a), a = void 0), l();
|
|
49
49
|
};
|
|
50
50
|
}),
|
|
51
|
-
callback:
|
|
51
|
+
callback: n,
|
|
52
52
|
onError: v,
|
|
53
|
-
resolved: m(() =>
|
|
54
|
-
error: m(() =>
|
|
53
|
+
resolved: m(() => r.value),
|
|
54
|
+
error: m(() => c.value)
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function w() {
|
|
58
58
|
return T();
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
61
61
|
__proto__: null,
|
|
62
|
-
createPromiseCallback:
|
|
63
|
-
genId:
|
|
62
|
+
createPromiseCallback: g,
|
|
63
|
+
genId: w
|
|
64
64
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
65
|
-
function
|
|
66
|
-
let
|
|
67
|
-
const
|
|
68
|
-
function
|
|
69
|
-
const _ = k(
|
|
70
|
-
(!
|
|
65
|
+
function G(s, i, u = !1, c = !1) {
|
|
66
|
+
let t = P("0");
|
|
67
|
+
const r = {}, e = S([]);
|
|
68
|
+
function n(l, f, a, d, p) {
|
|
69
|
+
const _ = k(t.value), z = b([d, p], ([j, R]) => {
|
|
70
|
+
(!r[_] || j || u && R) && (z(), delete r[_]);
|
|
71
71
|
});
|
|
72
|
-
|
|
73
|
-
data:
|
|
74
|
-
reply:
|
|
75
|
-
onError:
|
|
76
|
-
resolved:
|
|
72
|
+
r[_] = {
|
|
73
|
+
data: I(l),
|
|
74
|
+
reply: f,
|
|
75
|
+
onError: a,
|
|
76
|
+
resolved: d,
|
|
77
77
|
error: p
|
|
78
|
-
},
|
|
78
|
+
}, t.value = _;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
if (!(!
|
|
80
|
+
const o = (l) => {
|
|
81
|
+
const f = b(t, (a) => {
|
|
82
|
+
if (!(!r[a] || r[a].resolved.value || u && r[a].error.value))
|
|
83
83
|
try {
|
|
84
|
-
|
|
85
|
-
data:
|
|
86
|
-
version:
|
|
87
|
-
reply:
|
|
84
|
+
l({
|
|
85
|
+
data: r[a].data,
|
|
86
|
+
version: a,
|
|
87
|
+
reply: r[a].reply
|
|
88
88
|
});
|
|
89
|
-
} catch (
|
|
90
|
-
|
|
89
|
+
} catch (d) {
|
|
90
|
+
r[a].error.value || r[a].onError(d);
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
return
|
|
94
|
-
}, v = async (
|
|
95
|
-
const { promise:
|
|
96
|
-
|
|
93
|
+
return e.push(f), r[t.value] && C(t), f;
|
|
94
|
+
}, v = async (l) => {
|
|
95
|
+
const { promise: f, callback: a, resolved: d, error: p, onError: _ } = g(i, u, c);
|
|
96
|
+
n(l, a, _, d, p), await f;
|
|
97
97
|
}, h = {
|
|
98
|
-
latestVersion: m(() =>
|
|
99
|
-
watchPublishRequest:
|
|
98
|
+
latestVersion: m(() => t),
|
|
99
|
+
watchPublishRequest: o
|
|
100
100
|
};
|
|
101
101
|
return {
|
|
102
|
-
watchHandles:
|
|
102
|
+
watchHandles: e,
|
|
103
103
|
publishRequest: v,
|
|
104
104
|
api: h
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function x(
|
|
108
|
-
let
|
|
109
|
-
const
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
|
|
107
|
+
function x(s) {
|
|
108
|
+
let i = P("0");
|
|
109
|
+
const u = {}, c = S([]);
|
|
110
|
+
function t(n) {
|
|
111
|
+
const o = k(i.value);
|
|
112
|
+
u[o] = { data: I(n) }, i.value = o;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
data:
|
|
117
|
-
version:
|
|
114
|
+
const r = (n) => b(i, (o) => {
|
|
115
|
+
n({
|
|
116
|
+
data: u[o].data,
|
|
117
|
+
version: o
|
|
118
118
|
});
|
|
119
|
-
}),
|
|
120
|
-
latestVersion: m(() =>
|
|
121
|
-
watchPublish:
|
|
119
|
+
}), e = {
|
|
120
|
+
latestVersion: m(() => i),
|
|
121
|
+
watchPublish: r
|
|
122
122
|
};
|
|
123
123
|
return {
|
|
124
|
-
watchHandles:
|
|
125
|
-
publish: async (
|
|
126
|
-
|
|
124
|
+
watchHandles: c,
|
|
125
|
+
publish: async (n) => {
|
|
126
|
+
t(n);
|
|
127
127
|
},
|
|
128
|
-
api:
|
|
128
|
+
api: e
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function k(
|
|
132
|
-
if (+
|
|
133
|
-
return (parseInt(
|
|
134
|
-
let
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
for (let
|
|
138
|
-
const
|
|
139
|
-
|
|
131
|
+
function k(s) {
|
|
132
|
+
if (+s < Number.MAX_SAFE_INTEGER)
|
|
133
|
+
return (parseInt(s) + 1).toString();
|
|
134
|
+
let i = s.split("").reverse().join(""), u = "1";
|
|
135
|
+
const c = Math.max(i.length, u.length);
|
|
136
|
+
let t = 0, r = [];
|
|
137
|
+
for (let e = 0; e < c; e++) {
|
|
138
|
+
const n = e < i.length ? parseInt(i[e], 10) : 0, o = e < u.length ? parseInt(u[e], 10) : 0, v = n + o + t;
|
|
139
|
+
r.push(v % 10), t = Math.floor(v / 10);
|
|
140
140
|
}
|
|
141
|
-
return
|
|
141
|
+
return t > 0 && r.push(t), r.reverse().join("");
|
|
142
142
|
}
|
|
143
|
-
function A() {
|
|
144
|
-
const
|
|
143
|
+
function A(s) {
|
|
144
|
+
const i = {}, u = {}, c = /* @__PURE__ */ new WeakMap(), t = {}, r = [];
|
|
145
145
|
return Object.freeze({
|
|
146
146
|
registerAgg(e) {
|
|
147
147
|
if (e.isInitialized.value)
|
|
148
148
|
throw new Error("Agg must register before initialized");
|
|
149
|
-
if (
|
|
149
|
+
if (t[e.__id])
|
|
150
150
|
throw new Error("Agg already registered");
|
|
151
151
|
e.type === "MultiInstance" && e.api.events.destroyed.watchPublish(() => {
|
|
152
|
-
delete
|
|
153
|
-
}),
|
|
154
|
-
const
|
|
155
|
-
for (const
|
|
156
|
-
|
|
157
|
-
for (const
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
delete t[e.__id];
|
|
153
|
+
}), t[e.__id] = e;
|
|
154
|
+
const n = [];
|
|
155
|
+
for (const o of Object.values(i))
|
|
156
|
+
o.mount({ api: e.api, __aggId: e.__id, isInitialized: e.isInitialized });
|
|
157
|
+
for (const o of Object.values(u))
|
|
158
|
+
o.mount({ api: e.api, __aggId: e.__id }), n.push(o.__id);
|
|
159
|
+
if (c.set(e, n), B(e)) {
|
|
160
|
+
const o = e.api.events.destroyed.watchPublish(() => {
|
|
161
|
+
delete t[e.__id], s?.(e);
|
|
162
|
+
for (const v of r)
|
|
163
|
+
v(e);
|
|
164
|
+
o?.();
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
onDestroy(e) {
|
|
169
|
+
r.push(e);
|
|
160
170
|
},
|
|
161
171
|
createSetupPlugin(e) {
|
|
162
|
-
let
|
|
163
|
-
return e instanceof Function ?
|
|
164
|
-
__id:
|
|
172
|
+
let n;
|
|
173
|
+
return e instanceof Function ? n = e() : n = e, Object.freeze({
|
|
174
|
+
__id: w(),
|
|
165
175
|
type: "Setup",
|
|
166
|
-
mount(
|
|
167
|
-
if (
|
|
176
|
+
mount(o) {
|
|
177
|
+
if (o.isInitialized.value)
|
|
168
178
|
throw new Error("Can not setup after initialized");
|
|
169
|
-
|
|
179
|
+
n.mount({ api: o.api, __aggId: o.__aggId });
|
|
170
180
|
}
|
|
171
181
|
});
|
|
172
182
|
},
|
|
173
183
|
createHotSwapPlugin(e) {
|
|
174
|
-
let
|
|
175
|
-
return e instanceof Function ?
|
|
176
|
-
__id:
|
|
184
|
+
let n;
|
|
185
|
+
return e instanceof Function ? n = e() : n = e, Object.freeze({
|
|
186
|
+
__id: w(),
|
|
177
187
|
type: "HotSwap",
|
|
178
|
-
mount:
|
|
179
|
-
unmount:
|
|
188
|
+
mount: n.mount,
|
|
189
|
+
unmount: n.unmount
|
|
180
190
|
});
|
|
181
191
|
},
|
|
182
192
|
registerPlugin(e) {
|
|
183
193
|
if (e.type === "Setup") {
|
|
184
|
-
if (
|
|
194
|
+
if (i[e.__id])
|
|
185
195
|
throw new Error("Plugin already registered");
|
|
186
|
-
|
|
187
|
-
for (const
|
|
196
|
+
i[e.__id] = e;
|
|
197
|
+
for (const n in t)
|
|
188
198
|
e.mount({
|
|
189
|
-
api: n
|
|
190
|
-
__aggId: n
|
|
191
|
-
isInitialized: n
|
|
199
|
+
api: t[n].api,
|
|
200
|
+
__aggId: t[n].__id,
|
|
201
|
+
isInitialized: t[n].isInitialized
|
|
192
202
|
});
|
|
193
203
|
} else if (e.type === "HotSwap") {
|
|
194
|
-
|
|
195
|
-
for (const
|
|
196
|
-
|
|
204
|
+
u[e.__id] = e;
|
|
205
|
+
for (const n in t)
|
|
206
|
+
c.has(t[n]) && !c.get(t[n]).includes(e.__id) && (e.mount({ api: t[n].api, __aggId: t[n].__id }), c.get(t[n]).push(e.__id));
|
|
197
207
|
} else
|
|
198
208
|
isNever(e);
|
|
199
209
|
},
|
|
@@ -201,165 +211,170 @@ function A() {
|
|
|
201
211
|
if (e.type === "Setup")
|
|
202
212
|
throw new Error("Can not unregister setup plugin");
|
|
203
213
|
if (e.type === "HotSwap") {
|
|
204
|
-
for (const
|
|
205
|
-
|
|
206
|
-
delete
|
|
214
|
+
for (const n in t)
|
|
215
|
+
c.has(t[n]) && c.get(t[n]).includes(e.__id) && e.unmount({ api: t[n].api, __aggId: t[n].__id });
|
|
216
|
+
delete u[e.__id];
|
|
207
217
|
} else
|
|
208
218
|
isNever(e);
|
|
209
219
|
}
|
|
210
220
|
});
|
|
211
221
|
}
|
|
212
|
-
function
|
|
213
|
-
return A();
|
|
222
|
+
function U(s, i) {
|
|
223
|
+
return A(i);
|
|
214
224
|
}
|
|
215
|
-
function
|
|
225
|
+
function W(s) {
|
|
216
226
|
return A();
|
|
217
227
|
}
|
|
218
|
-
function B(
|
|
219
|
-
return
|
|
228
|
+
function B(s) {
|
|
229
|
+
return s.type === "MultiInstance";
|
|
230
|
+
}
|
|
231
|
+
function N(s) {
|
|
232
|
+
return H(s);
|
|
220
233
|
}
|
|
221
|
-
function
|
|
222
|
-
const
|
|
234
|
+
function O(s) {
|
|
235
|
+
const i = H(s);
|
|
223
236
|
return y({
|
|
224
|
-
states:
|
|
225
|
-
commands:
|
|
226
|
-
events:
|
|
237
|
+
states: i.states,
|
|
238
|
+
commands: i.commands,
|
|
239
|
+
events: i.events
|
|
227
240
|
});
|
|
228
241
|
}
|
|
229
|
-
function
|
|
230
|
-
const
|
|
231
|
-
for (const
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
for (const
|
|
235
|
-
e
|
|
242
|
+
function H(s) {
|
|
243
|
+
const i = s.states;
|
|
244
|
+
for (const e of Object.keys(s.states))
|
|
245
|
+
i[e] = I(i[e]);
|
|
246
|
+
const u = y(s.states), c = I(s.commands), t = {}, r = s.events;
|
|
247
|
+
for (const e in s.events)
|
|
248
|
+
t[e] = r[e].api;
|
|
236
249
|
return y({
|
|
237
|
-
states:
|
|
238
|
-
commands:
|
|
239
|
-
events: y(
|
|
240
|
-
destroy:
|
|
250
|
+
states: u,
|
|
251
|
+
commands: c,
|
|
252
|
+
events: y(t),
|
|
253
|
+
destroy: s.destroy
|
|
241
254
|
});
|
|
242
255
|
}
|
|
243
|
-
function
|
|
256
|
+
function X(s, i) {
|
|
244
257
|
const {
|
|
245
|
-
callback:
|
|
246
|
-
onError:
|
|
247
|
-
promise:
|
|
248
|
-
resolved:
|
|
249
|
-
} =
|
|
258
|
+
callback: u,
|
|
259
|
+
onError: c,
|
|
260
|
+
promise: t,
|
|
261
|
+
resolved: r
|
|
262
|
+
} = g(() => {
|
|
250
263
|
}, !1, 5e3);
|
|
251
|
-
function
|
|
252
|
-
if (
|
|
264
|
+
function e(p) {
|
|
265
|
+
if (r.value === !0)
|
|
253
266
|
throw new Error("Agg already initialized");
|
|
254
|
-
|
|
267
|
+
n.push(p());
|
|
255
268
|
}
|
|
256
|
-
const
|
|
269
|
+
const n = [];
|
|
257
270
|
setTimeout(
|
|
258
|
-
() => Promise.all(
|
|
259
|
-
|
|
271
|
+
() => Promise.all(n).then(() => {
|
|
272
|
+
u();
|
|
260
273
|
}).catch((p) => {
|
|
261
|
-
|
|
262
|
-
})
|
|
274
|
+
c(p);
|
|
275
|
+
}),
|
|
276
|
+
0
|
|
263
277
|
);
|
|
264
|
-
const
|
|
265
|
-
() =>
|
|
278
|
+
const o = M(), v = o.run(
|
|
279
|
+
() => i({
|
|
266
280
|
getCurrentScope() {
|
|
267
|
-
return
|
|
281
|
+
return o;
|
|
268
282
|
},
|
|
269
|
-
onScopeDispose:
|
|
283
|
+
onScopeDispose: F,
|
|
270
284
|
onCreated(p) {
|
|
271
285
|
Promise.resolve().then(p);
|
|
272
286
|
},
|
|
273
|
-
onBeforeInitialize:
|
|
274
|
-
isInitialized: m(() =>
|
|
275
|
-
untilInitialized:
|
|
287
|
+
onBeforeInitialize: e,
|
|
288
|
+
isInitialized: m(() => r.value),
|
|
289
|
+
untilInitialized: t
|
|
276
290
|
})
|
|
277
|
-
), h = v.states || {},
|
|
278
|
-
let
|
|
279
|
-
|
|
280
|
-
let
|
|
281
|
-
return
|
|
282
|
-
|
|
283
|
-
for (const p in
|
|
284
|
-
const _ =
|
|
291
|
+
), h = v.states || {}, l = v.commands || {}, f = v.events || {};
|
|
292
|
+
let a;
|
|
293
|
+
f.destroyed ? a = f.destroyed : (a = x(), f.destroyed = a);
|
|
294
|
+
let d = v.destroy;
|
|
295
|
+
return d || (d = () => {
|
|
296
|
+
a?.publish({});
|
|
297
|
+
for (const p in f) {
|
|
298
|
+
const _ = f[p];
|
|
285
299
|
for (const z of _.watchHandles)
|
|
286
300
|
z.stop();
|
|
287
301
|
}
|
|
288
|
-
|
|
302
|
+
o.stop();
|
|
289
303
|
}), y({
|
|
290
|
-
__id:
|
|
304
|
+
__id: w(),
|
|
291
305
|
type: "MultiInstance",
|
|
292
|
-
id:
|
|
293
|
-
api:
|
|
306
|
+
id: s,
|
|
307
|
+
api: N({
|
|
294
308
|
states: h,
|
|
295
|
-
commands:
|
|
296
|
-
events:
|
|
297
|
-
destroy:
|
|
309
|
+
commands: l,
|
|
310
|
+
events: f,
|
|
311
|
+
destroy: d
|
|
298
312
|
}),
|
|
299
|
-
isInitialized:
|
|
313
|
+
isInitialized: r,
|
|
300
314
|
async untilInitialized() {
|
|
301
|
-
return await
|
|
315
|
+
return await t.catch((p) => {
|
|
302
316
|
throw new Error(`Failed to initialize Agg: ${p.message}
|
|
303
317
|
Stack : ${p.stack || "unkown"}`);
|
|
304
318
|
});
|
|
305
319
|
}
|
|
306
320
|
});
|
|
307
321
|
}
|
|
308
|
-
function
|
|
322
|
+
function J(s) {
|
|
309
323
|
const {
|
|
310
|
-
callback:
|
|
311
|
-
onError:
|
|
312
|
-
promise:
|
|
313
|
-
resolved:
|
|
314
|
-
} =
|
|
324
|
+
callback: i,
|
|
325
|
+
onError: u,
|
|
326
|
+
promise: c,
|
|
327
|
+
resolved: t
|
|
328
|
+
} = g(() => {
|
|
315
329
|
}, !1, 5e3);
|
|
316
|
-
function
|
|
317
|
-
if (
|
|
330
|
+
function r(l) {
|
|
331
|
+
if (t.value === !0)
|
|
318
332
|
throw new Error("Agg already initialized");
|
|
319
|
-
|
|
333
|
+
e.push(l());
|
|
320
334
|
}
|
|
321
|
-
const
|
|
322
|
-
onCreated(
|
|
323
|
-
Promise.resolve().then(
|
|
335
|
+
const e = [], n = s({
|
|
336
|
+
onCreated(l) {
|
|
337
|
+
Promise.resolve().then(l);
|
|
324
338
|
},
|
|
325
|
-
onBeforeInitialize:
|
|
326
|
-
isInitialized: m(() =>
|
|
327
|
-
untilInitialized:
|
|
339
|
+
onBeforeInitialize: r,
|
|
340
|
+
isInitialized: m(() => t.value),
|
|
341
|
+
untilInitialized: c
|
|
328
342
|
});
|
|
329
343
|
setTimeout(
|
|
330
|
-
() => Promise.all(
|
|
331
|
-
|
|
332
|
-
}).catch((
|
|
333
|
-
|
|
334
|
-
})
|
|
344
|
+
() => Promise.all(e).then(() => {
|
|
345
|
+
i();
|
|
346
|
+
}).catch((l) => {
|
|
347
|
+
u(l);
|
|
348
|
+
}),
|
|
349
|
+
0
|
|
335
350
|
);
|
|
336
|
-
const
|
|
351
|
+
const o = n.states || {}, v = n.commands || {}, h = n.events || {};
|
|
337
352
|
return {
|
|
338
|
-
__id:
|
|
353
|
+
__id: w(),
|
|
339
354
|
type: "Singleton",
|
|
340
|
-
api:
|
|
341
|
-
states:
|
|
355
|
+
api: O({
|
|
356
|
+
states: o,
|
|
342
357
|
commands: v,
|
|
343
358
|
events: h,
|
|
344
359
|
destroy: () => {
|
|
345
360
|
}
|
|
346
361
|
}),
|
|
347
|
-
isInitialized:
|
|
362
|
+
isInitialized: t,
|
|
348
363
|
async untilInitialized() {
|
|
349
|
-
return await
|
|
350
|
-
throw new Error(`Failed to initialize Agg: ${
|
|
351
|
-
Stack : ${
|
|
364
|
+
return await c.catch((l) => {
|
|
365
|
+
throw new Error(`Failed to initialize Agg: ${l.message}
|
|
366
|
+
Stack : ${l.stack || "unkown"}`);
|
|
352
367
|
});
|
|
353
368
|
}
|
|
354
369
|
};
|
|
355
370
|
}
|
|
356
371
|
export {
|
|
357
|
-
|
|
372
|
+
D as Utils,
|
|
358
373
|
x as createBroadcastEvent,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
374
|
+
X as createMultiInstanceAgg,
|
|
375
|
+
W as createPluginHelperByAgg,
|
|
376
|
+
U as createPluginHelperByAggCreator,
|
|
377
|
+
G as createRequestEvent,
|
|
378
|
+
J as createSingletonAgg
|
|
364
379
|
};
|
|
365
380
|
//# sourceMappingURL=index.mjs.map
|