@hypernym/utils 2.0.0 → 2.0.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.
- package/README.md +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +14 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A collection of reusable utilities.
|
|
|
5
5
|
<sub><a href="https://github.com/hypernym-studio/utils">Repository</a> | <a href="https://www.npmjs.com/package/@hypernym/utils">Package</a> | <a href="https://github.com/hypernym-studio/utils/releases">Releases</a> | <a href="https://github.com/hypernym-studio/utils/discussions">Discussions</a></sub>
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm i
|
|
8
|
+
npm i @hypernym/utils
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Features
|
package/dist/types/index.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ type PartialOptions = {
|
|
|
157
157
|
*/
|
|
158
158
|
type PartialDeep<T, Options extends PartialOptions = {
|
|
159
159
|
arrays: true;
|
|
160
|
-
}> = T extends BuiltIn ? T | undefined : T extends Map<infer K, infer V> ? Map<PartialDeep<K, Options>, PartialDeep<V, Options>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<PartialDeep<K, Options>, PartialDeep<V, Options>> : T extends WeakMap<infer K, infer V> ? WeakMap<
|
|
160
|
+
}> = T extends BuiltIn ? T | undefined : T extends Map<infer K, infer V> ? Map<PartialDeep<K, Options>, PartialDeep<V, Options>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<PartialDeep<K, Options>, PartialDeep<V, Options>> : T extends WeakMap<infer K, infer V> ? WeakMap<Partial<K>, PartialDeep<V, Options>> : T extends Set<infer V> ? Set<PartialDeep<V, Options>> : T extends ReadonlySet<infer V> ? ReadonlySet<PartialDeep<V, Options>> : T extends WeakSet<infer V> ? WeakSet<Partial<V>> : T extends Promise<infer V> ? Promise<PartialDeep<V, Options>> : T extends (...args: any[]) => unknown ? T | undefined : T extends object ? T extends ReadonlyArray<infer V> ? Options['arrays'] extends true ? V[] extends T ? readonly V[] extends T ? ReadonlyArray<PartialDeep<V, Options>> : Array<PartialDeep<V, Options>> : PartialObjectDeep<T, Options> : T | undefined : PartialObjectDeep<T, Options> : unknown;
|
|
161
161
|
type PartialObjectDeep<T extends object, Options extends PartialOptions = {
|
|
162
162
|
arrays: true;
|
|
163
163
|
}> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypernym/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"author": "Hypernym Studio",
|
|
5
5
|
"description": "A collection of reusable utilities.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,37 +22,36 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"keywords": [
|
|
25
|
+
"javascript",
|
|
25
26
|
"typescript",
|
|
26
27
|
"collection",
|
|
27
28
|
"utilities",
|
|
28
29
|
"helpers",
|
|
29
30
|
"utils",
|
|
30
31
|
"types",
|
|
31
|
-
"kit"
|
|
32
|
+
"kit",
|
|
33
|
+
"js",
|
|
34
|
+
"ts"
|
|
32
35
|
],
|
|
33
36
|
"scripts": {
|
|
34
37
|
"dev": "vite playgrounds/client",
|
|
35
38
|
"dev:node": "vite-node -w playgrounds/node/main.ts",
|
|
36
39
|
"build": "rolli",
|
|
37
|
-
"
|
|
38
|
-
"test:types": "vitest -c ./.config/vitest.config.ts typecheck",
|
|
40
|
+
"test:types": "vitest -c .config/vitest.config.ts typecheck",
|
|
39
41
|
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c .config/eslint.config.js .",
|
|
40
42
|
"lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint -c .config/eslint.config.js --fix .",
|
|
41
43
|
"format": "prettier --config .config/prettier.config.js --write .",
|
|
42
44
|
"prepublishOnly": "npm run build"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
|
-
"@hypernym/eslint-config": "^2.0.
|
|
46
|
-
"@hypernym/prettier-config": "^2.0.
|
|
47
|
-
"@hypernym/tsconfig": "^1.0
|
|
48
|
-
"@types/node": "^20.
|
|
49
|
-
"
|
|
50
|
-
"eslint": "^8.49.0",
|
|
47
|
+
"@hypernym/eslint-config": "^2.0.1",
|
|
48
|
+
"@hypernym/prettier-config": "^2.0.1",
|
|
49
|
+
"@hypernym/tsconfig": "^1.1.0",
|
|
50
|
+
"@types/node": "^20.8.2",
|
|
51
|
+
"eslint": "^8.50.0",
|
|
51
52
|
"prettier": "^3.0.3",
|
|
52
|
-
"rolli": "^0.
|
|
53
|
-
"typescript": "^5.
|
|
54
|
-
"
|
|
55
|
-
"vite-node": "^0.34.4",
|
|
56
|
-
"vitest": "^0.34.4"
|
|
53
|
+
"rolli": "^0.7.0",
|
|
54
|
+
"typescript": "^5.2.2",
|
|
55
|
+
"vitest": "^0.34.6"
|
|
57
56
|
}
|
|
58
57
|
}
|