@tolki/num 2.0.3 → 2.0.5

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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <p align="center"><img src="https://raw.githubusercontent.com/abetwothree/tolki/refs/heads/master/docs/vitepress/public/tolki-logo-short.svg" width="50%" alt="Laravel Tolki JS Logo"></p>
2
+
1
3
  # Tolki JS Num Package
2
4
 
3
5
  This package provides number utility functions similar to Laravel's Num class facade.
package/dist/num.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"num.d.ts","sourceRoot":"","sources":["../src/num.ts"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACtB,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,MAAU,EACrB,YAAY,GAAE,MAAM,GAAG,IAAW,GACnC,MAAM,GAAG,KAAK,CAEhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAClB,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,MAAM,GAAE,MAAM,GAAG,IAAW,GAC7B,MAAM,GAAG,KAAK,CAmBhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,IAAW,GAAG,MAAM,CA2DzE;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACpB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAM,GAAG,IAAW,GAC7B,MAAM,GAAG,KAAK,CAQhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACtB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAM,GAAG,IAAW,GAC7B,MAAM,GAAG,KAAK,CAEhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAA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EAChB,QAAQ,EAAE,MAAM,OAAO,GACxB,OAAO,GAAG,IAAI,CAUhB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE9C;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC"}
package/dist/num.js CHANGED
@@ -1,8 +1,8 @@
1
- let p = "en", y = "USD";
1
+ let p = "en", $ = "USD";
2
2
  function x(t, n = 0, e = null) {
3
- return D(t, n, e, !0);
3
+ return S(t, n, e, !0);
4
4
  }
5
- function g(t, n = null, e = null, r = null) {
5
+ function f(t, n = null, e = null, r = null) {
6
6
  r = r ?? p;
7
7
  const o = {
8
8
  style: "decimal",
@@ -10,37 +10,37 @@ function g(t, n = null, e = null, r = null) {
10
10
  };
11
11
  return e != null ? (o.maximumFractionDigits = e, o.minimumFractionDigits = 0) : n != null && (o.minimumFractionDigits = n, o.maximumFractionDigits = n), new Intl.NumberFormat(r, o).format(t);
12
12
  }
13
- function $(t, n = null) {
13
+ function y(t, n = null) {
14
14
  n = n ?? p;
15
15
  const r = new Intl.NumberFormat(n).formatToParts(12345.6), o = /* @__PURE__ */ new Set();
16
16
  let s = ".";
17
- for (const l of r)
18
- l.type === "group" ? o.add(l.value) : l.type === "decimal" && (s = l.value);
17
+ for (const i of r)
18
+ i.type === "group" ? o.add(i.value) : i.type === "decimal" && (s = i.value);
19
19
  const u = [" ", " ", " "];
20
- for (const l of u) o.add(l);
21
- let i = t;
22
- for (const l of o) {
20
+ for (const i of u) o.add(i);
21
+ let l = t;
22
+ for (const i of o) {
23
23
  const c = new RegExp(
24
- l.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"),
24
+ i.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"),
25
25
  "g"
26
26
  );
27
- i = i.replace(c, "");
27
+ l = l.replace(c, "");
28
28
  }
29
29
  if (s !== ".") {
30
- const l = new RegExp(
30
+ const i = new RegExp(
31
31
  s.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"),
32
32
  "g"
33
- ), c = i.lastIndexOf(s);
34
- c !== -1 && (i = i.slice(0, c).replace(l, "") + "." + i.slice(c + s.length));
33
+ ), c = l.lastIndexOf(s);
34
+ c !== -1 && (l = l.slice(0, c).replace(i, "") + "." + l.slice(c + s.length));
35
35
  }
36
- return i = i.replace(/[\s\u00A0\u202F\u2009]+/g, "").trim(), globalThis.Number(i);
36
+ return l = l.replace(/[\s\u00A0\u202F\u2009]+/g, "").trim(), globalThis.Number(l);
37
37
  }
38
38
  function E(t, n = null) {
39
- const e = $(t, n);
39
+ const e = y(t, n);
40
40
  return Number.isNaN(e) ? !1 : e < 0 ? Math.ceil(e) : Math.floor(e);
41
41
  }
42
42
  function B(t, n = null) {
43
- return $(t, n);
43
+ return y(t, n);
44
44
  }
45
45
  function O(t, n = null) {
46
46
  const e = n ?? p;
@@ -50,10 +50,10 @@ function O(t, n = null) {
50
50
  two: "nd",
51
51
  few: "rd",
52
52
  other: "th"
53
- }, f = {
53
+ }, m = {
54
54
  en: u
55
- }[s] ?? u, l = f[o] ?? f.other;
56
- return `${t}${l}`;
55
+ }[s] ?? u, i = m[o] ?? m.other;
56
+ return `${t}${i}`;
57
57
  } catch {
58
58
  const r = Math.abs(t), o = r % 100;
59
59
  if (o >= 11 && o <= 13)
@@ -71,19 +71,19 @@ function O(t, n = null) {
71
71
  }
72
72
  }
73
73
  function I(t, n = 0, e = null, r = null) {
74
- const o = r ?? p, s = typeof t == "string" ? $(t, o) : t, u = {
74
+ const o = r ?? p, s = typeof t == "string" ? y(t, o) : t, u = {
75
75
  style: "percent",
76
76
  useGrouping: !0
77
77
  };
78
78
  return e != null ? (u.maximumFractionDigits = e, u.minimumFractionDigits = 0) : (u.minimumFractionDigits = n, u.maximumFractionDigits = n), new Intl.NumberFormat(o, u).format(s / 100);
79
79
  }
80
80
  function T(t, n = "", e = null, r = null) {
81
- const o = e ?? p, s = typeof t == "string" ? $(t, o) : t, i = {
81
+ const o = e ?? p, s = typeof t == "string" ? y(t, o) : t, l = {
82
82
  style: "currency",
83
- currency: n && n.length ? n : y,
83
+ currency: n && n.length ? n : $,
84
84
  useGrouping: !0
85
85
  };
86
- return r != null && (i.minimumFractionDigits = r, i.maximumFractionDigits = r), new Intl.NumberFormat(o, i).format(s);
86
+ return r != null && (l.minimumFractionDigits = r, l.maximumFractionDigits = r), new Intl.NumberFormat(o, l).format(s);
87
87
  }
88
88
  function R(t, n = 0, e = null) {
89
89
  let r = typeof t == "string" ? Number(t) : t;
@@ -102,9 +102,9 @@ function R(t, n = 0, e = null) {
102
102
  let u = 0;
103
103
  for (; r / 1024 > 0.9 && u < s - 1; )
104
104
  r /= 1024, u++;
105
- return `${g(r, n, e)} ${o[u]}`;
105
+ return `${f(r, n, e)} ${o[u]}`;
106
106
  }
107
- function D(t, n = 0, e = null, r = !1) {
107
+ function S(t, n = 0, e = null, r = !1) {
108
108
  return b(
109
109
  t,
110
110
  n,
@@ -126,7 +126,7 @@ function b(t, n = 0, e = null, r = {}) {
126
126
  12: "T",
127
127
  15: "Q"
128
128
  }), Number(t) === 0)
129
- return n > 0 ? g(0, n, e) : "0";
129
+ return n > 0 ? f(0, n, e) : "0";
130
130
  if (t < 0)
131
131
  return `-${b(
132
132
  Math.abs(t),
@@ -135,7 +135,7 @@ function b(t, n = 0, e = null, r = {}) {
135
135
  r
136
136
  )}`;
137
137
  if (t >= 1e15) {
138
- const l = Object.keys(r).map((a) => Number(a)).filter((a) => !Number.isNaN(a)).sort((a, m) => a - m), c = l[l.length - 1], h = r[c];
138
+ const i = Object.keys(r).map((a) => Number(a)).filter((a) => !Number.isNaN(a)).sort((a, d) => a - d), c = i[i.length - 1], h = r[c];
139
139
  return `${b(
140
140
  t / 1e15,
141
141
  n,
@@ -143,18 +143,25 @@ function b(t, n = 0, e = null, r = {}) {
143
143
  r
144
144
  )}${h}`.trim();
145
145
  }
146
- const o = Math.floor(Math.log10(t)), s = o - o % 3, u = t / Math.pow(10, s);
147
- let i;
146
+ const o = Math.floor(Math.log10(t));
147
+ let s = o - o % 3;
148
+ const u = t / Math.pow(10, s);
149
+ let l;
148
150
  if (e != null)
149
- i = g(u, null, e);
151
+ l = f(u, null, e);
150
152
  else if (n > 0)
151
- i = g(u, n, null);
153
+ l = f(u, n, null);
152
154
  else {
153
- const l = Math.abs(t);
154
- i = s === 3 && u < 10 && l % 10 === 0 ? g(u, null, 1) : g(u, 0, null);
155
+ const i = Math.abs(t);
156
+ l = s === 3 && u < 10 && i % 10 === 0 ? f(u, null, 1) : f(u, 0, null);
155
157
  }
156
- const f = r[s] ?? "";
157
- return `${i}${f}`.trim();
158
+ if (y(l) >= 1e3 && r[s + 3] !== void 0) {
159
+ s += 3;
160
+ const i = u / 1e3;
161
+ e != null ? l = f(i, null, e) : n > 0 ? l = f(i, n, null) : l = f(i, 0, null);
162
+ }
163
+ const m = r[s] ?? "";
164
+ return `${l}${m}`.trim();
158
165
  }
159
166
  function G(t, n, e) {
160
167
  return Math.min(Math.max(t, n), e);
@@ -172,48 +179,48 @@ function k(t) {
172
179
  }
173
180
  function A(t, n = !0) {
174
181
  const e = Number(t) * 60;
175
- return S(e, n);
182
+ return D(e, n);
176
183
  }
177
- function S(t, n = !0) {
184
+ function D(t, n = !0) {
178
185
  let e = Number(t);
179
186
  if ((!Number.isFinite(e) || e < 0) && (e = 0), e === 0) return "0 seconds";
180
- const r = 1, o = 60 * r, s = 60 * o, u = 24 * s, i = 7 * u, f = 4 * i, c = [
181
- ["year", 12 * f],
182
- ["month", f],
183
- ["week", i],
187
+ const r = 1, o = 60 * r, s = 60 * o, u = 24 * s, l = 7 * u, m = 4 * l, c = [
188
+ ["year", 12 * m],
189
+ ["month", m],
190
+ ["week", l],
184
191
  ["day", u],
185
192
  ["hour", s],
186
193
  ["minute", o],
187
194
  ["second", r]
188
195
  ];
189
196
  if (n)
190
- for (const [a, m] of c) {
191
- const d = e / m;
192
- if (d >= 0.5 || m === r) {
193
- const F = Math.round(d);
194
- return `${F} ${a}${F === 1 ? "" : "s"}`;
197
+ for (const [a, d] of c) {
198
+ const g = e / d;
199
+ if (g >= 0.5 || d === r) {
200
+ const w = Math.round(g);
201
+ return `${w} ${a}${w === 1 ? "" : "s"}`;
195
202
  }
196
203
  }
197
204
  let h = e;
198
205
  const N = [];
199
- for (const [a, m] of c)
200
- if (h >= m) {
201
- const d = Math.floor(h / m);
202
- h -= d * m, N.push(`${d} ${a}${d === 1 ? "" : "s"}`);
206
+ for (const [a, d] of c)
207
+ if (h >= d) {
208
+ const g = Math.floor(h / d);
209
+ h -= g * d, N.push(`${g} ${a}${g === 1 ? "" : "s"}`);
203
210
  }
204
211
  return N.join(", ");
205
212
  }
206
213
  function C(t, n) {
207
214
  const e = p;
208
- w(t);
215
+ F(t);
209
216
  try {
210
217
  return n();
211
218
  } finally {
212
- w(e);
219
+ F(e);
213
220
  }
214
221
  }
215
222
  function K(t, n) {
216
- const e = y;
223
+ const e = $;
217
224
  M(t);
218
225
  try {
219
226
  return n();
@@ -221,17 +228,17 @@ function K(t, n) {
221
228
  M(e);
222
229
  }
223
230
  }
224
- function w(t) {
231
+ function F(t) {
225
232
  p = t;
226
233
  }
227
234
  function M(t) {
228
- y = t;
235
+ $ = t;
229
236
  }
230
237
  function L() {
231
238
  return p;
232
239
  }
233
240
  function Y() {
234
- return y;
241
+ return $;
235
242
  }
236
243
  export {
237
244
  x as abbreviate,
@@ -240,20 +247,20 @@ export {
240
247
  Y as defaultCurrency,
241
248
  L as defaultLocale,
242
249
  R as fileSize,
243
- D as forHumans,
244
- g as format,
250
+ S as forHumans,
251
+ f as format,
245
252
  A as minutesToHuman,
246
253
  O as ordinal,
247
254
  H as pairs,
248
- $ as parse,
255
+ y as parse,
249
256
  B as parseFloat,
250
257
  E as parseInt,
251
258
  I as percentage,
252
- S as secondsToHuman,
259
+ D as secondsToHuman,
253
260
  b as summarize,
254
261
  k as trim,
255
262
  M as useCurrency,
256
- w as useLocale,
263
+ F as useLocale,
257
264
  K as withCurrency,
258
265
  C as withLocale
259
266
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolki/num",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Utilities for working with numbers similar to Laravel's Num class facade.",
5
5
  "author": "Abraham Arango <https://github.com/abetwothree>",
6
6
  "license": "MIT",