@thi.ng/strings 3.3.20 → 3.3.21
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/CHANGELOG.md +1 -1
- package/hollerith.d.ts +1 -1
- package/hollerith.js +1 -1
- package/package.json +4 -4
- package/slugify.d.ts +1 -1
- package/slugify.js +1 -1
- package/uuid.d.ts +5 -4
- package/uuid.js +5 -4
package/CHANGELOG.md
CHANGED
package/hollerith.d.ts
CHANGED
package/hollerith.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/strings",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.21",
|
|
4
4
|
"description": "Various string formatting & utility functions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.6.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
38
|
"@thi.ng/errors": "^2.2.6",
|
|
39
39
|
"@thi.ng/hex": "^2.3.2",
|
|
40
|
-
"@thi.ng/memoize": "^3.1.
|
|
40
|
+
"@thi.ng/memoize": "^3.1.20"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.33.7",
|
|
@@ -200,5 +200,5 @@
|
|
|
200
200
|
"thi.ng": {
|
|
201
201
|
"year": 2015
|
|
202
202
|
},
|
|
203
|
-
"gitHead": "
|
|
203
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
204
204
|
}
|
package/slugify.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Stringer } from "./api.js";
|
|
2
2
|
/**
|
|
3
3
|
* Based on:
|
|
4
|
-
*
|
|
4
|
+
* https://medium.com/@matthagemann/the-ultimate-way-to-slugify-a-url-string-in-javascript-b8e4a0d849e1
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```ts
|
package/slugify.js
CHANGED
|
@@ -3,7 +3,7 @@ const dest = "aaaaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------";
|
|
|
3
3
|
const re = new RegExp(src.split("").join("|"), "g");
|
|
4
4
|
/**
|
|
5
5
|
* Based on:
|
|
6
|
-
*
|
|
6
|
+
* https://medium.com/@matthagemann/the-ultimate-way-to-slugify-a-url-string-in-javascript-b8e4a0d849e1
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
package/uuid.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Same as
|
|
3
|
-
*
|
|
2
|
+
* Same as [`uuid()`](https://docs.thi.ng/umbrella/hex/functions/uuid.html).
|
|
3
|
+
* Returns UUID formatted string of given byte array from optional start index
|
|
4
|
+
* `i` (default: 0). Array must have min. length
|
|
4
5
|
* 16.
|
|
5
6
|
*
|
|
6
7
|
* @remarks
|
|
7
|
-
* Use
|
|
8
|
-
* than just format one).
|
|
8
|
+
* Use [`uuid()`](https://docs.thi.ng/umbrella/random/functions/uuid.html) to
|
|
9
|
+
* also generate an UUID from scratch (rather than just format one).
|
|
9
10
|
*
|
|
10
11
|
* @param id -
|
|
11
12
|
* @param i -
|
package/uuid.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { uuid as $uuid } from "@thi.ng/hex";
|
|
2
2
|
/**
|
|
3
|
-
* Same as
|
|
4
|
-
*
|
|
3
|
+
* Same as [`uuid()`](https://docs.thi.ng/umbrella/hex/functions/uuid.html).
|
|
4
|
+
* Returns UUID formatted string of given byte array from optional start index
|
|
5
|
+
* `i` (default: 0). Array must have min. length
|
|
5
6
|
* 16.
|
|
6
7
|
*
|
|
7
8
|
* @remarks
|
|
8
|
-
* Use
|
|
9
|
-
* than just format one).
|
|
9
|
+
* Use [`uuid()`](https://docs.thi.ng/umbrella/random/functions/uuid.html) to
|
|
10
|
+
* also generate an UUID from scratch (rather than just format one).
|
|
10
11
|
*
|
|
11
12
|
* @param id -
|
|
12
13
|
* @param i -
|