@effect-app/vue-components 4.0.0-beta.4 → 4.0.0-beta.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.
Files changed (82) hide show
  1. package/dist/vue-components.es10.js +12 -12
  2. package/dist/vue-components.es11.js +2 -2
  3. package/dist/vue-components.es12.js +3 -3
  4. package/dist/vue-components.es16.js +721 -9
  5. package/dist/vue-components.es17.js +119 -701
  6. package/dist/vue-components.es18.js +4 -141
  7. package/dist/vue-components.es19.js +11 -4
  8. package/dist/vue-components.es20.js +3 -11
  9. package/dist/vue-components.es21.js +24 -3
  10. package/dist/vue-components.es22.js +4 -24
  11. package/dist/vue-components.es23.js +8 -4
  12. package/dist/vue-components.es24.js +55 -8
  13. package/dist/vue-components.es25.js +64 -50
  14. package/dist/vue-components.es26.js +6 -69
  15. package/dist/vue-components.es27.js +5 -5
  16. package/dist/vue-components.es28.js +3 -6
  17. package/dist/vue-components.es29.js +3 -3
  18. package/dist/vue-components.es30.js +2 -3
  19. package/dist/vue-components.es31.js +1 -1
  20. package/dist/vue-components.es32.js +1 -1
  21. package/dist/vue-components.es33.js +1 -1
  22. package/dist/vue-components.es34.js +17 -2
  23. package/dist/vue-components.es35.js +10 -16
  24. package/dist/vue-components.es38.js +318 -4
  25. package/dist/vue-components.es39.js +560 -37
  26. package/dist/vue-components.es40.js +27 -4
  27. package/dist/vue-components.es41.js +49 -80
  28. package/dist/vue-components.es42.js +62 -50
  29. package/dist/vue-components.es43.js +4 -561
  30. package/dist/vue-components.es44.js +4 -41
  31. package/dist/vue-components.es45.js +23 -26
  32. package/dist/vue-components.es46.js +75 -5
  33. package/dist/vue-components.es47.js +3 -3
  34. package/dist/vue-components.es48.js +4 -4
  35. package/dist/vue-components.es49.js +95 -27
  36. package/dist/vue-components.es5.js +1 -1
  37. package/dist/vue-components.es50.js +31 -4
  38. package/dist/vue-components.es51.js +2 -24
  39. package/dist/vue-components.es52.js +2 -75
  40. package/dist/vue-components.es53.js +2 -99
  41. package/dist/vue-components.es54.js +111 -2
  42. package/dist/vue-components.es56.js +6 -63
  43. package/dist/vue-components.es57.js +32 -2
  44. package/dist/vue-components.es59.js +36 -109
  45. package/dist/vue-components.es60.js +85 -0
  46. package/dist/vue-components.es61.js +41 -7
  47. package/dist/vue-components.es62.js +5 -32
  48. package/dist/vue-components.es63.js +6 -0
  49. package/dist/vue-components.es64.js +22 -100
  50. package/dist/vue-components.es65.js +5 -2
  51. package/dist/vue-components.es66.js +21 -21
  52. package/dist/vue-components.es67.js +28 -80
  53. package/dist/vue-components.es68.js +22 -12
  54. package/dist/vue-components.es69.js +11 -112
  55. package/dist/vue-components.es70.js +5 -3
  56. package/dist/vue-components.es71.js +18 -31
  57. package/dist/vue-components.es72.js +9 -2
  58. package/dist/vue-components.es73.js +31 -2
  59. package/dist/vue-components.es74.js +48 -15
  60. package/dist/vue-components.es75.js +26 -70
  61. package/dist/vue-components.es76.js +100 -22
  62. package/dist/vue-components.es77.js +82 -5
  63. package/dist/vue-components.es78.js +21 -21
  64. package/dist/vue-components.es79.js +12 -30
  65. package/dist/vue-components.es80.js +112 -21
  66. package/dist/vue-components.es81.js +3 -12
  67. package/dist/vue-components.es82.js +32 -5
  68. package/dist/vue-components.es83.js +2 -19
  69. package/dist/vue-components.es84.js +2 -9
  70. package/dist/vue-components.es85.js +15 -31
  71. package/dist/vue-components.es86.js +15 -47
  72. package/dist/vue-components.es87.js +70 -26
  73. package/dist/vue-components.es88.js +8 -15
  74. package/dist/vue-components.es89.js +2 -16
  75. package/dist/vue-components.es90.js +14 -7
  76. package/dist/vue-components.es92.js +1 -1
  77. package/dist/vue-components.es94.js +1 -1
  78. package/dist/vue-components.es96.js +3 -3
  79. package/dist/vue-components.es97.js +1 -1
  80. package/package.json +3 -3
  81. package/dist/vue-components.es55.js +0 -320
  82. package/dist/vue-components.es58.js +0 -4
