@tolki/str 1.8.0 → 1.9.0

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 (39) hide show
  1. package/README.md +31 -7
  2. package/dist/ascii/index.d.ts.map +1 -1
  3. package/dist/ascii/index.js +4 -2
  4. package/dist/base64/index.d.ts.map +1 -1
  5. package/dist/base64/index.js +3 -0
  6. package/dist/convertcase/index.d.ts.map +1 -1
  7. package/dist/convertcase/index.js +7 -1
  8. package/dist/index.d.ts +13 -13
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/markdown/index.d.ts.map +1 -1
  11. package/dist/markdown/index.js +5 -2
  12. package/dist/pluralizer/index.d.ts +2 -0
  13. package/dist/pluralizer/index.d.ts.map +1 -1
  14. package/dist/pluralizer/index.js +14 -5
  15. package/dist/random/index.d.ts.map +1 -1
  16. package/dist/random/index.js +3 -1
  17. package/dist/replacer/index.d.ts +3 -0
  18. package/dist/replacer/index.d.ts.map +1 -1
  19. package/dist/replacer/index.js +27 -24
  20. package/dist/str.d.ts +26 -2
  21. package/dist/str.d.ts.map +1 -1
  22. package/dist/str.js +291 -205
  23. package/dist/stringable/index.d.ts +20 -3
  24. package/dist/stringable/index.d.ts.map +1 -1
  25. package/dist/stringable/index.js +98 -94
  26. package/dist/transliterate/index.d.ts.map +1 -1
  27. package/dist/transliterate/index.js +1 -0
  28. package/dist/trimmer/index.d.ts.map +1 -1
  29. package/dist/trimmer/index.js +4 -1
  30. package/dist/ulid/index.d.ts +8 -0
  31. package/dist/ulid/index.d.ts.map +1 -1
  32. package/dist/ulid/index.js +4 -2
  33. package/dist/uuid/index.d.ts +8 -0
  34. package/dist/uuid/index.d.ts.map +1 -1
  35. package/dist/uuid/index.js +5 -2
  36. package/dist/width/index.d.ts +19 -0
  37. package/dist/width/index.d.ts.map +1 -0
  38. package/dist/width/index.js +155 -0
  39. package/package.json +8 -23
