@augment-vir/common 31.73.0 → 31.73.2
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.
|
@@ -9,6 +9,6 @@ import { type PartialDeep } from 'type-fest';
|
|
|
9
9
|
* @category Package : @augment-vir/common
|
|
10
10
|
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
11
11
|
*/
|
|
12
|
-
export declare function mergeDeep<const T extends object>(...inputs: (Readonly<T> | Readonly<PartialDeep<T
|
|
12
|
+
export declare function mergeDeep<const T extends object>(...inputs: (Readonly<T> | Readonly<PartialDeep<NoInfer<T>, {
|
|
13
13
|
recurseIntoArrays: true;
|
|
14
|
-
}>> | Readonly<Partial<T
|
|
14
|
+
}>> | Readonly<Partial<NoInfer<T>>>)[]): T;
|
|
@@ -97,7 +97,7 @@ class AleaRandom {
|
|
|
97
97
|
for (let i = 0; i < data.length; i++) {
|
|
98
98
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
99
99
|
this.n += data.codePointAt(i);
|
|
100
|
-
let h = 0.
|
|
100
|
+
let h = 0.02519603282416938 * this.n;
|
|
101
101
|
this.n = h >>> 0;
|
|
102
102
|
h -= this.n;
|
|
103
103
|
h *= this.n;
|
|
@@ -105,7 +105,7 @@ class AleaRandom {
|
|
|
105
105
|
h -= this.n;
|
|
106
106
|
this.n += h * 0x1_00_00_00_00; // 2^32
|
|
107
107
|
}
|
|
108
|
-
return (this.n >>> 0) * 2.
|
|
108
|
+
return (this.n >>> 0) * 2.3283064365386963e-10; // 2^-32
|
|
109
109
|
}
|
|
110
110
|
constructor(seed) {
|
|
111
111
|
this.s[0] -= this.mash(seed);
|
|
@@ -123,7 +123,7 @@ class AleaRandom {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
next() {
|
|
126
|
-
const t = 2_091_639 * this.s[0] + this.s[3] * 2.
|
|
126
|
+
const t = 2_091_639 * this.s[0] + this.s[3] * 2.3283064365386963e-10; // 2^-32
|
|
127
127
|
this.s[0] = this.s[1];
|
|
128
128
|
this.s[1] = this.s[2];
|
|
129
129
|
// eslint-disable-next-line sonarjs/no-nested-assignment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/common",
|
|
3
|
-
"version": "31.73.
|
|
3
|
+
"version": "31.73.2",
|
|
4
4
|
"description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augment",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"test:web": "virmator --no-deps test web"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@augment-vir/assert": "^31.73.
|
|
44
|
-
"@augment-vir/core": "^31.73.
|
|
45
|
-
"@date-vir/duration": "^8.
|
|
43
|
+
"@augment-vir/assert": "^31.73.2",
|
|
44
|
+
"@augment-vir/core": "^31.73.2",
|
|
45
|
+
"@date-vir/duration": "^8.5.0",
|
|
46
46
|
"@paralleldrive/cuid2": "^3.3.0",
|
|
47
47
|
"ansi-styles": "^6.2.3",
|
|
48
|
-
"deepcopy-esm": "^2.1.
|
|
48
|
+
"deepcopy-esm": "^2.1.2",
|
|
49
49
|
"json5": "^2.2.3",
|
|
50
|
-
"type-fest": "^5.
|
|
51
|
-
"typed-event-target": "^4.3.
|
|
50
|
+
"type-fest": "^5.7.0",
|
|
51
|
+
"typed-event-target": "^4.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@web/dev-server-esbuild": "^1.0.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"execute-in-browser": "^1.0.9",
|
|
58
58
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
59
59
|
"runstorm": "^1.0.2",
|
|
60
|
-
"typescript": "^
|
|
60
|
+
"typescript": "^6.0.3"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=22"
|