vue-act-master 2.2.0 → 2.3.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/vue-act-master.js +289 -279
- package/dist/vue-act-master.umd.cjs +1 -1
- package/package.json +3 -3
package/dist/vue-act-master.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var D = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
class
|
|
6
|
-
constructor(
|
|
7
|
-
if (c(this, "reason", ""), c(this, "data"), typeof
|
|
8
|
-
this.reason =
|
|
2
|
+
var C = (r, t, e) => t in r ? D(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var $ = (r, t, e) => (C(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
var N = Object.defineProperty, x = (r, t, e) => t in r ? N(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, c = (r, t, e) => (x(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
5
|
+
let w = class y {
|
|
6
|
+
constructor(t, e) {
|
|
7
|
+
if (c(this, "reason", ""), c(this, "data"), typeof t == "string") {
|
|
8
|
+
this.reason = t, this.data = e;
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
if (
|
|
12
|
-
return Object.assign(
|
|
11
|
+
if (t && typeof t == "object")
|
|
12
|
+
return Object.assign(t, {
|
|
13
13
|
_name: this._name,
|
|
14
|
-
reason:
|
|
14
|
+
reason: t.message || ""
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
static get _name() {
|
|
18
18
|
return "__CancelledAct__";
|
|
19
19
|
}
|
|
20
20
|
get _name() {
|
|
21
|
-
return
|
|
21
|
+
return y._name;
|
|
22
22
|
}
|
|
23
|
-
static is(
|
|
24
|
-
return !
|
|
23
|
+
static is(t) {
|
|
24
|
+
return !t || typeof t != "object" ? !1 : t._name === y._name;
|
|
25
25
|
}
|
|
26
26
|
valueOf() {
|
|
27
27
|
return null;
|
|
@@ -29,91 +29,76 @@ class d {
|
|
|
29
29
|
toString() {
|
|
30
30
|
return this.reason;
|
|
31
31
|
}
|
|
32
|
-
}
|
|
33
|
-
class
|
|
34
|
-
constructor(
|
|
35
|
-
super(`Can't find "${
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
class N extends Error {
|
|
39
|
-
constructor(e) {
|
|
40
|
-
super(`Action "${e}" already existing`), this.eventName = e;
|
|
32
|
+
};
|
|
33
|
+
class p extends Error {
|
|
34
|
+
constructor(t) {
|
|
35
|
+
super(`Can't find "${t}" action`), this.eventName = t;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
class M extends Error {
|
|
44
|
-
constructor(
|
|
45
|
-
super(`"${
|
|
39
|
+
constructor(t) {
|
|
40
|
+
super(`Action "${t}" already existing`), this.eventName = t;
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
|
-
class
|
|
43
|
+
let O = class extends Error {
|
|
44
|
+
constructor(t) {
|
|
45
|
+
super(`"${t}" already exists in DI`), this.key = t;
|
|
46
|
+
}
|
|
47
|
+
}, S = class extends Error {
|
|
49
48
|
constructor() {
|
|
50
49
|
super(`"di" can't be array`);
|
|
51
50
|
}
|
|
52
|
-
}
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function U() {
|
|
61
|
-
return (i, e) => {
|
|
62
|
-
Object.defineProperty(i, "useEmit", {
|
|
63
|
-
value: function(s) {
|
|
64
|
-
this[e] = s;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
const w = class b {
|
|
70
|
-
constructor(e = {}) {
|
|
71
|
-
if (c(this, "version", O), c(this, "_actions", /* @__PURE__ */ new Map()), c(this, "_watchers", /* @__PURE__ */ new Map()), c(this, "_listeners", /* @__PURE__ */ new Map()), c(this, "_inProgressWatchers", /* @__PURE__ */ new Map()), c(this, "_subsMap", /* @__PURE__ */ new Map()), c(this, "_lastUnsubscribe", () => !1), c(this, "_DIContainer", {}), c(this, "_singlePromisesStore", /* @__PURE__ */ new Map()), c(this, "config", {
|
|
51
|
+
};
|
|
52
|
+
const k = "2.3.6", j = (r) => {
|
|
53
|
+
r.watch && !r.$watch && (r.$watch = r.watch), r.isSingleExec && typeof r.$isSingleton != "boolean" && (r.$isSingleton = r.isSingleExec), r.validateInput && !r.$validate && (r.$validate = r.validateInput), r.errorHandlerEventName && !r.$onError && (r.$onError = r.errorHandlerEventName);
|
|
54
|
+
}, P = class b {
|
|
55
|
+
constructor(t = {}) {
|
|
56
|
+
if (c(this, "version", k), c(this, "_actions", /* @__PURE__ */ new Map()), c(this, "_watchers", /* @__PURE__ */ new Map()), c(this, "_listeners", /* @__PURE__ */ new Map()), c(this, "_inProgressWatchers", /* @__PURE__ */ new Map()), c(this, "_subCurrentName", ""), c(this, "_subsMap", /* @__PURE__ */ new Map()), c(this, "_lastUnsubscribe", () => !1), c(this, "_DIContainer", {}), c(this, "_singlePromisesStore", /* @__PURE__ */ new Map()), c(this, "config", {
|
|
72
57
|
errorOnReplaceDI: !1,
|
|
73
58
|
autoUnsubscribeCallback: void 0,
|
|
74
59
|
errorHandlerEventName: void 0
|
|
75
|
-
}), c(this, "exec", async (n, ...
|
|
60
|
+
}), c(this, "exec", async (n, ...f) => {
|
|
76
61
|
if (this.setProgress(n, !0), this._singlePromisesStore.has(n)) {
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
return
|
|
62
|
+
const g = this._singlePromisesStore.get(n);
|
|
63
|
+
if (g)
|
|
64
|
+
return g;
|
|
80
65
|
}
|
|
81
|
-
const
|
|
66
|
+
const l = this.emit(n, ...f).catch((g) => this.catchEmitException(g, n)).finally(() => {
|
|
82
67
|
this._singlePromisesStore.has(n) && this._singlePromisesStore.delete(n), this.setProgress(n, !1);
|
|
83
|
-
}),
|
|
84
|
-
return
|
|
85
|
-
}), c(this, "subscribe", (n,
|
|
68
|
+
}), u = this.getActionOrNull(n);
|
|
69
|
+
return u && u.$isSingleton && this._singlePromisesStore.set(n, l), l;
|
|
70
|
+
}), c(this, "subscribe", (n, f, l) => {
|
|
86
71
|
this._listeners.set(n, [
|
|
87
72
|
...this._listeners.get(n) || [],
|
|
88
|
-
|
|
73
|
+
f
|
|
89
74
|
]);
|
|
90
|
-
const
|
|
91
|
-
return this._lastUnsubscribe =
|
|
92
|
-
context:
|
|
93
|
-
listener:
|
|
75
|
+
const u = () => this.unsubscribe(n, f);
|
|
76
|
+
return this._lastUnsubscribe = u, this.config.autoUnsubscribeCallback && this.config.autoUnsubscribeCallback({
|
|
77
|
+
context: l,
|
|
78
|
+
listener: f,
|
|
94
79
|
eventName: n
|
|
95
|
-
}),
|
|
96
|
-
}), c(this, "once", (n,
|
|
97
|
-
const
|
|
98
|
-
|
|
80
|
+
}), l ? typeof l == "function" ? l(u) : this.subsList.add(l, u) : this._subCurrentName && this.subsList.add(this._subCurrentName, u), u;
|
|
81
|
+
}), c(this, "once", (n, f) => {
|
|
82
|
+
const l = this.subscribe(n, (...u) => {
|
|
83
|
+
l(), f(...u);
|
|
99
84
|
});
|
|
100
|
-
return
|
|
101
|
-
}), c(this, "on", (n,
|
|
85
|
+
return l;
|
|
86
|
+
}), c(this, "on", (n, f, l) => this.subscribe(n, f, l)), b.instance)
|
|
102
87
|
return b.instance;
|
|
103
88
|
const {
|
|
104
|
-
actions:
|
|
105
|
-
di:
|
|
106
|
-
errorOnReplaceDI:
|
|
89
|
+
actions: e,
|
|
90
|
+
di: s,
|
|
91
|
+
errorOnReplaceDI: i,
|
|
107
92
|
autoUnsubscribeCallback: a,
|
|
108
|
-
errorHandlerEventName:
|
|
109
|
-
} =
|
|
110
|
-
if (
|
|
111
|
-
if (Array.isArray(
|
|
112
|
-
throw new
|
|
113
|
-
for (const n in
|
|
114
|
-
Object.prototype.hasOwnProperty.call(
|
|
93
|
+
errorHandlerEventName: h
|
|
94
|
+
} = t;
|
|
95
|
+
if (e && this.addActions(e), typeof a == "function" && (this.config.autoUnsubscribeCallback = a), typeof s == "object" && s) {
|
|
96
|
+
if (Array.isArray(s))
|
|
97
|
+
throw new S();
|
|
98
|
+
for (const n in s)
|
|
99
|
+
Object.prototype.hasOwnProperty.call(s, n) && this.setDI(n, s[n]);
|
|
115
100
|
}
|
|
116
|
-
typeof
|
|
101
|
+
typeof i == "boolean" && (this.config.errorOnReplaceDI = i), typeof h == "string" && (this.config.errorHandlerEventName = h), b.instance = this;
|
|
117
102
|
}
|
|
118
103
|
static getInstance() {
|
|
119
104
|
if (!b.instance)
|
|
@@ -121,105 +106,117 @@ const w = class b {
|
|
|
121
106
|
return b.instance;
|
|
122
107
|
}
|
|
123
108
|
//#region [ Actions ]
|
|
124
|
-
addActions(
|
|
125
|
-
Array.isArray(
|
|
126
|
-
this.addAction(
|
|
109
|
+
addActions(t) {
|
|
110
|
+
Array.isArray(t) && t.forEach((e) => {
|
|
111
|
+
this.addAction(e);
|
|
127
112
|
});
|
|
128
113
|
}
|
|
129
|
-
addAction(
|
|
130
|
-
const
|
|
131
|
-
if (this._actions.has(
|
|
132
|
-
throw new
|
|
133
|
-
if (
|
|
134
|
-
const
|
|
135
|
-
|
|
114
|
+
addAction(t) {
|
|
115
|
+
const e = t.name;
|
|
116
|
+
if (this._actions.has(e))
|
|
117
|
+
throw new M(e);
|
|
118
|
+
if (t.useEmit) {
|
|
119
|
+
const s = (i, ...a) => this.exec(i, ...a);
|
|
120
|
+
t.useEmit(s);
|
|
136
121
|
}
|
|
137
|
-
return this._actions.set(
|
|
138
|
-
const
|
|
139
|
-
|
|
122
|
+
return j(t), this._actions.set(e, t), this.emitDIProps(t), t.$watch && t.$watch.forEach((s) => {
|
|
123
|
+
const i = this._watchers.get(s) || [];
|
|
124
|
+
i.push(e), this._watchers.set(s, i);
|
|
140
125
|
}), this;
|
|
141
126
|
}
|
|
142
|
-
removeAction(
|
|
143
|
-
if (!this._actions.has(
|
|
144
|
-
throw new
|
|
145
|
-
this._actions.delete(
|
|
127
|
+
removeAction(t) {
|
|
128
|
+
if (!this._actions.has(t))
|
|
129
|
+
throw new p(t);
|
|
130
|
+
this._actions.delete(t);
|
|
146
131
|
}
|
|
147
132
|
clearActions() {
|
|
148
133
|
this._actions.clear();
|
|
149
134
|
}
|
|
150
135
|
clearListeners() {
|
|
151
|
-
for (const
|
|
152
|
-
this._listeners.has(
|
|
153
|
-
}
|
|
154
|
-
async emit(
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
throw new
|
|
158
|
-
if (
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
return this.config.errorHandlerEventName && this.emit(this.config.errorHandlerEventName,
|
|
136
|
+
for (const t in this._listeners)
|
|
137
|
+
this._listeners.has(t) && this._listeners.delete(t);
|
|
138
|
+
}
|
|
139
|
+
async emit(t, ...e) {
|
|
140
|
+
const s = this.getActionOrNull(t);
|
|
141
|
+
if (s === null)
|
|
142
|
+
throw new p(t);
|
|
143
|
+
if (s.validateInput) {
|
|
144
|
+
const i = await s.validateInput(...e);
|
|
145
|
+
if (i !== !0)
|
|
146
|
+
return this.config.errorHandlerEventName && this.emit(this.config.errorHandlerEventName, i), s.$onError && this.emit(s.$onError, i), i;
|
|
162
147
|
}
|
|
163
148
|
try {
|
|
164
|
-
const
|
|
165
|
-
return
|
|
166
|
-
} catch (
|
|
167
|
-
return this.catchEmitException(
|
|
149
|
+
const i = await s.exec(...e);
|
|
150
|
+
return i instanceof w || w.is(i) || this.notifyListeners(t, i), i;
|
|
151
|
+
} catch (i) {
|
|
152
|
+
return this.catchEmitException(i, t);
|
|
168
153
|
}
|
|
169
154
|
}
|
|
170
|
-
catchEmitException(
|
|
171
|
-
if (
|
|
172
|
-
throw
|
|
173
|
-
const
|
|
174
|
-
return
|
|
175
|
-
}
|
|
176
|
-
notifyListeners(
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
179
|
-
|
|
180
|
-
}), this._watchers.has(
|
|
181
|
-
for (const
|
|
182
|
-
this.exec(
|
|
183
|
-
}
|
|
184
|
-
unsubscribe(
|
|
185
|
-
const
|
|
186
|
-
if (!
|
|
187
|
-
return this._subsMap.set(
|
|
188
|
-
const
|
|
189
|
-
return
|
|
190
|
-
}
|
|
191
|
-
off(
|
|
192
|
-
return this.unsubscribe(
|
|
155
|
+
catchEmitException(t, e) {
|
|
156
|
+
if (t instanceof p)
|
|
157
|
+
throw t;
|
|
158
|
+
const s = this.getActionOrNull(e);
|
|
159
|
+
return s != null && s.$onError && s.$onError !== e ? (this.emit(s.$onError, t), Promise.resolve(null)) : this.config.errorHandlerEventName && this.config.errorHandlerEventName !== e ? (this.emit(this.config.errorHandlerEventName, t), Promise.resolve(null)) : Promise.reject(t);
|
|
160
|
+
}
|
|
161
|
+
notifyListeners(t, e) {
|
|
162
|
+
const s = this._listeners.get(t);
|
|
163
|
+
if (s && s.forEach((i) => {
|
|
164
|
+
i(e);
|
|
165
|
+
}), this._watchers.has(t))
|
|
166
|
+
for (const i of this._watchers.get(t) || [])
|
|
167
|
+
this.exec(i, e);
|
|
168
|
+
}
|
|
169
|
+
unsubscribe(t, e) {
|
|
170
|
+
const s = this._listeners.get(t);
|
|
171
|
+
if (!s)
|
|
172
|
+
return this._subsMap.set(t, []), !1;
|
|
173
|
+
const i = s.indexOf(e);
|
|
174
|
+
return i > -1 && s.splice(i, 1), this._listeners.set(t, s), i > -1;
|
|
175
|
+
}
|
|
176
|
+
off(t, e) {
|
|
177
|
+
return this.unsubscribe(t, e);
|
|
193
178
|
}
|
|
194
179
|
//#endregion
|
|
195
180
|
//#region [ extends functions ]
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
inProgress(t, e) {
|
|
186
|
+
if (Array.isArray(t)) {
|
|
187
|
+
t.forEach((a) => this._inProgressWatchers.set(a, e));
|
|
188
|
+
const i = () => {
|
|
189
|
+
t.forEach((a) => {
|
|
201
190
|
this._inProgressWatchers.delete(a);
|
|
202
191
|
});
|
|
203
192
|
};
|
|
204
|
-
return this._lastUnsubscribe =
|
|
193
|
+
return this._lastUnsubscribe = i, i;
|
|
205
194
|
}
|
|
206
|
-
this._inProgressWatchers.set(
|
|
207
|
-
const
|
|
208
|
-
return this._lastUnsubscribe =
|
|
195
|
+
this._inProgressWatchers.set(t, e);
|
|
196
|
+
const s = () => this._inProgressWatchers.delete(t);
|
|
197
|
+
return this._lastUnsubscribe = s, s;
|
|
209
198
|
}
|
|
210
|
-
|
|
211
|
-
|
|
199
|
+
// TODO: remove in v3
|
|
200
|
+
setProgress(t, e) {
|
|
201
|
+
this._inProgressWatchers.has(t) && this._inProgressWatchers.get(t)(e);
|
|
212
202
|
}
|
|
213
203
|
get subsList() {
|
|
204
|
+
const t = (e) => {
|
|
205
|
+
(this._subsMap.get(e) || []).forEach((s) => s()), this._subsMap.delete(e);
|
|
206
|
+
};
|
|
214
207
|
return {
|
|
208
|
+
/**
|
|
209
|
+
* After running this method, all subscriptions will be saved,
|
|
210
|
+
* and can be cleared using the
|
|
211
|
+
* subList.clear('key') method - with the same key passed in.
|
|
212
|
+
*
|
|
213
|
+
*/
|
|
215
214
|
add: (e, ...s) => {
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
|
|
215
|
+
this._subCurrentName = e;
|
|
216
|
+
const i = this._subsMap.get(e) || [];
|
|
217
|
+
return s.length && i.push(...s), this._subsMap.set(e, i), t;
|
|
219
218
|
},
|
|
220
|
-
clear:
|
|
221
|
-
(this._subsMap.get(e) || []).forEach((s) => s()), this._subsMap.delete(e);
|
|
222
|
-
}
|
|
219
|
+
clear: t
|
|
223
220
|
};
|
|
224
221
|
}
|
|
225
222
|
// #endregion
|
|
@@ -227,216 +224,229 @@ const w = class b {
|
|
|
227
224
|
clearDI() {
|
|
228
225
|
this._DIContainer = {};
|
|
229
226
|
}
|
|
230
|
-
setDI(
|
|
231
|
-
if (this.config.errorOnReplaceDI && this._DIContainer[
|
|
232
|
-
throw new
|
|
233
|
-
return this._DIContainer[
|
|
227
|
+
setDI(t, e) {
|
|
228
|
+
if (this.config.errorOnReplaceDI && this._DIContainer[t])
|
|
229
|
+
throw new O(t);
|
|
230
|
+
return this._DIContainer[t] = e, this.freshEmitDI(), this;
|
|
231
|
+
}
|
|
232
|
+
getDI(t) {
|
|
233
|
+
return this._DIContainer[t];
|
|
234
234
|
}
|
|
235
235
|
freshEmitDI() {
|
|
236
|
-
let
|
|
237
|
-
Object.keys(this._actions).forEach((
|
|
238
|
-
|
|
236
|
+
let t;
|
|
237
|
+
Object.keys(this._actions).forEach((e) => {
|
|
238
|
+
t = this._actions.get(e), t && this.emitDIProps(t);
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
emitDIProps(
|
|
242
|
-
|
|
241
|
+
emitDIProps(t) {
|
|
242
|
+
t._DI_CONTAINER_ || Object.defineProperty(t, "_DI_CONTAINER_", {
|
|
243
243
|
get: () => this._DIContainer,
|
|
244
244
|
enumerable: !1
|
|
245
245
|
// Uncomment for DEBUG
|
|
246
|
-
}),
|
|
247
|
-
var
|
|
248
|
-
if (e
|
|
246
|
+
}), t._DI_MAP_ && Object.keys(t._DI_MAP_).forEach((e) => {
|
|
247
|
+
var s;
|
|
248
|
+
if (t[e])
|
|
249
249
|
return;
|
|
250
|
-
const
|
|
251
|
-
|
|
250
|
+
const i = (s = t._DI_MAP_) == null ? void 0 : s[e];
|
|
251
|
+
i && Object.defineProperty(t, e, {
|
|
252
252
|
get() {
|
|
253
|
-
return this._DI_CONTAINER_[
|
|
253
|
+
return this._DI_CONTAINER_[i];
|
|
254
254
|
},
|
|
255
255
|
enumerable: !0
|
|
256
256
|
});
|
|
257
|
-
}),
|
|
257
|
+
}), t.useDI && t.useDI(this._DIContainer);
|
|
258
258
|
}
|
|
259
259
|
//#endregion
|
|
260
260
|
//#region [ helpers ]
|
|
261
|
-
getActionOrNull(
|
|
262
|
-
return this._actions.get(
|
|
261
|
+
getActionOrNull(t) {
|
|
262
|
+
return this._actions.get(t) || null;
|
|
263
263
|
}
|
|
264
264
|
//#endregion
|
|
265
265
|
};
|
|
266
|
-
c(
|
|
267
|
-
let
|
|
268
|
-
|
|
266
|
+
c(P, "instance");
|
|
267
|
+
let _ = P;
|
|
268
|
+
var R = Object.defineProperty, H = (r, t, e) => t in r ? R(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, A = (r, t, e) => (H(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
269
|
+
function K(r) {
|
|
270
|
+
return function(t, e) {
|
|
271
|
+
const s = t;
|
|
272
|
+
s._DI_MAP_ || (s._DI_MAP_ = {}), s._DI_MAP_[e] = r;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function q() {
|
|
276
|
+
return (r, t) => {
|
|
277
|
+
Object.defineProperty(r, "useEmit", {
|
|
278
|
+
value: function(e) {
|
|
279
|
+
this[t] = e;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
const I = class o {
|
|
269
285
|
constructor() {
|
|
270
286
|
}
|
|
271
|
-
static getInstance(
|
|
272
|
-
return o.resetAll(), o.removeSingleton(), o.$act = new
|
|
287
|
+
static getInstance(t = {}) {
|
|
288
|
+
return o.resetAll(), o.removeSingleton(), o.$act = new _(t), o.$act;
|
|
289
|
+
}
|
|
290
|
+
static setInstance(t) {
|
|
291
|
+
o.$act = t;
|
|
292
|
+
}
|
|
293
|
+
static checkInstance(t) {
|
|
294
|
+
return o.$act === t;
|
|
273
295
|
}
|
|
274
296
|
static resetAll() {
|
|
275
297
|
o.$act && (o.$act.clearActions(), o.$act.clearListeners(), o.$act.clearDI()), o._lastResult = void 0;
|
|
276
298
|
}
|
|
277
299
|
static removeSingleton() {
|
|
278
|
-
|
|
300
|
+
_.instance = void 0, o._lastResult = void 0;
|
|
279
301
|
}
|
|
280
|
-
static addActions(
|
|
281
|
-
o.$act.addActions(
|
|
302
|
+
static addActions(t) {
|
|
303
|
+
o.$act.addActions(t);
|
|
282
304
|
}
|
|
283
|
-
static exec(
|
|
284
|
-
return o.$act.exec(
|
|
285
|
-
throw o._lastResult =
|
|
305
|
+
static exec(t, ...e) {
|
|
306
|
+
return o.$act.exec(t, ...e).then((s) => (o._lastResult = s, s)).catch((s) => {
|
|
307
|
+
throw o._lastResult = s, s;
|
|
286
308
|
});
|
|
287
309
|
}
|
|
288
|
-
static subscribe(e, s
|
|
289
|
-
return o.$act.subscribe(e, s
|
|
310
|
+
static subscribe(t, e, s) {
|
|
311
|
+
return o.$act.subscribe(t, e, s);
|
|
290
312
|
}
|
|
291
|
-
static entityCount(
|
|
292
|
-
if (
|
|
313
|
+
static entityCount(t) {
|
|
314
|
+
if (t === "di")
|
|
293
315
|
return Object.keys(o.$act._DIContainer).length;
|
|
294
|
-
if (
|
|
316
|
+
if (t === "actions")
|
|
295
317
|
return o.$act._actions.size;
|
|
296
|
-
const
|
|
318
|
+
const e = {
|
|
297
319
|
watchers: "_watchers",
|
|
298
320
|
listeners: "_listeners"
|
|
299
|
-
}[
|
|
300
|
-
let
|
|
301
|
-
return o.$act[
|
|
302
|
-
|
|
303
|
-
}),
|
|
321
|
+
}[t];
|
|
322
|
+
let s = 0;
|
|
323
|
+
return o.$act[e].forEach((i) => {
|
|
324
|
+
s += i.length;
|
|
325
|
+
}), s;
|
|
304
326
|
}
|
|
305
327
|
static getLastResult() {
|
|
306
328
|
return o._lastResult;
|
|
307
329
|
}
|
|
308
|
-
static makeActionStub(
|
|
330
|
+
static makeActionStub(t) {
|
|
309
331
|
return {
|
|
310
332
|
name: `Act_${Math.random()}`,
|
|
311
333
|
exec: () => null,
|
|
312
|
-
...
|
|
334
|
+
...t
|
|
313
335
|
};
|
|
314
336
|
}
|
|
315
337
|
};
|
|
316
|
-
|
|
317
|
-
let
|
|
318
|
-
function
|
|
319
|
-
const
|
|
320
|
-
if (!
|
|
338
|
+
A(I, "$act"), A(I, "_lastResult");
|
|
339
|
+
let B = I;
|
|
340
|
+
function d() {
|
|
341
|
+
const r = _.getInstance();
|
|
342
|
+
if (!r)
|
|
321
343
|
throw new Error(
|
|
322
344
|
'Instance call before initialization. Make a "new ActMaster()" first'
|
|
323
345
|
);
|
|
324
|
-
return
|
|
346
|
+
return r;
|
|
325
347
|
}
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
const
|
|
329
|
-
return
|
|
330
|
-
},
|
|
331
|
-
|
|
332
|
-
const
|
|
333
|
-
if (typeof
|
|
334
|
-
throw new Error(`Pass not valid function: "${
|
|
348
|
+
d.init = (r) => new _(r);
|
|
349
|
+
const G = (r, t, e) => {
|
|
350
|
+
const s = d().subscribe(r, t);
|
|
351
|
+
return e && (typeof e == "function" ? e(s) : d().subsList.add(e, s)), s;
|
|
352
|
+
}, L = (r) => d().subsList.clear(r);
|
|
353
|
+
d.subListClear = L;
|
|
354
|
+
const U = (r) => {
|
|
355
|
+
if (typeof r != "function" || !r.name)
|
|
356
|
+
throw new Error(`Pass not valid function: "${r}"`);
|
|
335
357
|
return {
|
|
336
|
-
name:
|
|
337
|
-
exec:
|
|
358
|
+
name: r.name,
|
|
359
|
+
exec: r
|
|
338
360
|
};
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
useEmit(e) {
|
|
345
|
-
this.$emit = e;
|
|
346
|
-
}
|
|
347
|
-
useDI(e) {
|
|
348
|
-
this.$di = e;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
function P(i) {
|
|
352
|
-
return (e, s, t) => {
|
|
353
|
-
const r = typeof e == "function" ? e : e.constructor;
|
|
354
|
-
r.__decorators__ || (r.__decorators__ = []), typeof t != "number" && (t = void 0), r.__decorators__.push((a) => i(a, s, t));
|
|
361
|
+
}, J = U;
|
|
362
|
+
function v(r) {
|
|
363
|
+
return (t, e, s) => {
|
|
364
|
+
const i = typeof t == "function" ? t : t.constructor;
|
|
365
|
+
i.__decorators__ || (i.__decorators__ = []), typeof s != "number" && (s = void 0), i.__decorators__.push((a) => r(a, e, s));
|
|
355
366
|
};
|
|
356
367
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
368
|
+
function Q(r, t, e = null) {
|
|
369
|
+
return v((s, i) => {
|
|
359
370
|
const a = {
|
|
360
371
|
created() {
|
|
361
372
|
this.$act.subscribe(
|
|
362
|
-
|
|
363
|
-
(
|
|
364
|
-
const n =
|
|
365
|
-
typeof this[
|
|
373
|
+
r,
|
|
374
|
+
(h) => {
|
|
375
|
+
const n = W(h, t, e);
|
|
376
|
+
typeof this[i] == "function" ? this[i](n) : this[i] = n;
|
|
366
377
|
},
|
|
367
378
|
this
|
|
368
379
|
);
|
|
369
380
|
}
|
|
370
381
|
};
|
|
371
|
-
|
|
382
|
+
s.mixins ? s.mixins = [...s.mixins, a] : s.mixins = [a];
|
|
372
383
|
});
|
|
373
384
|
}
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
377
|
-
if (typeof
|
|
378
|
-
return
|
|
379
|
-
let
|
|
380
|
-
if (
|
|
381
|
-
const
|
|
382
|
-
let a,
|
|
383
|
-
for (
|
|
384
|
-
a =
|
|
385
|
-
}
|
|
386
|
-
return
|
|
385
|
+
function W(r, t, e) {
|
|
386
|
+
if (r === void 0)
|
|
387
|
+
return e;
|
|
388
|
+
if (typeof t == "function")
|
|
389
|
+
return t(r);
|
|
390
|
+
let s = r;
|
|
391
|
+
if (t) {
|
|
392
|
+
const i = (t || "").split(".");
|
|
393
|
+
let a, h = 0;
|
|
394
|
+
for (h = 0; h < i.length && s; h++)
|
|
395
|
+
a = i[h], s = s[a];
|
|
396
|
+
}
|
|
397
|
+
return s === void 0 ? e : s;
|
|
387
398
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
390
|
-
const
|
|
399
|
+
function X(r) {
|
|
400
|
+
return v((t, e) => {
|
|
401
|
+
const s = {
|
|
391
402
|
created() {
|
|
392
|
-
const
|
|
393
|
-
this[
|
|
403
|
+
const i = this.$act.inProgress(r, (a) => {
|
|
404
|
+
this[e] = a;
|
|
394
405
|
});
|
|
395
406
|
this.$once("hook:beforeDestroy", () => {
|
|
396
|
-
r
|
|
407
|
+
i(r);
|
|
397
408
|
});
|
|
398
409
|
}
|
|
399
410
|
};
|
|
400
|
-
|
|
411
|
+
t.mixins ? t.mixins = [...t.mixins, s] : t.mixins = [s];
|
|
401
412
|
});
|
|
402
413
|
}
|
|
403
|
-
const
|
|
404
|
-
static install(
|
|
405
|
-
var
|
|
406
|
-
const
|
|
407
|
-
autoUnsubscribeCallback({ context: a, eventName:
|
|
414
|
+
const m = class {
|
|
415
|
+
static install(t, e) {
|
|
416
|
+
var i;
|
|
417
|
+
const s = new _({
|
|
418
|
+
autoUnsubscribeCallback({ context: a, eventName: h, listener: n }) {
|
|
408
419
|
a && typeof a == "function" ? a(function() {
|
|
409
|
-
|
|
420
|
+
s.unsubscribe(h, n);
|
|
410
421
|
}) : a && typeof a.$once == "function" && a.$once("hook:beforeDestroy", () => {
|
|
411
|
-
|
|
422
|
+
s.unsubscribe(h, n);
|
|
412
423
|
});
|
|
413
424
|
},
|
|
414
|
-
...
|
|
425
|
+
...e
|
|
415
426
|
});
|
|
416
|
-
|
|
427
|
+
m.instance = s, (i = t.config) != null && i.globalProperties && !t.config.globalProperties.$act ? (t.config.globalProperties.$act = s, t.provide("$act", s)) : Object.prototype.hasOwnProperty.call(t, "$act") || (t.act = s, t.prototype.$act = s);
|
|
417
428
|
}
|
|
418
|
-
install(
|
|
419
|
-
|
|
429
|
+
install(t, e) {
|
|
430
|
+
m.install(t, e);
|
|
420
431
|
}
|
|
421
432
|
};
|
|
422
|
-
|
|
423
|
-
|
|
433
|
+
let E = m;
|
|
434
|
+
$(E, "instance", null);
|
|
424
435
|
export {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
H as functionToAction
|
|
436
|
+
X as ActInProgress,
|
|
437
|
+
_ as ActMaster,
|
|
438
|
+
Q as ActSubscribe,
|
|
439
|
+
B as ActTest,
|
|
440
|
+
M as ActinonAlreadyExistingError,
|
|
441
|
+
w as CancelledAct,
|
|
442
|
+
q as Emit,
|
|
443
|
+
S as InvalidDITypeError,
|
|
444
|
+
O as KeyAlreadyExistsInDIError,
|
|
445
|
+
p as NotFoundActionError,
|
|
446
|
+
K as UseDI,
|
|
447
|
+
E as VueActMaster,
|
|
448
|
+
d as act,
|
|
449
|
+
G as actSubscribe,
|
|
450
|
+
J as fn2act,
|
|
451
|
+
U as functionToAction
|
|
442
452
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c["vue-act-master"]={}))})(this,function(c){"use strict";var
|
|
1
|
+
(function(c,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c["vue-act-master"]={}))})(this,function(c){"use strict";var G=Object.defineProperty;var J=(c,h,_)=>h in c?G(c,h,{enumerable:!0,configurable:!0,writable:!0,value:_}):c[h]=_;var j=(c,h,_)=>(J(c,typeof h!="symbol"?h+"":h,_),_);var h=Object.defineProperty,_=(r,t,s)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t,s)=>(_(r,typeof t!="symbol"?t+"":t,s),s);let w=class P{constructor(t,s){if(l(this,"reason",""),l(this,"data"),typeof t=="string"){this.reason=t,this.data=s;return}if(t&&typeof t=="object")return Object.assign(t,{_name:this._name,reason:t.message||""})}static get _name(){return"__CancelledAct__"}get _name(){return P._name}static is(t){return!t||typeof t!="object"?!1:t._name===P._name}valueOf(){return null}toString(){return this.reason}};class E extends Error{constructor(t){super(`Can't find "${t}" action`),this.eventName=t}}class v extends Error{constructor(t){super(`Action "${t}" already existing`),this.eventName=t}}let D=class extends Error{constructor(t){super(`"${t}" already exists in DI`),this.key=t}},C=class extends Error{constructor(){super(`"di" can't be array`)}};const k="2.3.6",R=r=>{r.watch&&!r.$watch&&(r.$watch=r.watch),r.isSingleExec&&typeof r.$isSingleton!="boolean"&&(r.$isSingleton=r.isSingleExec),r.validateInput&&!r.$validate&&(r.$validate=r.validateInput),r.errorHandlerEventName&&!r.$onError&&(r.$onError=r.errorHandlerEventName)},N=class y{constructor(t={}){if(l(this,"version",k),l(this,"_actions",new Map),l(this,"_watchers",new Map),l(this,"_listeners",new Map),l(this,"_inProgressWatchers",new Map),l(this,"_subCurrentName",""),l(this,"_subsMap",new Map),l(this,"_lastUnsubscribe",()=>!1),l(this,"_DIContainer",{}),l(this,"_singlePromisesStore",new Map),l(this,"config",{errorOnReplaceDI:!1,autoUnsubscribeCallback:void 0,errorHandlerEventName:void 0}),l(this,"exec",async(n,...d)=>{if(this.setProgress(n,!0),this._singlePromisesStore.has(n)){const p=this._singlePromisesStore.get(n);if(p)return p}const u=this.emit(n,...d).catch(p=>this.catchEmitException(p,n)).finally(()=>{this._singlePromisesStore.has(n)&&this._singlePromisesStore.delete(n),this.setProgress(n,!1)}),b=this.getActionOrNull(n);return b&&b.$isSingleton&&this._singlePromisesStore.set(n,u),u}),l(this,"subscribe",(n,d,u)=>{this._listeners.set(n,[...this._listeners.get(n)||[],d]);const b=()=>this.unsubscribe(n,d);return this._lastUnsubscribe=b,this.config.autoUnsubscribeCallback&&this.config.autoUnsubscribeCallback({context:u,listener:d,eventName:n}),u?typeof u=="function"?u(b):this.subsList.add(u,b):this._subCurrentName&&this.subsList.add(this._subCurrentName,b),b}),l(this,"once",(n,d)=>{const u=this.subscribe(n,(...b)=>{u(),d(...b)});return u}),l(this,"on",(n,d,u)=>this.subscribe(n,d,u)),y.instance)return y.instance;const{actions:s,di:e,errorOnReplaceDI:i,autoUnsubscribeCallback:a,errorHandlerEventName:f}=t;if(s&&this.addActions(s),typeof a=="function"&&(this.config.autoUnsubscribeCallback=a),typeof e=="object"&&e){if(Array.isArray(e))throw new C;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.setDI(n,e[n])}typeof i=="boolean"&&(this.config.errorOnReplaceDI=i),typeof f=="string"&&(this.config.errorHandlerEventName=f),y.instance=this}static getInstance(){if(!y.instance)throw new Error("ActMaster not initialized");return y.instance}addActions(t){Array.isArray(t)&&t.forEach(s=>{this.addAction(s)})}addAction(t){const s=t.name;if(this._actions.has(s))throw new v(s);if(t.useEmit){const e=(i,...a)=>this.exec(i,...a);t.useEmit(e)}return R(t),this._actions.set(s,t),this.emitDIProps(t),t.$watch&&t.$watch.forEach(e=>{const i=this._watchers.get(e)||[];i.push(s),this._watchers.set(e,i)}),this}removeAction(t){if(!this._actions.has(t))throw new E(t);this._actions.delete(t)}clearActions(){this._actions.clear()}clearListeners(){for(const t in this._listeners)this._listeners.has(t)&&this._listeners.delete(t)}async emit(t,...s){const e=this.getActionOrNull(t);if(e===null)throw new E(t);if(e.validateInput){const i=await e.validateInput(...s);if(i!==!0)return this.config.errorHandlerEventName&&this.emit(this.config.errorHandlerEventName,i),e.$onError&&this.emit(e.$onError,i),i}try{const i=await e.exec(...s);return i instanceof w||w.is(i)||this.notifyListeners(t,i),i}catch(i){return this.catchEmitException(i,t)}}catchEmitException(t,s){if(t instanceof E)throw t;const e=this.getActionOrNull(s);return e!=null&&e.$onError&&e.$onError!==s?(this.emit(e.$onError,t),Promise.resolve(null)):this.config.errorHandlerEventName&&this.config.errorHandlerEventName!==s?(this.emit(this.config.errorHandlerEventName,t),Promise.resolve(null)):Promise.reject(t)}notifyListeners(t,s){const e=this._listeners.get(t);if(e&&e.forEach(i=>{i(s)}),this._watchers.has(t))for(const i of this._watchers.get(t)||[])this.exec(i,s)}unsubscribe(t,s){const e=this._listeners.get(t);if(!e)return this._subsMap.set(t,[]),!1;const i=e.indexOf(s);return i>-1&&e.splice(i,1),this._listeners.set(t,e),i>-1}off(t,s){return this.unsubscribe(t,s)}inProgress(t,s){if(Array.isArray(t)){t.forEach(a=>this._inProgressWatchers.set(a,s));const i=()=>{t.forEach(a=>{this._inProgressWatchers.delete(a)})};return this._lastUnsubscribe=i,i}this._inProgressWatchers.set(t,s);const e=()=>this._inProgressWatchers.delete(t);return this._lastUnsubscribe=e,e}setProgress(t,s){this._inProgressWatchers.has(t)&&this._inProgressWatchers.get(t)(s)}get subsList(){const t=s=>{(this._subsMap.get(s)||[]).forEach(e=>e()),this._subsMap.delete(s)};return{add:(s,...e)=>{this._subCurrentName=s;const i=this._subsMap.get(s)||[];return e.length&&i.push(...e),this._subsMap.set(s,i),t},clear:t}}clearDI(){this._DIContainer={}}setDI(t,s){if(this.config.errorOnReplaceDI&&this._DIContainer[t])throw new D(t);return this._DIContainer[t]=s,this.freshEmitDI(),this}getDI(t){return this._DIContainer[t]}freshEmitDI(){let t;Object.keys(this._actions).forEach(s=>{t=this._actions.get(s),t&&this.emitDIProps(t)})}emitDIProps(t){t._DI_CONTAINER_||Object.defineProperty(t,"_DI_CONTAINER_",{get:()=>this._DIContainer,enumerable:!1}),t._DI_MAP_&&Object.keys(t._DI_MAP_).forEach(s=>{var e;if(t[s])return;const i=(e=t._DI_MAP_)==null?void 0:e[s];i&&Object.defineProperty(t,s,{get(){return this._DI_CONTAINER_[i]},enumerable:!0})}),t.useDI&&t.useDI(this._DIContainer)}getActionOrNull(t){return this._actions.get(t)||null}};l(N,"instance");let g=N;var H=Object.defineProperty,x=(r,t,s)=>t in r?H(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,M=(r,t,s)=>(x(r,typeof t!="symbol"?t+"":t,s),s);function L(r){return function(t,s){const e=t;e._DI_MAP_||(e._DI_MAP_={}),e._DI_MAP_[s]=r}}function U(){return(r,t)=>{Object.defineProperty(r,"useEmit",{value:function(s){this[t]=s}})}}const A=class o{constructor(){}static getInstance(t={}){return o.resetAll(),o.removeSingleton(),o.$act=new g(t),o.$act}static setInstance(t){o.$act=t}static checkInstance(t){return o.$act===t}static resetAll(){o.$act&&(o.$act.clearActions(),o.$act.clearListeners(),o.$act.clearDI()),o._lastResult=void 0}static removeSingleton(){g.instance=void 0,o._lastResult=void 0}static addActions(t){o.$act.addActions(t)}static exec(t,...s){return o.$act.exec(t,...s).then(e=>(o._lastResult=e,e)).catch(e=>{throw o._lastResult=e,e})}static subscribe(t,s,e){return o.$act.subscribe(t,s,e)}static entityCount(t){if(t==="di")return Object.keys(o.$act._DIContainer).length;if(t==="actions")return o.$act._actions.size;const s={watchers:"_watchers",listeners:"_listeners"}[t];let e=0;return o.$act[s].forEach(i=>{e+=i.length}),e}static getLastResult(){return o._lastResult}static makeActionStub(t){return{name:`Act_${Math.random()}`,exec:()=>null,...t}}};M(A,"$act"),M(A,"_lastResult");let T=A;function m(){const r=g.getInstance();if(!r)throw new Error('Instance call before initialization. Make a "new ActMaster()" first');return r}m.init=r=>new g(r);const W=(r,t,s)=>{const e=m().subscribe(r,t);return s&&(typeof s=="function"?s(e):m().subsList.add(s,e)),e},z=r=>m().subsList.clear(r);m.subListClear=z;const O=r=>{if(typeof r!="function"||!r.name)throw new Error(`Pass not valid function: "${r}"`);return{name:r.name,exec:r}},F=O;function S(r){return(t,s,e)=>{const i=typeof t=="function"?t:t.constructor;i.__decorators__||(i.__decorators__=[]),typeof e!="number"&&(e=void 0),i.__decorators__.push(a=>r(a,s,e))}}function K(r,t,s=null){return S((e,i)=>{const a={created(){this.$act.subscribe(r,f=>{const n=q(f,t,s);typeof this[i]=="function"?this[i](n):this[i]=n},this)}};e.mixins?e.mixins=[...e.mixins,a]:e.mixins=[a]})}function q(r,t,s){if(r===void 0)return s;if(typeof t=="function")return t(r);let e=r;if(t){const i=(t||"").split(".");let a,f=0;for(f=0;f<i.length&&e;f++)a=i[f],e=e[a]}return e===void 0?s:e}function B(r){return S((t,s)=>{const e={created(){const i=this.$act.inProgress(r,a=>{this[s]=a});this.$once("hook:beforeDestroy",()=>{i(r)})}};t.mixins?t.mixins=[...t.mixins,e]:t.mixins=[e]})}const $=class{static install(t,s){var i;const e=new g({autoUnsubscribeCallback({context:a,eventName:f,listener:n}){a&&typeof a=="function"?a(function(){e.unsubscribe(f,n)}):a&&typeof a.$once=="function"&&a.$once("hook:beforeDestroy",()=>{e.unsubscribe(f,n)})},...s});$.instance=e,(i=t.config)!=null&&i.globalProperties&&!t.config.globalProperties.$act?(t.config.globalProperties.$act=e,t.provide("$act",e)):Object.prototype.hasOwnProperty.call(t,"$act")||(t.act=e,t.prototype.$act=e)}install(t,s){$.install(t,s)}};let I=$;j(I,"instance",null),c.ActInProgress=B,c.ActMaster=g,c.ActSubscribe=K,c.ActTest=T,c.ActinonAlreadyExistingError=v,c.CancelledAct=w,c.Emit=U,c.InvalidDITypeError=C,c.KeyAlreadyExistsInDIError=D,c.NotFoundActionError=E,c.UseDI=L,c.VueActMaster=I,c.act=m,c.actSubscribe=W,c.fn2act=F,c.functionToAction=O,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-act-master",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "avil13",
|
|
6
6
|
"main": "dist/vue-act-master.umd.cjs",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"act-master": "^2.
|
|
55
|
+
"act-master": "^2.3.6"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"act-master": "^2.
|
|
58
|
+
"act-master": "^2.3.6"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/types": "^7.22.5",
|