@@ -1,85 +1,54 @@
1
- import { hasProperty as b } from "./vue-components.es45.js";
2
- import { symbolRedactable as h, getRedacted as l, redact as j } from "./vue-components.es66.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]"];
12
- }
13
- };
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)}]`;
23
- }
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;
28
- }
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);
47
- }
48
- return String(t);
49
- }
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";
64
- }
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]";
1
+ import { pipeArguments as c } from "./vue-components.es61.js";
2
+ const a = function(e, n) {
3
+ if (typeof e == "function")
4
+ return function() {
5
+ return e(arguments) ? n.apply(this, arguments) : (t) => n(t, ...arguments);
6
+ };
7
+ switch (e) {
8
+ case 0:
9
+ case 1:
10
+ throw new RangeError(`Invalid arity ${e}`);
11
+ case 2:
12
+ return function(t, r) {
13
+ return arguments.length >= 2 ? n(t, r) : function(u) {
14
+ return n(u, t);
15
+ };
16
+ };
17
+ case 3:
18
+ return function(t, r, u) {
19
+ return arguments.length >= 3 ? n(t, r, u) : function(s) {
20
+ return n(s, t, r);
21
+ };
22
+ };
23
+ default:
24
+ return function() {
25
+ if (arguments.length >= e)
26
+ return n.apply(this, arguments);
27
+ const t = arguments;
28
+ return function(r) {
29
+ return n(r, ...t);
30
+ };
31
+ };
72
32
  }
33
+ }, g = (e) => e, i = (e) => () => e, o = /* @__PURE__ */ i(void 0), m = o;
34
+ function p(e, ...n) {
35
+ return c(e, n);
73
36
  }
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;
37
+ function h(e) {
38
+ const n = /* @__PURE__ */ new WeakMap();
39
+ return (t) => {
40
+ if (n.has(t))
41
+ return n.get(t);
42
+ const r = e(t);
43
+ return n.set(t, r), r;
44
+ };
78
45
  }
79
46
  export {
80
- w as format,
81
- d as formatDate,
82
- K as formatJson,
83
- J as formatPath,
84
- p as formatPropertyKey
47
+ o as constUndefined,
48
+ m as constVoid,
49
+ i as constant,
50
+ a as dual,
51
+ g as identity,
52
+ h as memoize,
53
+ p as pipe
85
54
  };
@@ -1,54 +1,66 @@
1
- import { pipeArguments as c } from "./vue-components.es44.js";
2
- const a = function(e, n) {
3
- if (typeof e == "function")
4
- return function() {
5
- return e(arguments) ? n.apply(this, arguments) : (t) => n(t, ...arguments);
1
+ import { symbol as r, equals as c } from "./vue-components.es76.js";
2
+ import { format as m } from "./vue-components.es60.js";
3
+ import { symbol as n, hash as o, combine as u } from "./vue-components.es77.js";
4
+ import { toJson as l } from "./vue-components.es85.js";
5
+ import { hasProperty as p } from "./vue-components.es40.js";
6
+ import { YieldableProto as _, PipeInspectableProto as f, exitFail as g, NoSuchElementError as b, exitSucceed as O } from "./vue-components.es38.js";
7
+ const s = "~effect/data/Option", a = {
8
+ [s]: {
9
+ _A: (t) => t
10
+ },
11
+ ...f,
12
+ ..._
13
+ }, S = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
14
+ _tag: "Some",
15
+ _op: "Some",
16
+ [r](t) {
17
+ return i(t) && P(t) && c(this.value, t.value);
18
+ },
19
+ [n]() {
20
+ return u(o(this._tag))(o(this.value));
21
+ },
22
+ toString() {
23
+ return `some(${m(this.value)})`;
24
+ },
25
+ toJSON() {
26
+ return {
27
+ _id: "Option",
28
+ _tag: this._tag,
29
+ value: l(this.value)
6
30
  };
7
- switch (e) {
8
- case 0:
9
- case 1:
10
- throw new RangeError(`Invalid arity ${e}`);
11
- case 2:
12
- return function(t, r) {
13
- return arguments.length >= 2 ? n(t, r) : function(u) {
14
- return n(u, t);
15
- };
16
- };
17
- case 3:
18
- return function(t, r, u) {
19
- return arguments.length >= 3 ? n(t, r, u) : function(s) {
20
- return n(s, t, r);
21
- };
22
- };
23
- default:
24
- return function() {
25
- if (arguments.length >= e)
26
- return n.apply(this, arguments);
27
- const t = arguments;
28
- return function(r) {
29
- return n(r, ...t);
30
- };
31
- };
31
+ },
32
+ asEffect() {
33
+ return O(this.value);
32
34
  }
33
- }, g = (e) => e, i = (e) => () => e, o = /* @__PURE__ */ i(void 0), m = o;
34
- function p(e, ...n) {
35
- return c(e, n);
36
- }
37
- function h(e) {
38
- const n = /* @__PURE__ */ new WeakMap();
39
- return (t) => {
40
- if (n.has(t))
41
- return n.get(t);
42
- const r = e(t);
43
- return n.set(t, r), r;
44
- };
45
- }
35
+ }), h = /* @__PURE__ */ o("None"), N = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
36
+ _tag: "None",
37
+ _op: "None",
38
+ [r](t) {
39
+ return i(t) && v(t);
40
+ },
41
+ [n]() {
42
+ return h;
43
+ },
44
+ toString() {
45
+ return "none()";
46
+ },
47
+ toJSON() {
48
+ return {
49
+ _id: "Option",
50
+ _tag: this._tag
51
+ };
52
+ },
53
+ asEffect() {
54
+ return g(new b());
55
+ }
56
+ }), i = (t) => p(t, s), v = (t) => t._tag === "None", P = (t) => t._tag === "Some", I = /* @__PURE__ */ Object.create(N), $ = (t) => {
57
+ const e = Object.create(S);
58
+ return e.value = t, e;
59
+ };
46
60
  export {
47
- o as constUndefined,
48
- m as constVoid,
49
- i as constant,
50
- a as dual,
51
- g as identity,
52
- h as memoize,
53
- p as pipe
61
+ v as isNone,
62
+ i as isOption,
63
+ P as isSome,
64
+ I as none,
65
+ $ as some
54
66
  };