@thi.ng/random 3.3.6 → 3.3.8
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/README.md +7 -7
- package/package.json +9 -9
- package/pick-random.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/random)
|
|
6
6
|

|
|
@@ -12,9 +12,9 @@ This project is part of the
|
|
|
12
12
|
- [About](#about)
|
|
13
13
|
- [Random distributions](#random-distributions)
|
|
14
14
|
- [Other utilities](#other-utilities)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
- [Status](#status)
|
|
16
|
+
- [Support packages](#support-packages)
|
|
17
|
+
- [Related packages](#related-packages)
|
|
18
18
|
- [Installation](#installation)
|
|
19
19
|
- [Dependencies](#dependencies)
|
|
20
20
|
- [Usage examples](#usage-examples)
|
|
@@ -59,17 +59,17 @@ Partially ported from C implementations taken from [c.thi.ng](http://c.thi.ng).
|
|
|
59
59
|
- [`uniqueIndices()` / `uniqueValuesFrom()`](https://github.com/thi-ng/umbrella/tree/develop/packages/random/src/unique-indices.ts)
|
|
60
60
|
- [`uuidv4Bytes()` / `uuid()`](https://github.com/thi-ng/umbrella/tree/develop/packages/random/src/uuid.ts)
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
## Status
|
|
63
63
|
|
|
64
64
|
**STABLE** - used in production
|
|
65
65
|
|
|
66
66
|
[Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Brandom%5D+in%3Atitle)
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
## Support packages
|
|
69
69
|
|
|
70
70
|
- [@thi.ng/random-fxhash](https://github.com/thi-ng/umbrella/tree/develop/packages/random-fxhash) - [@thi.ng/random](https://github.com/thi-ng/umbrella/tree/develop/packages/random) compatible wrapper & utilities for fxhash's PRNG
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
## Related packages
|
|
73
73
|
|
|
74
74
|
- [@thi.ng/ksuid](https://github.com/thi-ng/umbrella/tree/develop/packages/ksuid) - Configurable K-sortable unique IDs, ULIDs, binary & base-N encoded, 32/48/64bit time resolutions
|
|
75
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/random",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.4.
|
|
38
|
-
"@thi.ng/checks": "^3.2.
|
|
39
|
-
"@thi.ng/errors": "^2.
|
|
40
|
-
"@thi.ng/hex": "^2.
|
|
37
|
+
"@thi.ng/api": "^8.4.2",
|
|
38
|
+
"@thi.ng/checks": "^3.2.5",
|
|
39
|
+
"@thi.ng/errors": "^2.2.0",
|
|
40
|
+
"@thi.ng/hex": "^2.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.
|
|
44
|
-
"@thi.ng/testament": "^0.
|
|
43
|
+
"@microsoft/api-extractor": "^7.31.1",
|
|
44
|
+
"@thi.ng/testament": "^0.3.0",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
47
|
"typedoc": "^0.22.17",
|
|
48
|
-
"typescript": "^4.
|
|
48
|
+
"typescript": "^4.8.3"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"binary",
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
"ksuid"
|
|
157
157
|
]
|
|
158
158
|
},
|
|
159
|
-
"gitHead": "
|
|
159
|
+
"gitHead": "973139c5aa3b50081020f4cc726a7cc330f77fc7\n"
|
|
160
160
|
}
|
package/pick-random.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export declare const pickRandom: <T>(src: ArrayLike<T>, rnd?: IRandom, start?: n
|
|
|
16
16
|
* @param obj
|
|
17
17
|
* @param rnd
|
|
18
18
|
*/
|
|
19
|
-
export declare const pickRandomKey: <T>(obj: T, rnd?: IRandom) => keyof T;
|
|
19
|
+
export declare const pickRandomKey: <T extends object>(obj: T, rnd?: IRandom) => keyof T;
|
|
20
20
|
//# sourceMappingURL=pick-random.d.ts.map
|