@tolki/utils 1.6.2 → 1.6.4

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/equality.js CHANGED
@@ -1,211 +1,160 @@
1
- import { isNumber as T, isString as u, isPhpNumeric as y, isBoolean as N, isObject as m, isPlainObject as V, isArray as B, isPhpFalsy as H, isNull as R, isUndefined as U } from "./guards.js";
2
- function g(t) {
3
- return R(t) || U(t);
4
- }
5
- function h(t, r) {
6
- return t < r ? -1 : t > r ? 1 : 0;
7
- }
8
- const j = /^[ \t\n\r\v\f]*[+-]?\d+[ \t\n\r\v\f]*$/, A = 2 ** 63, k = 2n ** 63n;
9
- function S(t) {
10
- return t >= k ? 1 : t < -k ? -1 : 0;
11
- }
12
- function D(t, r) {
13
- if (j.test(t) && j.test(r)) {
14
- const e = BigInt(t), i = BigInt(r), s = S(e);
15
- return s !== 0 && s === S(i) && Number(t) === Number(r) ? h(t, r) : e < i ? -1 : e > i ? 1 : 0;
16
- }
17
- const n = Number(t), o = Number(r);
18
- return n === o && !Number.isFinite(n) ? h(t, r) : n < o ? -1 : n > o ? 1 : 0;
19
- }
20
- function p(t) {
21
- return !H(t);
22
- }
23
- function _(t, r) {
24
- return G(t, r, void 0);
25
- }
26
- function G(t, r, n) {
27
- if (g(t) && u(r))
28
- return h("", r);
29
- if (u(t) && g(r))
30
- return h(t, "");
31
- if (g(t) || g(r) || N(t) || N(r)) {
32
- const e = p(t), i = p(r);
33
- return e === i ? 0 : e ? 1 : -1;
34
- }
35
- if (t instanceof Date && r instanceof Date) {
36
- const e = t.getTime(), i = r.getTime();
37
- return e < i ? -1 : e > i ? 1 : 0;
38
- }
39
- if (typeof t == "object" && typeof r == "object")
40
- return q(t, r, n ?? /* @__PURE__ */ new Map());
41
- if ((typeof t == "number" || u(t)) && (typeof r == "number" || u(r)) && (Number.isNaN(t) || Number.isNaN(r)))
42
- return 1;
43
- if (y(t) && y(r)) {
44
- if (u(t) && u(r))
45
- return D(t, r);
46
- const e = Number(t), i = Number(r);
47
- return e < i ? -1 : e > i ? 1 : 0;
48
- }
49
- return u(t) || u(r) ? h(String(t), String(r)) : t < r ? -1 : t > r ? 1 : 0;
50
- }
51
- function q(t, r, n) {
52
- const o = n.get(t);
53
- if (o?.has(r))
54
- return 0;
55
- const e = o ?? /* @__PURE__ */ new Set();
56
- o || n.set(t, e), e.add(r);
57
- const i = C(t, r, n);
58
- return e.delete(r), i;
59
- }
60
- function C(t, r, n) {
61
- const o = Object.keys(t), e = Object.keys(r).length;
62
- if (o.length !== e)
63
- return o.length < e ? -1 : 1;
64
- const i = t, s = r;
65
- for (const f of o) {
66
- if (!Object.hasOwn(r, f))
67
- return 1;
68
- const l = G(i[f], s[f], n);
69
- if (l !== 0)
70
- return l;
71
- }
72
- return 0;
73
- }
74
- function I(t, r) {
75
- if (t === r)
76
- return !0;
77
- if (T(t) && T(r))
78
- return !1;
79
- if (u(t) && u(r))
80
- return y(t) && y(r) && D(t, r) === 0;
81
- const n = g(t), o = g(r);
82
- if (n && o)
83
- return !0;
84
- if (n || o) {
85
- const s = n ? r : t;
86
- return u(s) ? s === "" : !p(s);
87
- }
88
- if (N(t) || N(r))
89
- return p(t) === p(r);
90
- if (P(t) || P(r))
91
- return !1;
92
- if (u(t) !== u(r)) {
93
- const s = u(t) ? r : t;
94
- if (m(s) && !V(s) && x(s))
95
- return String(s) === (u(t) ? t : r);
96
- }
97
- const e = E(t) || u(t), i = E(r) || u(r);
98
- if (e && i)
99
- return d(t) && d(r) ? w(t) && w(r) ? BigInt(t) === BigInt(r) : Number(t) === Number(r) : F(t) === F(r);
100
- if (B(t) && B(r)) {
101
- if (t.length !== r.length)
102
- return !1;
103
- for (let s = 0; s < t.length; s++)
104
- if (!I(t[s], r[s]))
105
- return !1;
106
- return !0;
107
- }
108
- if (m(t) && m(r)) {
109
- const s = Object.keys(t), f = Object.keys(r);
110
- return s.length !== f.length ? !1 : s.every(
111
- (l) => f.includes(l) && I(
112
- t[l],
113
- r[l]
114
- )
115
- );
116
- }
117
- return !1;
118
- }
119
- function E(t) {
120
- return typeof t == "number" || typeof t == "bigint";
121
- }
122
- function d(t) {
123
- return typeof t == "bigint" || y(t);
124
- }
125
- function w(t) {
126
- return typeof t == "bigint" ? !0 : typeof t == "number" ? Number.isInteger(t) && t >= -A && t < A : j.test(t) && S(BigInt(t)) === 0;
127
- }
128
- function P(t) {
129
- return typeof t == "number" && Number.isNaN(t);
130
- }
131
- function x(t) {
132
- const r = t.toString;
133
- return typeof r == "function" && r !== Object.prototype.toString;
134
- }
135
- function F(t) {
136
- if (typeof t == "number") {
137
- if (t === Number.POSITIVE_INFINITY)
138
- return "INF";
139
- if (t === Number.NEGATIVE_INFINITY)
140
- return "-INF";
141
- }
142
- return String(t);
143
- }
144
- function O(t, r) {
145
- if (t === r)
146
- return !0;
147
- if (Array.isArray(t) && Array.isArray(r)) {
148
- if (t.length !== r.length)
149
- return !1;
150
- for (let n = 0; n < t.length; n++)
151
- if (!O(t[n], r[n]))
152
- return !1;
153
- return !0;
154
- }
155
- if (t !== null && r !== null && typeof t == "object" && typeof r == "object" && !Array.isArray(t) && !Array.isArray(r)) {
156
- const n = t.constructor === Object || t.constructor === void 0, o = r.constructor === Object || r.constructor === void 0;
157
- if (!n || !o)
158
- return !1;
159
- const e = Object.keys(t), i = Object.keys(r);
160
- if (e.length !== i.length)
161
- return !1;
162
- for (const [s, f] of e.entries())
163
- if (f !== i[s] || !O(
164
- t[f],
165
- r[f]
166
- ))
167
- return !1;
168
- return !0;
169
- }
170
- return !1;
171
- }
172
- function Y(t, r, n) {
173
- const o = [t, n], e = (c) => m(c) && !V(c);
174
- if (o.filter(
175
- (c) => u(c) || e(c) && x(c)
176
- ).length < 2 && o.filter(e).length === 1)
177
- return ["!=", "<>", "!=="].includes(r);
178
- const f = !(N(t) || N(n) || g(t) || g(n)) && (P(t) || P(n)), l = (c) => !f && c(_(t, n));
179
- switch (r) {
180
- case "!=":
181
- case "<>":
182
- return !I(t, n);
183
- case "<":
184
- return l((c) => c < 0);
185
- case ">":
186
- return l((c) => c > 0);
187
- case "<=":
188
- return l((c) => c <= 0);
189
- case ">=":
190
- return l((c) => c >= 0);
191
- // PHP's `===` compares an array by value — same keys, same order, same types — and only a real object by
192
- // identity. strictEqual is that rule; JS's own `===` would call every pair of equal arrays unequal
193
- // (docs/php-parity/Collection/contains.json, "r4-strict-operators").
194
- case "===":
195
- return O(t, n);
196
- case "!==":
197
- return !O(t, n);
198
- // PHP's `<=>` is truthy for any non-zero result, so only an equal pair is
199
- // falsy; an uncomparable one answers 1, not 0, and so counts as unequal.
200
- case "<=>":
201
- return f || _(t, n) !== 0;
202
- default:
203
- return I(t, n);
204
- }
205
- }
206
- export {
207
- _ as compareValues,
208
- I as looseEqual,
209
- Y as operatorMatch,
210
- O as strictEqual
211
- };
1
+ import { isArray as e, isBoolean as t, isNull as n, isNumber as r, isObject as i, isPhpFalsy as a, isPhpNumeric as o, isPlainObject as s, isString as c, isUndefined as l } from "./guards.js";
2
+ // src/equality.ts
3
+ function u(e) {
4
+ return /* @__PURE__ */ n(e) || /* @__PURE__ */ l(e);
5
+ }
6
+ function d(e, t) {
7
+ return e < t ? -1 : +(e > t);
8
+ }
9
+ var f = /^[ \t\n\r\v\f]*[+-]?\d+[ \t\n\r\v\f]*$/, p = 2 ** 63, m = 2n ** 63n;
10
+ function h(e) {
11
+ return e >= m ? 1 : e < -m ? -1 : 0;
12
+ }
13
+ function g(e, t) {
14
+ if (f.test(e) && f.test(t)) {
15
+ let n = BigInt(e), r = BigInt(t), i = h(n);
16
+ return i !== 0 && i === h(r) && Number(e) === Number(t) ? d(e, t) : n < r ? -1 : +(n > r);
17
+ }
18
+ let n = Number(e), r = Number(t);
19
+ return n === r && !Number.isFinite(n) ? d(e, t) : n < r ? -1 : +(n > r);
20
+ }
21
+ function _(e) {
22
+ return !/* @__PURE__ */ a(e);
23
+ }
24
+ /* @__NO_SIDE_EFFECTS__ */
25
+ function v(e, t) {
26
+ return y(e, t, void 0);
27
+ }
28
+ function y(e, n, r) {
29
+ if (u(e) && /* @__PURE__ */ c(n)) return d("", n);
30
+ if (/* @__PURE__ */ c(e) && u(n)) return d(e, "");
31
+ if (u(e) || u(n) || /* @__PURE__ */ t(e) || /* @__PURE__ */ t(n)) {
32
+ let t = _(e);
33
+ return t === _(n) ? 0 : t ? 1 : -1;
34
+ }
35
+ if (e instanceof Date && n instanceof Date) {
36
+ let t = e.getTime(), r = n.getTime();
37
+ return t < r ? -1 : +(t > r);
38
+ }
39
+ if (typeof e == "object" && typeof n == "object") return b(e, n, r ?? /* @__PURE__ */ new Map());
40
+ if ((typeof e == "number" || /* @__PURE__ */ c(e)) && (typeof n == "number" || /* @__PURE__ */ c(n)) && (Number.isNaN(e) || Number.isNaN(n))) return 1;
41
+ if (/* @__PURE__ */ o(e) && /* @__PURE__ */ o(n)) {
42
+ if (/* @__PURE__ */ c(e) && /* @__PURE__ */ c(n)) return g(e, n);
43
+ let t = Number(e), r = Number(n);
44
+ return t < r ? -1 : +(t > r);
45
+ }
46
+ return /* @__PURE__ */ c(e) || /* @__PURE__ */ c(n) ? d(String(e), String(n)) : e < n ? -1 : +(e > n);
47
+ }
48
+ function b(e, t, n) {
49
+ let r = n.get(e);
50
+ if (r?.has(t)) return 0;
51
+ let i = r ?? /* @__PURE__ */ new Set();
52
+ r || n.set(e, i), i.add(t);
53
+ let a = x(e, t, n);
54
+ return i.delete(t), a;
55
+ }
56
+ function x(e, t, n) {
57
+ let r = Object.keys(e), i = Object.keys(t).length;
58
+ if (r.length !== i) return r.length < i ? -1 : 1;
59
+ let a = e, o = t;
60
+ for (let e of r) {
61
+ if (!Object.hasOwn(t, e)) return 1;
62
+ let r = y(a[e], o[e], n);
63
+ if (r !== 0) return r;
64
+ }
65
+ return 0;
66
+ }
67
+ /* @__NO_SIDE_EFFECTS__ */
68
+ function S(n, a) {
69
+ if (n === a) return !0;
70
+ if (/* @__PURE__ */ r(n) && /* @__PURE__ */ r(a)) return !1;
71
+ if (/* @__PURE__ */ c(n) && /* @__PURE__ */ c(a)) return /* @__PURE__ */ o(n) && /* @__PURE__ */ o(a) && g(n, a) === 0;
72
+ let l = u(n), d = u(a);
73
+ if (l && d) return !0;
74
+ if (l || d) {
75
+ let e = l ? a : n;
76
+ return /* @__PURE__ */ c(e) ? e === "" : !_(e);
77
+ }
78
+ if (/* @__PURE__ */ t(n) || /* @__PURE__ */ t(a)) return _(n) === _(a);
79
+ if (E(n) || E(a)) return !1;
80
+ if (/* @__PURE__ */ c(n) !== /* @__PURE__ */ c(a)) {
81
+ let e = /* @__PURE__ */ c(n) ? a : n;
82
+ if (/* @__PURE__ */ i(e) && !/* @__PURE__ */ s(e) && D(e)) return String(e) === (/* @__PURE__ */ c(n) ? n : a);
83
+ }
84
+ let f = C(n) || /* @__PURE__ */ c(n), p = C(a) || /* @__PURE__ */ c(a);
85
+ if (f && p) return w(n) && w(a) ? T(n) && T(a) ? BigInt(n) === BigInt(a) : Number(n) === Number(a) : O(n) === O(a);
86
+ if (/* @__PURE__ */ e(n) && /* @__PURE__ */ e(a)) {
87
+ if (n.length !== a.length) return !1;
88
+ for (let e = 0; e < n.length; e++) if (!/* @__PURE__ */ S(n[e], a[e])) return !1;
89
+ return !0;
90
+ }
91
+ if (/* @__PURE__ */ i(n) && /* @__PURE__ */ i(a)) {
92
+ let e = Object.keys(n), t = Object.keys(a);
93
+ return e.length === t.length && e.every((e) => t.includes(e) && /* @__PURE__ */ S(n[e], a[e]));
94
+ }
95
+ return !1;
96
+ }
97
+ function C(e) {
98
+ return typeof e == "number" || typeof e == "bigint";
99
+ }
100
+ function w(e) {
101
+ return typeof e == "bigint" || /* @__PURE__ */ o(e);
102
+ }
103
+ function T(e) {
104
+ return typeof e == "bigint" ? !0 : typeof e == "number" ? Number.isInteger(e) && e >= -p && e < p : f.test(e) && h(BigInt(e)) === 0;
105
+ }
106
+ function E(e) {
107
+ return typeof e == "number" && Number.isNaN(e);
108
+ }
109
+ function D(e) {
110
+ let t = e.toString;
111
+ return typeof t == "function" && t !== Object.prototype.toString;
112
+ }
113
+ function O(e) {
114
+ if (typeof e == "number") {
115
+ if (e === Infinity) return "INF";
116
+ if (e === -Infinity) return "-INF";
117
+ }
118
+ return String(e);
119
+ }
120
+ /* @__NO_SIDE_EFFECTS__ */
121
+ function k(e, t) {
122
+ if (e === t) return !0;
123
+ if (Array.isArray(e) && Array.isArray(t)) {
124
+ if (e.length !== t.length) return !1;
125
+ for (let n = 0; n < e.length; n++) if (!/* @__PURE__ */ k(e[n], t[n])) return !1;
126
+ return !0;
127
+ }
128
+ if (e !== null && t !== null && typeof e == "object" && typeof t == "object" && !Array.isArray(e) && !Array.isArray(t)) {
129
+ let n = e.constructor === Object || e.constructor === void 0, r = t.constructor === Object || t.constructor === void 0;
130
+ if (!n || !r) return !1;
131
+ let i = Object.keys(e), a = Object.keys(t);
132
+ if (i.length !== a.length) return !1;
133
+ for (let [n, r] of i.entries()) if (r !== a[n] || !/* @__PURE__ */ k(e[r], t[r])) return !1;
134
+ return !0;
135
+ }
136
+ return !1;
137
+ }
138
+ /* @__NO_SIDE_EFFECTS__ */
139
+ function A(e, n, r) {
140
+ let a = [e, r], o = (e) => /* @__PURE__ */ i(e) && !/* @__PURE__ */ s(e);
141
+ if (a.filter((e) => /* @__PURE__ */ c(e) || o(e) && D(e)).length < 2 && a.filter(o).length === 1) return [
142
+ "!=",
143
+ "<>",
144
+ "!=="
145
+ ].includes(n);
146
+ let l = !(/* @__PURE__ */ t(e) || /* @__PURE__ */ t(r) || u(e) || u(r)) && (E(e) || E(r)), d = (t) => !l && t(/* @__PURE__ */ v(e, r));
147
+ switch (n) {
148
+ case "!=":
149
+ case "<>": return !/* @__PURE__ */ S(e, r);
150
+ case "<": return d((e) => e < 0);
151
+ case ">": return d((e) => e > 0);
152
+ case "<=": return d((e) => e <= 0);
153
+ case ">=": return d((e) => e >= 0);
154
+ case "===": return /* @__PURE__ */ k(e, r);
155
+ case "!==": return !/* @__PURE__ */ k(e, r);
156
+ case "<=>": return l || /* @__PURE__ */ v(e, r) !== 0;
157
+ default: return /* @__PURE__ */ S(e, r);
158
+ }
159
+ }
160
+ export { v as compareValues, S as looseEqual, A as operatorMatch, k as strictEqual };
@@ -1,54 +1,23 @@
1
- class n extends Error {
2
- /**
3
- * Create a new exception instance.
4
- *
5
- * @param message - The exception message
6
- */
7
- constructor(e) {
8
- super(e), this.name = "InvalidArgumentException";
9
- }
10
- }
11
- class o extends Error {
12
- /**
13
- * Create a new exception instance.
14
- */
15
- constructor() {
16
- super(""), this.name = "ItemNotFoundException";
17
- }
18
- }
19
- class r extends Error {
20
- /** The number of items found, as Laravel's public `$count`. */
21
- count;
22
- /**
23
- * Create a new exception instance.
24
- *
25
- * @param count - The number of items the lookup matched
26
- */
27
- constructor(e) {
28
- super(`${e} items were found.`), this.name = "MultipleItemsFoundException", this.count = e;
29
- }
30
- /**
31
- * Get the number of items found.
32
- *
33
- * @returns The number of items the lookup matched
34
- */
35
- getCount() {
36
- return this.count;
37
- }
38
- }
39
- class s extends Error {
40
- /**
41
- * Create a new exception instance.
42
- *
43
- * @param message - The exception message
44
- */
45
- constructor(e) {
46
- super(e), this.name = "UnexpectedValueException";
47
- }
48
- }
49
- export {
50
- n as InvalidArgumentException,
51
- o as ItemNotFoundException,
52
- r as MultipleItemsFoundException,
53
- s as UnexpectedValueException
1
+ // src/exceptions.ts
2
+ var e = class extends Error {
3
+ constructor(e) {
4
+ super(e), this.name = "InvalidArgumentException";
5
+ }
6
+ }, t = class extends Error {
7
+ constructor() {
8
+ super(""), this.name = "ItemNotFoundException";
9
+ }
10
+ }, n = class extends Error {
11
+ count;
12
+ constructor(e) {
13
+ super(`${e} items were found.`), this.name = "MultipleItemsFoundException", this.count = e;
14
+ }
15
+ getCount() {
16
+ return this.count;
17
+ }
18
+ }, r = class extends Error {
19
+ constructor(e) {
20
+ super(e), this.name = "UnexpectedValueException";
21
+ }
54
22
  };
23
+ export { e as InvalidArgumentException, t as ItemNotFoundException, n as MultipleItemsFoundException, r as UnexpectedValueException };
@@ -1 +1 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,OAAO,GAAG,KAAK,IAAI,CAAC,EAAE,CAE5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,WAAW,GAAG,WAAW,EAC3D,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,GACjC,KAAK,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAEvB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CACzB,KAAK,EAAE,OAAO,GACf,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAQvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACtB,KAAK,EAAE,OAAO,GACf,KAAK,IAAI,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,CAQpD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE9D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAczD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD;AAED;;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