@effect-app/vue-components 4.0.0-beta.6 → 4.0.0-beta.8
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-components.es16.js +11 -11
- package/dist/vue-components.es17.js +8 -8
- package/dist/vue-components.es19.js +2 -2
- package/dist/vue-components.es20.js +1 -1
- package/dist/vue-components.es21.js +2 -2
- package/dist/vue-components.es22.js +2 -2
- package/dist/vue-components.es23.js +2 -2
- package/dist/vue-components.es25.js +2 -2
- package/dist/vue-components.es26.js +2 -2
- package/dist/vue-components.es27.js +2 -2
- package/dist/vue-components.es36.js +36 -190
- package/dist/vue-components.es37.js +6 -0
- package/dist/vue-components.es38.js +75 -310
- package/dist/vue-components.es39.js +48 -557
- package/dist/vue-components.es40.js +559 -25
- package/dist/vue-components.es41.js +36 -47
- package/dist/vue-components.es42.js +27 -64
- package/dist/vue-components.es43.js +5 -4
- package/dist/vue-components.es44.js +40 -4
- package/dist/vue-components.es45.js +312 -22
- package/dist/vue-components.es46.js +27 -71
- package/dist/vue-components.es47.js +4 -40
- package/dist/vue-components.es48.js +22 -312
- package/dist/vue-components.es49.js +71 -95
- package/dist/vue-components.es50.js +95 -27
- package/dist/vue-components.es52.js +318 -2
- package/dist/vue-components.es53.js +64 -2
- package/dist/vue-components.es54.js +2 -111
- package/dist/vue-components.es55.js +4 -0
- package/dist/vue-components.es56.js +111 -7
- package/dist/vue-components.es58.js +9 -0
- package/dist/vue-components.es59.js +30 -36
- package/dist/vue-components.es61.js +191 -40
- package/dist/vue-components.es63.js +1 -1
- package/dist/vue-components.es7.js +1 -1
- package/dist/vue-components.es76.js +2 -2
- package/dist/vue-components.es77.js +3 -3
- package/dist/vue-components.es78.js +13 -19
- package/dist/vue-components.es79.js +32 -12
- package/dist/vue-components.es80.js +2 -113
- package/dist/vue-components.es81.js +21 -3
- package/dist/vue-components.es82.js +12 -32
- package/dist/vue-components.es83.js +113 -2
- package/dist/vue-components.es84.js +3 -2
- package/dist/vue-components.es85.js +2 -15
- package/dist/vue-components.es86.js +2 -16
- package/dist/vue-components.es87.js +15 -70
- package/dist/vue-components.es88.js +70 -8
- package/dist/vue-components.es89.js +16 -2
- package/dist/vue-components.es90.js +7 -14
- package/package.json +3 -3
- package/dist/vue-components.es57.js +0 -34
- package/dist/vue-components.es60.js +0 -85
- package/dist/vue-components.es62.js +0 -7
|
@@ -1,320 +1,85 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_R: E
|
|
13
|
-
}, $ = `${o}/identifier`, n = `${o}/args`, h = `${o}/evaluate`, m = `${o}/successCont`, u = `${o}/failureCont`, F = `${o}/ensureCont`, dt = /* @__PURE__ */ Symbol.for("effect/Effect/Yield"), U = {
|
|
14
|
-
pipe() {
|
|
15
|
-
return S(this, arguments);
|
|
16
|
-
},
|
|
17
|
-
toJSON() {
|
|
18
|
-
return {
|
|
19
|
-
...this
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
toString() {
|
|
23
|
-
return a(this.toJSON(), {
|
|
24
|
-
ignoreToString: !0,
|
|
25
|
-
space: 2
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
[O]() {
|
|
29
|
-
return this.toJSON();
|
|
30
|
-
}
|
|
31
|
-
}, W = {
|
|
32
|
-
[Symbol.iterator]() {
|
|
33
|
-
return new T(this);
|
|
34
|
-
}
|
|
35
|
-
}, z = {
|
|
36
|
-
...W,
|
|
37
|
-
pipe() {
|
|
38
|
-
return S(this, arguments);
|
|
39
|
-
}
|
|
40
|
-
}, B = {
|
|
41
|
-
[o]: Y,
|
|
42
|
-
...U,
|
|
43
|
-
[Symbol.iterator]() {
|
|
44
|
-
return new T(this);
|
|
45
|
-
},
|
|
46
|
-
asEffect() {
|
|
47
|
-
return this;
|
|
48
|
-
},
|
|
49
|
-
toJSON() {
|
|
50
|
-
return {
|
|
51
|
-
_id: "Effect",
|
|
52
|
-
op: this[$],
|
|
53
|
-
...n in this ? {
|
|
54
|
-
args: this[n]
|
|
55
|
-
} : void 0
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}, q = (t) => I(t, _), p = "~effect/Cause", y = "~effect/Cause/Reason", v = (t) => I(t, p);
|
|
59
|
-
class C {
|
|
60
|
-
[p];
|
|
61
|
-
reasons;
|
|
62
|
-
constructor(e) {
|
|
63
|
-
this[p] = p, this.reasons = e;
|
|
64
|
-
}
|
|
65
|
-
pipe() {
|
|
66
|
-
return S(this, arguments);
|
|
67
|
-
}
|
|
68
|
-
toJSON() {
|
|
69
|
-
return {
|
|
70
|
-
_id: "Cause",
|
|
71
|
-
failures: this.reasons.map((e) => e.toJSON())
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
toString() {
|
|
75
|
-
return `Cause(${a(this.reasons)})`;
|
|
76
|
-
}
|
|
77
|
-
[O]() {
|
|
78
|
-
return this.toJSON();
|
|
79
|
-
}
|
|
80
|
-
[d](e) {
|
|
81
|
-
return v(e) && this.reasons.length === e.reasons.length && this.reasons.every((r, s) => i(r, e.reasons[s]));
|
|
82
|
-
}
|
|
83
|
-
[g]() {
|
|
84
|
-
return M(this.reasons);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
const P = /* @__PURE__ */ new WeakMap();
|
|
88
|
-
class J {
|
|
89
|
-
[y];
|
|
90
|
-
annotations;
|
|
91
|
-
_tag;
|
|
92
|
-
constructor(e, r, s) {
|
|
93
|
-
if (this[y] = y, this._tag = e, r !== N && typeof s == "object" && s !== null && r.size > 0) {
|
|
94
|
-
const c = P.get(s);
|
|
95
|
-
c && (r = new Map([...c, ...r])), P.set(s, r);
|
|
1
|
+
import { hasProperty as b } from "./vue-components.es42.js";
|
|
2
|
+
import { symbolRedactable as h, getRedacted as l, redact as j } from "./vue-components.es81.js";
|
|
3
|
+
function w(n, i) {
|
|
4
|
+
const c = i?.space ?? 0, s = /* @__PURE__ */ new WeakSet(), a = c ? typeof c == "number" ? " ".repeat(c) : c : "", o = (t) => a.repeat(t), g = (t, r) => {
|
|
5
|
+
const e = t?.constructor;
|
|
6
|
+
return e && e !== Object.prototype.constructor && e.name ? `${e.name}(${r})` : r;
|
|
7
|
+
}, $ = (t) => {
|
|
8
|
+
try {
|
|
9
|
+
return Reflect.ownKeys(t);
|
|
10
|
+
} catch {
|
|
11
|
+
return ["[ownKeys threw]"];
|
|
96
12
|
}
|
|
97
|
-
this.annotations = r;
|
|
98
|
-
}
|
|
99
|
-
annotate(e, r) {
|
|
100
|
-
if (e.mapUnsafe.size === 0) return this;
|
|
101
|
-
const s = new Map(this.annotations);
|
|
102
|
-
e.mapUnsafe.forEach((D, x) => {
|
|
103
|
-
r?.overwrite !== !0 && s.has(x) || s.set(x, D);
|
|
104
|
-
});
|
|
105
|
-
const c = Object.assign(Object.create(Object.getPrototypeOf(this)), this);
|
|
106
|
-
return c.annotations = s, c;
|
|
107
|
-
}
|
|
108
|
-
pipe() {
|
|
109
|
-
return S(this, arguments);
|
|
110
|
-
}
|
|
111
|
-
toString() {
|
|
112
|
-
return a(this);
|
|
113
|
-
}
|
|
114
|
-
[O]() {
|
|
115
|
-
return this.toString();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const N = /* @__PURE__ */ new Map();
|
|
119
|
-
class G extends J {
|
|
120
|
-
error;
|
|
121
|
-
constructor(e, r = N) {
|
|
122
|
-
super("Fail", r, e), this.error = e;
|
|
123
|
-
}
|
|
124
|
-
toString() {
|
|
125
|
-
return `Fail(${a(this.error)})`;
|
|
126
|
-
}
|
|
127
|
-
toJSON() {
|
|
128
|
-
return {
|
|
129
|
-
_tag: "Fail",
|
|
130
|
-
error: this.error
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
[d](e) {
|
|
134
|
-
return Q(e) && i(this.error, e.error) && i(this.annotations, e.annotations);
|
|
135
|
-
}
|
|
136
|
-
[g]() {
|
|
137
|
-
return f(b(this._tag))(f(l(this.error))(l(this.annotations)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
const K = (t) => new C([new G(t)]);
|
|
141
|
-
class V extends J {
|
|
142
|
-
defect;
|
|
143
|
-
constructor(e, r = N) {
|
|
144
|
-
super("Die", r, e), this.defect = e;
|
|
145
|
-
}
|
|
146
|
-
toString() {
|
|
147
|
-
return `Die(${a(this.defect)})`;
|
|
148
|
-
}
|
|
149
|
-
toJSON() {
|
|
150
|
-
return {
|
|
151
|
-
_tag: "Die",
|
|
152
|
-
defect: this.defect
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
[d](e) {
|
|
156
|
-
return X(e) && i(this.defect, e.defect) && i(this.annotations, e.annotations);
|
|
157
|
-
}
|
|
158
|
-
[g]() {
|
|
159
|
-
return f(b(this._tag))(f(l(this.defect))(l(this.annotations)));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
const H = (t) => new C([new V(t)]), L = /* @__PURE__ */ R((t) => v(t[0]), (t, e, r) => e.mapUnsafe.size === 0 ? t : new C(t.reasons.map((s) => s.annotate(e, r)))), Q = (t) => t._tag === "Fail", X = (t) => t._tag === "Die", gt = (t) => t._tag === "Interrupt";
|
|
163
|
-
function Z(t) {
|
|
164
|
-
return st("Effect.evaluate: Not implemented");
|
|
165
|
-
}
|
|
166
|
-
const A = (t) => ({
|
|
167
|
-
...B,
|
|
168
|
-
[$]: t.op,
|
|
169
|
-
[h]: t[h] ?? Z,
|
|
170
|
-
[m]: t[m],
|
|
171
|
-
[u]: t[u],
|
|
172
|
-
[F]: t[F]
|
|
173
|
-
}), tt = (t) => {
|
|
174
|
-
const e = A(t);
|
|
175
|
-
return function() {
|
|
176
|
-
const r = Object.create(e);
|
|
177
|
-
return r[n] = t.single === !1 ? arguments : arguments[0], r;
|
|
178
|
-
};
|
|
179
|
-
}, j = (t) => {
|
|
180
|
-
const e = {
|
|
181
|
-
...A(t),
|
|
182
|
-
[_]: _,
|
|
183
|
-
_tag: t.op,
|
|
184
|
-
get [t.prop]() {
|
|
185
|
-
return this[n];
|
|
186
|
-
},
|
|
187
|
-
toString() {
|
|
188
|
-
return `${t.op}(${a(this[n])})`;
|
|
189
|
-
},
|
|
190
|
-
toJSON() {
|
|
191
|
-
return {
|
|
192
|
-
_id: "Exit",
|
|
193
|
-
_tag: t.op,
|
|
194
|
-
[t.prop]: this[n]
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
[d](r) {
|
|
198
|
-
return q(r) && r._tag === this._tag && i(this[n], r[n]);
|
|
199
|
-
},
|
|
200
|
-
[g]() {
|
|
201
|
-
return f(b(t.op), l(this[n]));
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
return function(r) {
|
|
205
|
-
const s = Object.create(e);
|
|
206
|
-
return s[n] = r, s;
|
|
207
13
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}, Et = {
|
|
218
|
-
key: "effect/Cause/InterruptorStackTrace"
|
|
219
|
-
}, w = /* @__PURE__ */ j({
|
|
220
|
-
op: "Failure",
|
|
221
|
-
prop: "cause",
|
|
222
|
-
[h](t) {
|
|
223
|
-
let e = this[n], r = !1;
|
|
224
|
-
t.currentStackFrame && (e = L(e, {
|
|
225
|
-
mapUnsafe: /* @__PURE__ */ new Map([[et.key, t.currentStackFrame]])
|
|
226
|
-
}), r = !0);
|
|
227
|
-
let s = t.getCont(u);
|
|
228
|
-
for (; t.interruptible && t._interruptedCause && s; )
|
|
229
|
-
s = t.getCont(u);
|
|
230
|
-
return s ? s[u](e, t, r ? void 0 : this) : t.yieldWith(r ? this : w(e));
|
|
231
|
-
}
|
|
232
|
-
}), rt = (t) => w(K(t)), st = (t) => w(H(t)), yt = /* @__PURE__ */ tt({
|
|
233
|
-
op: "WithFiber",
|
|
234
|
-
[h](t) {
|
|
235
|
-
return this[n](t);
|
|
236
|
-
}
|
|
237
|
-
}), nt = /* @__PURE__ */ (function() {
|
|
238
|
-
class t extends globalThis.Error {
|
|
239
|
-
asEffect() {
|
|
240
|
-
return rt(this);
|
|
14
|
+
function f(t, r = 0) {
|
|
15
|
+
if (Array.isArray(t)) {
|
|
16
|
+
if (s.has(t)) return m;
|
|
17
|
+
if (s.add(t), !a || t.length <= 1) return `[${t.map((u) => f(u, r)).join(",")}]`;
|
|
18
|
+
const e = t.map((u) => f(u, r + 1)).join(`,
|
|
19
|
+
` + o(r + 1));
|
|
20
|
+
return `[
|
|
21
|
+
${o(r + 1)}${e}
|
|
22
|
+
${o(r)}]`;
|
|
241
23
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
return class extends nt {
|
|
247
|
-
constructor(r) {
|
|
248
|
-
super(r?.message, r?.cause ? {
|
|
249
|
-
cause: r.cause
|
|
250
|
-
} : void 0), r && (Object.assign(this, r), Object.defineProperty(this, t, {
|
|
251
|
-
value: r,
|
|
252
|
-
enumerable: !1
|
|
253
|
-
}));
|
|
24
|
+
if (t instanceof Date) return d(t);
|
|
25
|
+
if (!i?.ignoreToString && b(t, "toString") && typeof t.toString == "function" && t.toString !== Object.prototype.toString && t.toString !== Array.prototype.toString) {
|
|
26
|
+
const e = O(t);
|
|
27
|
+
return t instanceof Error && t.cause ? `${e} (cause: ${f(t.cause, r)})` : e;
|
|
254
28
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
29
|
+
if (typeof t == "string") return JSON.stringify(t);
|
|
30
|
+
if (typeof t == "number" || t == null || typeof t == "boolean" || typeof t == "symbol") return String(t);
|
|
31
|
+
if (typeof t == "bigint") return String(t) + "n";
|
|
32
|
+
if (typeof t == "object" || typeof t == "function") {
|
|
33
|
+
if (s.has(t)) return m;
|
|
34
|
+
if (s.add(t), h in t) return w(l(t));
|
|
35
|
+
if (Symbol.iterator in t)
|
|
36
|
+
return `${t.constructor.name}(${f(Array.from(t), r)})`;
|
|
37
|
+
const e = $(t);
|
|
38
|
+
if (!a || e.length <= 1) {
|
|
39
|
+
const y = `{${e.map((S) => `${p(S)}:${f(t[S], r)}`).join(",")}}`;
|
|
40
|
+
return g(t, y);
|
|
41
|
+
}
|
|
42
|
+
const u = `{
|
|
43
|
+
${e.map((y) => `${o(r + 1)}${p(y)}: ${f(t[y], r + 1)}`).join(`,
|
|
44
|
+
`)}
|
|
45
|
+
${o(r)}}`;
|
|
46
|
+
return g(t, u);
|
|
260
47
|
}
|
|
261
|
-
|
|
262
|
-
})(), it = (t) => {
|
|
263
|
-
class e extends ot {
|
|
264
|
-
_tag = t;
|
|
48
|
+
return String(t);
|
|
265
49
|
}
|
|
266
|
-
return
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
50
|
+
return f(n, 0);
|
|
51
|
+
}
|
|
52
|
+
const m = "[Circular]";
|
|
53
|
+
function p(n) {
|
|
54
|
+
return typeof n == "string" ? JSON.stringify(n) : String(n);
|
|
55
|
+
}
|
|
56
|
+
function J(n) {
|
|
57
|
+
return n.map((i) => `[${p(i)}]`).join("");
|
|
58
|
+
}
|
|
59
|
+
function d(n) {
|
|
60
|
+
try {
|
|
61
|
+
return n.toISOString();
|
|
62
|
+
} catch {
|
|
63
|
+
return "Invalid Date";
|
|
274
64
|
}
|
|
275
65
|
}
|
|
66
|
+
function O(n) {
|
|
67
|
+
try {
|
|
68
|
+
const i = n.toString();
|
|
69
|
+
return typeof i == "string" ? i : String(i);
|
|
70
|
+
} catch {
|
|
71
|
+
return "[toString threw]";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function K(n, i) {
|
|
75
|
+
let c = [];
|
|
76
|
+
const s = JSON.stringify(n, (a, o) => typeof o == "object" && o !== null ? c.includes(o) ? void 0 : c.push(o) && j(o) : o, i?.space);
|
|
77
|
+
return c = void 0, s;
|
|
78
|
+
}
|
|
276
79
|
export {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
o as EffectTypeId,
|
|
283
|
-
ot as Error,
|
|
284
|
-
_ as ExitTypeId,
|
|
285
|
-
G as Fail,
|
|
286
|
-
Et as InterruptorStackTrace,
|
|
287
|
-
bt as NoSuchElementError,
|
|
288
|
-
k as NoSuchElementErrorTypeId,
|
|
289
|
-
U as PipeInspectableProto,
|
|
290
|
-
J as ReasonBase,
|
|
291
|
-
et as StackTraceKey,
|
|
292
|
-
it as TaggedError,
|
|
293
|
-
dt as Yield,
|
|
294
|
-
nt as YieldableError,
|
|
295
|
-
z as YieldableErrorProto,
|
|
296
|
-
W as YieldableProto,
|
|
297
|
-
n as args,
|
|
298
|
-
L as causeAnnotate,
|
|
299
|
-
H as causeDie,
|
|
300
|
-
K as causeFail,
|
|
301
|
-
N as constEmptyAnnotations,
|
|
302
|
-
m as contA,
|
|
303
|
-
F as contAll,
|
|
304
|
-
u as contE,
|
|
305
|
-
h as evaluate,
|
|
306
|
-
st as exitDie,
|
|
307
|
-
rt as exitFail,
|
|
308
|
-
w as exitFailCause,
|
|
309
|
-
St as exitSucceed,
|
|
310
|
-
$ as identifier,
|
|
311
|
-
v as isCause,
|
|
312
|
-
X as isDieReason,
|
|
313
|
-
q as isExit,
|
|
314
|
-
Q as isFailReason,
|
|
315
|
-
gt as isInterruptReason,
|
|
316
|
-
j as makeExit,
|
|
317
|
-
tt as makePrimitive,
|
|
318
|
-
A as makePrimitiveProto,
|
|
319
|
-
yt as withFiber
|
|
80
|
+
w as format,
|
|
81
|
+
d as formatDate,
|
|
82
|
+
K as formatJson,
|
|
83
|
+
J as formatPath,
|
|
84
|
+
p as formatPropertyKey
|
|
320
85
|
};
|