@@ -12,6 +12,8 @@ export declare function ulid(time?: Date | number | null): string;
12
12
  /**
13
13
  * Indicate that ULIDs should be created normally and not using a custom factory.
14
14
  *
15
+ * @sideEffects state - clears `ulidFactory`.
16
+ *
15
17
  * @returns void.
16
18
  *
17
19
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#ulid
@@ -22,6 +24,8 @@ export declare function createUlidsNormally(): void;
22
24
  /**
23
25
  * Set the callable that will be used to generate ULIDs.
24
26
  *
27
+ * @sideEffects state - sets `ulidFactory`.
28
+ *
25
29
  * @param factory - The callable ULID factory.
26
30
  * @returns void.
27
31
  *
@@ -33,6 +37,8 @@ export declare function createUlidsUsing(factory: (() => string) | null): void;
33
37
  /**
34
38
  * Set the sequence that will be used to generate ULIDs.
35
39
  *
40
+ * @sideEffects state - sets `ulidFactory`.
41
+ *
36
42
  * @param sequence - The sequence of ULID strings to return.
37
43
  * @param whenMissing - Optional callable to generate ULIDs when the sequence is exhausted.
38
44
  * @returns void.
@@ -47,6 +53,8 @@ export declare function createUlidsUsingSequence(sequence: string[], whenMissing
47
53
  /**
48
54
  * Always return the same ULID when generating new ULIDs.
49
55
  *
56
+ * @sideEffects state - sets `ulidFactory` to a fixed value.
57
+ *
50
58
  * @param callback - Optional callable to execute while ULIDs are frozen.
51
59
  * @returns The frozen ULID string.
52
60
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ulid/index.ts"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,IAAI,GAAE,IAAI,GAAG,MAAM,GAAG,IAAW,GAAG,MAAM,CAwB9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAErE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,GAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAW,GAC1C,IAAI,CAwBN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACvB,QAAQ,GAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,IAAW,GACpD,MAAM,CAcR;AAED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQ9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ulid/index.ts"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEH,wBAAgB,IAAI,CAAC,IAAI,GAAE,IAAI,GAAG,MAAM,GAAG,IAAW,GAAG,MAAM,CAwB9D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAErE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,GAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAW,GAC1C,IAAI,CAwBN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CACvB,QAAQ,GAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,IAAW,GACpD,MAAM,CAcR;AAED;;;;;;;GAOG;AAEH,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQ9C"}
@@ -2,6 +2,7 @@ import { isString as e } from "@tolki/utils";
2
2
  import { ulid as t } from "ulid";
3
3
  // src/ulid/index.ts
4
4
  var n = null;
5
+ /* @__NO_SIDE_EFFECTS__ */
5
6
  function r(e = null) {
6
7
  if (n) return n();
7
8
  if (e == null) return t();
@@ -25,14 +26,14 @@ function o(e, t = null) {
25
26
  t ??= function() {
26
27
  let e = n;
27
28
  n = null;
28
- let t = r();
29
+ let t = /* @__PURE__ */ r();
29
30
  return n = e, i++, t;
30
31
  }, a(function() {
31
32
  return i < e.length ? e[i++] : t();
32
33
  });
33
34
  }
34
35
  function s(e = null) {
35
- let t = r();
36
+ let t = /* @__PURE__ */ r();
36
37
  if (a(() => t), e !== null) try {
37
38
  e(t);
38
39
  } finally {
@@ -40,6 +41,7 @@ function s(e = null) {
40
41
  }
41
42
  return t;
42
43
  }
44
+ /* @__NO_SIDE_EFFECTS__ */
43
45
  function c(t) {
44
46
  if (!e(t)) return !1;
45
47
  let n = t.toUpperCase();
@@ -21,6 +21,8 @@ export declare function uuid7(): string;
21
21
  /**
22
22
  * Set the callable that will be used to generate UUIDs.
23
23
  *
24
+ * @sideEffects state - sets `uuidFactory`.
25
+ *
24
26
  * @param factory - The callable UUID factory.
25
27
  * @returns void.
26
28
  *
@@ -32,6 +34,8 @@ export declare function createUuidsUsing(factory: (() => string) | null): void;
32
34
  /**
33
35
  * Set the sequence that will be used to generate UUIDs.
34
36
  *
37
+ * @sideEffects state - sets `uuidFactory`.
38
+ *
35
39
  * @param sequence - The sequence of UUID strings to return.
36
40
  * @param whenMissing - Optional callable to generate UUIDs when the sequence is exhausted.
37
41
  * @returns void.
@@ -46,6 +50,8 @@ export declare function createUuidsUsingSequence(sequence: string[], whenMissing
46
50
  /**
47
51
  * Always return the same UUID when generating new UUIDs.
48
52
  *
53
+ * @sideEffects state - sets `uuidFactory` to a fixed value.
54
+ *
49
55
  * @param callback - Optional callable to execute while UUIDs are frozen.
50
56
  * @returns The frozen UUID string.
51
57
  *
@@ -59,6 +65,8 @@ export declare function freezeUuids(callback?: ((value: string) => string) | nul
59
65
  /**
60
66
  * Indicate that UUIDs should be created normally and not using a custom factory.
61
67
  *
68
+ * @sideEffects state - clears `uuidFactory`.
69
+ *
62
70
  * @return void.
63
71
  *
64
72
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#uuid
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/uuid/index.ts"],"names":[],"mappings":"AAeA;;;;;;;;GAQG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAE7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,KAAK,IAAI,MAAM,CAE9B;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAErE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,GAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAW,GAC1C,IAAI,CAwBN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACvB,QAAQ,GAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,IAAW,GACpD,MAAM,CAcR;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAClB,KAAK,EAAE,MAAM,GAAG,OAAO,EACvB,OAAO,GAAE,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,IAAW,GAC9C,OAAO,CAkCT"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/uuid/index.ts"],"names":[],"mappings":"AAeA;;;;;;;;GAQG;AAEH,wBAAgB,IAAI,IAAI,MAAM,CAE7B;AAED;;;;;;;;GAQG;AAEH,wBAAgB,KAAK,IAAI,MAAM,CAE9B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAErE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,GAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAW,GAC1C,IAAI,CAwBN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CACvB,QAAQ,GAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,IAAW,GACpD,MAAM,CAcR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,MAAM,CAClB,KAAK,EAAE,MAAM,GAAG,OAAO,EACvB,OAAO,GAAE,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,IAAW,GAC9C,OAAO,CAkCT"}
@@ -2,9 +2,11 @@ import { isString as e } from "@tolki/utils";
2
2
  import { MAX as t, NIL as n, v4 as r, v7 as i, validate as a, version as o } from "uuid";
3
3
  // src/uuid/index.ts
4
4
  var s = null;
5
+ /* @__NO_SIDE_EFFECTS__ */
5
6
  function c() {
6
7
  return s ? s() : r();
7
8
  }
9
+ /* @__NO_SIDE_EFFECTS__ */
8
10
  function l() {
9
11
  return s ? s() : i();
10
12
  }
@@ -16,14 +18,14 @@ function d(e, t = null) {
16
18
  t ??= function() {
17
19
  let e = s;
18
20
  s = null;
19
- let t = c();
21
+ let t = /* @__PURE__ */ c();
20
22
  return s = e, n++, t;
21
23
  }, u(function() {
22
24
  return n < e.length ? e[n++] : t();
23
25
  });
24
26
  }
25
27
  function f(e = null) {
26
- let t = c();
28
+ let t = /* @__PURE__ */ c();
27
29
  if (u(() => t), e !== null) try {
28
30
  e(t);
29
31
  } finally {
@@ -34,6 +36,7 @@ function f(e = null) {
34
36
  function p() {
35
37
  s = null;
36
38
  }
39
+ /* @__NO_SIDE_EFFECTS__ */
37
40
  function m(r, i = null) {
38
41
  return !e(r) || i !== null && !a(r) ? !1 : i === null ? /^[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}$/.test(r) : i === 0 || i === "nil" ? r.toLowerCase() === n : i === "max" ? r.toLowerCase() === t : i < 1 || i > 8 ? !1 : o(r) === i;
39
42
  }
@@ -0,0 +1,19 @@
1
+ export declare const WIDE_RANGES: readonly (readonly [number, number])[];
2
+ /**
3
+ * Get the display width of a string, as mb_strwidth() measures it.
4
+ *
5
+ * @param value - The string to measure.
6
+ * @returns The sum of each character's width: 2 for a wide character, 1 for any other.
7
+ */
8
+ export declare function strWidth(value: string): number;
9
+ /**
10
+ * Cut a string to a display width, as mb_strimwidth(value, 0, width, '') does.
11
+ *
12
+ * @param value - The string to cut.
13
+ * @param width - The widest result; a negative width counts back from the string's full width.
14
+ * @returns The longest prefix that fits in the width, never splitting a character.
15
+ * @throws Error for a negative width past the string's full width, as PHP's mb_strimwidth() throws its ValueError.
16
+ * @throws TypeError for a NaN or infinite width, as PHP's mb_strimwidth() does.
17
+ */
18
+ export declare function strimWidth(value: string, width: number): string;
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/width/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EA4H7D,CAAC;AA6BF;;;;;GAKG;AAEH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ9C;AAED;;;;;;;;GAQG;AAEH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CA2B/D"}
@@ -0,0 +1,155 @@
1
+ import { phpIntArgument as e } from "@tolki/utils";
2
+ // src/width/index.ts
3
+ var t = [
4
+ [4352, 4447],
5
+ [8986, 8987],
6
+ [9001, 9002],
7
+ [9193, 9196],
8
+ [9200, 9200],
9
+ [9203, 9203],
10
+ [9725, 9726],
11
+ [9748, 9749],
12
+ [9776, 9783],
13
+ [9800, 9811],
14
+ [9855, 9855],
15
+ [9866, 9871],
16
+ [9875, 9875],
17
+ [9889, 9889],
18
+ [9898, 9899],
19
+ [9917, 9918],
20
+ [9924, 9925],
21
+ [9934, 9934],
22
+ [9940, 9940],
23
+ [9962, 9962],
24
+ [9970, 9971],
25
+ [9973, 9973],
26
+ [9978, 9978],
27
+ [9981, 9981],
28
+ [9989, 9989],
29
+ [9994, 9995],
30
+ [10024, 10024],
31
+ [10060, 10060],
32
+ [10062, 10062],
33
+ [10067, 10069],
34
+ [10071, 10071],
35
+ [10133, 10135],
36
+ [10160, 10160],
37
+ [10175, 10175],
38
+ [11035, 11036],
39
+ [11088, 11088],
40
+ [11093, 11093],
41
+ [11904, 11929],
42
+ [11931, 12019],
43
+ [12032, 12245],
44
+ [12272, 12350],
45
+ [12353, 12438],
46
+ [12441, 12543],
47
+ [12549, 12591],
48
+ [12593, 12686],
49
+ [12688, 12773],
50
+ [12783, 12830],
51
+ [12832, 12871],
52
+ [12880, 42124],
53
+ [42128, 42182],
54
+ [43360, 43388],
55
+ [44032, 55203],
56
+ [63744, 64255],
57
+ [65040, 65049],
58
+ [65072, 65106],
59
+ [65108, 65126],
60
+ [65128, 65131],
61
+ [65281, 65376],
62
+ [65504, 65510],
63
+ [94176, 94180],
64
+ [94192, 94198],
65
+ [94208, 101589],
66
+ [101631, 101662],
67
+ [101760, 101874],
68
+ [110576, 110579],
69
+ [110581, 110587],
70
+ [110589, 110590],
71
+ [110592, 110882],
72
+ [110898, 110898],
73
+ [110928, 110930],
74
+ [110933, 110933],
75
+ [110948, 110951],
76
+ [110960, 111355],
77
+ [119552, 119638],
78
+ [119648, 119670],
79
+ [126980, 126980],
80
+ [127183, 127183],
81
+ [127374, 127374],
82
+ [127377, 127386],
83
+ [127488, 127490],
84
+ [127504, 127547],
85
+ [127552, 127560],
86
+ [127568, 127569],
87
+ [127584, 127589],
88
+ [127744, 127776],
89
+ [127789, 127797],
90
+ [127799, 127868],
91
+ [127870, 127891],
92
+ [127904, 127946],
93
+ [127951, 127955],
94
+ [127968, 127984],
95
+ [127988, 127988],
96
+ [127992, 128062],
97
+ [128064, 128064],
98
+ [128066, 128252],
99
+ [128255, 128317],
100
+ [128331, 128334],
101
+ [128336, 128359],
102
+ [128378, 128378],
103
+ [128405, 128406],
104
+ [128420, 128420],
105
+ [128507, 128591],
106
+ [128640, 128709],
107
+ [128716, 128716],
108
+ [128720, 128722],
109
+ [128725, 128728],
110
+ [128732, 128735],
111
+ [128747, 128748],
112
+ [128756, 128764],
113
+ [128992, 129003],
114
+ [129008, 129008],
115
+ [129292, 129338],
116
+ [129340, 129349],
117
+ [129351, 129535],
118
+ [129648, 129660],
119
+ [129664, 129674],
120
+ [129678, 129734],
121
+ [129736, 129736],
122
+ [129741, 129756],
123
+ [129759, 129770],
124
+ [129775, 129784],
125
+ [131072, 196605],
126
+ [196608, 262141]
127
+ ];
128
+ function n(e) {
129
+ let n = e.codePointAt(0), r = 0, i = t.length - 1;
130
+ for (; r <= i;) {
131
+ let e = r + i >>> 1, [a, o] = t[e];
132
+ if (n < a) i = e - 1;
133
+ else if (n > o) r = e + 1;
134
+ else return 2;
135
+ }
136
+ return 1;
137
+ }
138
+ /* @__NO_SIDE_EFFECTS__ */
139
+ function r(e) {
140
+ let t = 0;
141
+ for (let r of e) t += n(r);
142
+ return t;
143
+ }
144
+ /* @__NO_SIDE_EFFECTS__ */
145
+ function i(t, i) {
146
+ let a = e(i, "mb_strimwidth(): Argument #3 ($width) must be of type int, float given"), o = a < 0 ? /* @__PURE__ */ r(t) + a : a;
147
+ if (o < 0) throw Error("mb_strimwidth(): Argument #3 ($width) is out of range");
148
+ let s = 0, c = 0;
149
+ for (let e of t) {
150
+ if (s += n(e), s > o) break;
151
+ c += e.length;
152
+ }
153
+ return t.slice(0, c);
154
+ }
155
+ export { t as WIDE_RANGES, r as strWidth, i as strimWidth };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolki/str",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Utilities for working with strings similar to Laravel's Str & Stringable classes.",
5
5
  "author": "Abraham Arango <https://github.com/abetwothree>",
6
6
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  "transliteration": "^2.7.0",
37
37
  "ulid": "^3.0.2",
38
38
  "uuid": "^14.0.3",
39
- "@tolki/num": "^2.2.5",
40
- "@tolki/utils": "^1.6.3",
41
- "@tolki/types": "^1.12.0"
39
+ "@tolki/num": "^2.3.0",
40
+ "@tolki/utils": "^1.7.0",
41
+ "@tolki/types": "^1.13.0"
42
42
  },
43
43
  "files": [
44
44
  "dist"
@@ -57,78 +57,63 @@
57
57
  "types": "dist/index.d.ts",
58
58
  "exports": {
59
59
  ".": {
60
- "import": "./dist/index.js",
61
- "require": "./dist/index.js",
62
- "types": "./dist/index.d.ts"
60
+ "types": "./dist/index.d.ts",
61
+ "default": "./dist/index.js"
63
62
  },
64
63
  "./*": {
65
- "import": "./dist/*",
66
- "require": "./dist/*",
67
- "types": "./dist/*"
64
+ "types": "./dist/*",
65
+ "default": "./dist/*"
68
66
  },
69
67
  "./ascii": {
70
68
  "types": "./dist/ascii/index.d.ts",
71
- "import": "./dist/ascii/index.js",
72
69
  "default": "./dist/ascii/index.js"
73
70
  },
74
71
  "./base64": {
75
72
  "types": "./dist/base64/index.d.ts",
76
- "import": "./dist/base64/index.js",
77
73
  "default": "./dist/base64/index.js"
78
74
  },
79
75
  "./convertcase": {
80
76
  "types": "./dist/convertcase/index.d.ts",
81
- "import": "./dist/convertcase/index.js",
82
77
  "default": "./dist/convertcase/index.js"
83
78
  },
84
79
  "./markdown": {
85
80
  "types": "./dist/markdown/index.d.ts",
86
- "import": "./dist/markdown/index.js",
87
81
  "default": "./dist/markdown/index.js"
88
82
  },
89
83
  "./pluralizer": {
90
84
  "types": "./dist/pluralizer/index.d.ts",
91
- "import": "./dist/pluralizer/index.js",
92
85
  "default": "./dist/pluralizer/index.js"
93
86
  },
94
87
  "./random": {
95
88
  "types": "./dist/random/index.d.ts",
96
- "import": "./dist/random/index.js",
97
89
  "default": "./dist/random/index.js"
98
90
  },
99
91
  "./replacer": {
100
92
  "types": "./dist/replacer/index.d.ts",
101
- "import": "./dist/replacer/index.js",
102
93
  "default": "./dist/replacer/index.js"
103
94
  },
104
95
  "./str": {
105
96
  "types": "./dist/str.d.ts",
106
- "import": "./dist/str.js",
107
97
  "default": "./dist/str.js"
108
98
  },
109
99
  "./stringable": {
110
100
  "types": "./dist/stringable/index.d.ts",
111
- "import": "./dist/stringable/index.js",
112
101
  "default": "./dist/stringable/index.js"
113
102
  },
114
103
  "./transliterate": {
115
104
  "types": "./dist/transliterate/index.d.ts",
116
- "import": "./dist/transliterate/index.js",
117
105
  "default": "./dist/transliterate/index.js"
118
106
  },
119
107
  "./trimmer": {
120
108
  "types": "./dist/trimmer/index.d.ts",
121
- "import": "./dist/trimmer/index.js",
122
109
  "default": "./dist/trimmer/index.js"
123
110
  },
124
111
  "./ulid": {
125
112
  "types": "./dist/ulid/index.d.ts",
126
- "import": "./dist/ulid/index.js",
127
113
  "default": "./dist/ulid/index.js"
128
114
  },
129
115
  "./uuid": {
130
116
  "types": "./dist/uuid/index.d.ts",
131
- "import": "./dist/uuid/index.js",
132
117
  "default": "./dist/uuid/index.js"
133
118
  }
134
119
  }