@valkyriestudios/utils 11.1.0 → 11.3.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.
- package/{dist/array → array}/dedupe.d.ts +1 -1
- package/{dist/function → function}/noopresolve.d.ts +1 -1
- package/{dist/function → function}/noopreturn.d.ts +1 -1
- package/{dist/index.d.ts → index.d.ts} +3 -3
- package/package.json +1 -114
- package/tsconfig.types.json +0 -12
- package/tsconfig.types_all.json +0 -12
- /package/{dist/array → array}/dedupe.js +0 -0
- /package/{dist/array → array}/is.d.ts +0 -0
- /package/{dist/array → array}/is.js +0 -0
- /package/{dist/array → array}/isNotEmpty.d.ts +0 -0
- /package/{dist/array → array}/isNotEmpty.js +0 -0
- /package/{dist/array → array}/join.d.ts +0 -0
- /package/{dist/array → array}/join.js +0 -0
- /package/{dist/array → array}/mapFn.d.ts +0 -0
- /package/{dist/array → array}/mapFn.js +0 -0
- /package/{dist/array → array}/mapKey.d.ts +0 -0
- /package/{dist/array → array}/mapKey.js +0 -0
- /package/{dist/array → array}/mapPrimitive.d.ts +0 -0
- /package/{dist/array → array}/mapPrimitive.js +0 -0
- /package/{dist/array → array}/shuffle.d.ts +0 -0
- /package/{dist/array → array}/shuffle.js +0 -0
- /package/{dist/array → array}/sort.d.ts +0 -0
- /package/{dist/array → array}/sort.js +0 -0
- /package/{dist/boolean → boolean}/is.d.ts +0 -0
- /package/{dist/boolean → boolean}/is.js +0 -0
- /package/{dist/caching → caching}/memoize.d.ts +0 -0
- /package/{dist/caching → caching}/memoize.js +0 -0
- /package/{dist/date → date}/addUTC.d.ts +0 -0
- /package/{dist/date → date}/addUTC.js +0 -0
- /package/{dist/date → date}/diff.d.ts +0 -0
- /package/{dist/date → date}/diff.js +0 -0
- /package/{dist/date → date}/endOfUTC.d.ts +0 -0
- /package/{dist/date → date}/endOfUTC.js +0 -0
- /package/{dist/date → date}/is.d.ts +0 -0
- /package/{dist/date → date}/is.js +0 -0
- /package/{dist/date → date}/nowUnix.d.ts +0 -0
- /package/{dist/date → date}/nowUnix.js +0 -0
- /package/{dist/date → date}/nowUnixMs.d.ts +0 -0
- /package/{dist/date → date}/nowUnixMs.js +0 -0
- /package/{dist/date → date}/startOfUTC.d.ts +0 -0
- /package/{dist/date → date}/startOfUTC.js +0 -0
- /package/{dist/date → date}/toUTC.d.ts +0 -0
- /package/{dist/date → date}/toUTC.js +0 -0
- /package/{dist/date → date}/toUnix.d.ts +0 -0
- /package/{dist/date → date}/toUnix.js +0 -0
- /package/{dist/deep → deep}/freeze.d.ts +0 -0
- /package/{dist/deep → deep}/freeze.js +0 -0
- /package/{dist/deep → deep}/get.d.ts +0 -0
- /package/{dist/deep → deep}/get.js +0 -0
- /package/{dist/deep → deep}/seal.d.ts +0 -0
- /package/{dist/deep → deep}/seal.js +0 -0
- /package/{dist/deep → deep}/set.d.ts +0 -0
- /package/{dist/deep → deep}/set.js +0 -0
- /package/{dist/equal.d.ts → equal.d.ts} +0 -0
- /package/{dist/equal.js → equal.js} +0 -0
- /package/{dist/function → function}/is.d.ts +0 -0
- /package/{dist/function → function}/is.js +0 -0
- /package/{dist/function → function}/noop.d.ts +0 -0
- /package/{dist/function → function}/noop.js +0 -0
- /package/{dist/function → function}/noopresolve.js +0 -0
- /package/{dist/function → function}/noopreturn.js +0 -0
- /package/{dist/function → function}/sleep.d.ts +0 -0
- /package/{dist/function → function}/sleep.js +0 -0
- /package/{dist/hash → hash}/fnv1A.d.ts +0 -0
- /package/{dist/hash → hash}/fnv1A.js +0 -0
- /package/{dist/hash → hash}/guid.d.ts +0 -0
- /package/{dist/hash → hash}/guid.js +0 -0
- /package/{dist/is.d.ts → is.d.ts} +0 -0
- /package/{dist/is.js → is.js} +0 -0
- /package/{dist/number → number}/is.d.ts +0 -0
- /package/{dist/number → number}/is.js +0 -0
- /package/{dist/number → number}/isAbove.d.ts +0 -0
- /package/{dist/number → number}/isAbove.js +0 -0
- /package/{dist/number → number}/isAboveOrEqual.d.ts +0 -0
- /package/{dist/number → number}/isAboveOrEqual.js +0 -0
- /package/{dist/number → number}/isBelow.d.ts +0 -0
- /package/{dist/number → number}/isBelow.js +0 -0
- /package/{dist/number → number}/isBelowOrEqual.d.ts +0 -0
- /package/{dist/number → number}/isBelowOrEqual.js +0 -0
- /package/{dist/number → number}/isBetween.d.ts +0 -0
- /package/{dist/number → number}/isBetween.js +0 -0
- /package/{dist/number → number}/isInteger.d.ts +0 -0
- /package/{dist/number → number}/isInteger.js +0 -0
- /package/{dist/number → number}/isIntegerAbove.d.ts +0 -0
- /package/{dist/number → number}/isIntegerAbove.js +0 -0
- /package/{dist/number → number}/isIntegerAboveOrEqual.d.ts +0 -0
- /package/{dist/number → number}/isIntegerAboveOrEqual.js +0 -0
- /package/{dist/number → number}/isIntegerBelow.d.ts +0 -0
- /package/{dist/number → number}/isIntegerBelow.js +0 -0
- /package/{dist/number → number}/isIntegerBelowOrEqual.d.ts +0 -0
- /package/{dist/number → number}/isIntegerBelowOrEqual.js +0 -0
- /package/{dist/number → number}/isIntegerBetween.d.ts +0 -0
- /package/{dist/number → number}/isIntegerBetween.js +0 -0
- /package/{dist/number → number}/isNumericalNaN.d.ts +0 -0
- /package/{dist/number → number}/isNumericalNaN.js +0 -0
- /package/{dist/number → number}/randomBetween.d.ts +0 -0
- /package/{dist/number → number}/randomBetween.js +0 -0
- /package/{dist/number → number}/randomIntBetween.d.ts +0 -0
- /package/{dist/number → number}/randomIntBetween.js +0 -0
- /package/{dist/number → number}/round.d.ts +0 -0
- /package/{dist/number → number}/round.js +0 -0
- /package/{dist/number → number}/toPercentage.d.ts +0 -0
- /package/{dist/number → number}/toPercentage.js +0 -0
- /package/{dist/object → object}/define.d.ts +0 -0
- /package/{dist/object → object}/define.js +0 -0
- /package/{dist/object → object}/is.d.ts +0 -0
- /package/{dist/object → object}/is.js +0 -0
- /package/{dist/object → object}/isNotEmpty.d.ts +0 -0
- /package/{dist/object → object}/isNotEmpty.js +0 -0
- /package/{dist/object → object}/merge.d.ts +0 -0
- /package/{dist/object → object}/merge.js +0 -0
- /package/{dist/object → object}/pick.d.ts +0 -0
- /package/{dist/object → object}/pick.js +0 -0
- /package/{dist/regexp → regexp}/is.d.ts +0 -0
- /package/{dist/regexp → regexp}/is.js +0 -0
- /package/{dist/regexp → regexp}/sanitize.d.ts +0 -0
- /package/{dist/regexp → regexp}/sanitize.js +0 -0
- /package/{dist/string → string}/humanizeBytes.d.ts +0 -0
- /package/{dist/string → string}/humanizeBytes.js +0 -0
- /package/{dist/string → string}/humanizeNumber.d.ts +0 -0
- /package/{dist/string → string}/humanizeNumber.js +0 -0
- /package/{dist/string → string}/is.d.ts +0 -0
- /package/{dist/string → string}/is.js +0 -0
- /package/{dist/string → string}/isBetween.d.ts +0 -0
- /package/{dist/string → string}/isBetween.js +0 -0
- /package/{dist/string → string}/isNotEmpty.d.ts +0 -0
- /package/{dist/string → string}/isNotEmpty.js +0 -0
- /package/{dist/string → string}/shorten.d.ts +0 -0
- /package/{dist/string → string}/shorten.js +0 -0
|
@@ -155,7 +155,7 @@ declare module "hash/fnv1A" {
|
|
|
155
155
|
export default function fnv1A(data: any, offset?: number): number;
|
|
156
156
|
}
|
|
157
157
|
declare module "array/dedupe" {
|
|
158
|
-
export default function dedupe(val:
|
|
158
|
+
export default function dedupe<T>(val: T[]): T[];
|
|
159
159
|
}
|
|
160
160
|
declare module "number/round" {
|
|
161
161
|
export default function round(val: number, precision?: number): number;
|
|
@@ -284,10 +284,10 @@ declare module "function/noop" {
|
|
|
284
284
|
export default function noop(): void;
|
|
285
285
|
}
|
|
286
286
|
declare module "function/noopresolve" {
|
|
287
|
-
export default function noopresolve(val?:
|
|
287
|
+
export default function noopresolve<T>(val?: T): Promise<T>;
|
|
288
288
|
}
|
|
289
289
|
declare module "function/noopreturn" {
|
|
290
|
-
export default function noopreturn(val?:
|
|
290
|
+
export default function noopreturn<T>(val?: T): T;
|
|
291
291
|
}
|
|
292
292
|
declare module "function/sleep" {
|
|
293
293
|
export default function sleep(ms?: number): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,114 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@valkyriestudios/utils",
|
|
3
|
-
"version": "11.1.0",
|
|
4
|
-
"description": "A collection of single-function utilities for common tasks",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Peter Vermeulen",
|
|
7
|
-
"email": "contact@valkyriestudios.be",
|
|
8
|
-
"url": "www.valkyriestudios.be"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"utility",
|
|
12
|
-
"library",
|
|
13
|
-
"javascript",
|
|
14
|
-
"js",
|
|
15
|
-
"node",
|
|
16
|
-
"bun"
|
|
17
|
-
],
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "npm run lint && npm run test && tsc -p ./tsconfig.build.json && tsc -p ./tsconfig.types.json && tsc -p ./tsconfig.types_all.json",
|
|
22
|
-
"test": "node --require esbuild-register --test ./test/lib/**/*.ts ./test/lib/*.ts",
|
|
23
|
-
"test:only": "node --require esbuild-register --test --test-only ./test/lib/**/*.ts ./test/lib/*.ts",
|
|
24
|
-
"test:coverage": "nyc npm run test",
|
|
25
|
-
"lint": "npm run lint:src && npm run lint:test",
|
|
26
|
-
"lint:src": "./node_modules/.bin/eslint --ext .js,.ts,.mjs ./lib",
|
|
27
|
-
"lint:test": "./node_modules/.bin/eslint --ext .js,.ts,.mjs ./test",
|
|
28
|
-
"codecov": "codecov",
|
|
29
|
-
"benchmark": "node --require esbuild-register ./test/benchmark.ts"
|
|
30
|
-
},
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/ValkyrieStudios/utils.git"
|
|
34
|
-
},
|
|
35
|
-
"bugs": {
|
|
36
|
-
"url": "https://github.com/ValkyrieStudios/utils/issues"
|
|
37
|
-
},
|
|
38
|
-
"homepage": "https://github.com/ValkyrieStudios/utils#readme",
|
|
39
|
-
"exports": {
|
|
40
|
-
"./is": "./dist/is.js",
|
|
41
|
-
"./equal": "./dist/equal.js",
|
|
42
|
-
"./array/dedupe": "./dist/array/dedupe.js",
|
|
43
|
-
"./array/is": "./dist/array/is.js",
|
|
44
|
-
"./array/isNotEmpty": "./dist/array/isNotEmpty.js",
|
|
45
|
-
"./array/join": "./dist/array/join.js",
|
|
46
|
-
"./array/mapFn": "./dist/array/mapFn.js",
|
|
47
|
-
"./array/mapKey": "./dist/array/mapKey.js",
|
|
48
|
-
"./array/mapPrimitive": "./dist/array/mapPrimitive.js",
|
|
49
|
-
"./array/shuffle": "./dist/array/shuffle.js",
|
|
50
|
-
"./array/sort": "./dist/array/sort.js",
|
|
51
|
-
"./boolean/is": "./dist/boolean/is.js",
|
|
52
|
-
"./caching/memoize": "./dist/caching/memoize.js",
|
|
53
|
-
"./date/addUTC": "./dist/date/addUTC.js",
|
|
54
|
-
"./date/diff": "./dist/date/diff.js",
|
|
55
|
-
"./date/endOfUTC": "./dist/date/endOfUTC.js",
|
|
56
|
-
"./date/is": "./dist/date/is.js",
|
|
57
|
-
"./date/nowUnix": "./dist/date/nowUnix.js",
|
|
58
|
-
"./date/nowUnixMs": "./dist/date/nowUnixMs.js",
|
|
59
|
-
"./date/startOfUTC": "./dist/date/startOfUTC.js",
|
|
60
|
-
"./date/toUnix": "./dist/date/toUnix.js",
|
|
61
|
-
"./date/toUTC": "./dist/date/toUTC.js",
|
|
62
|
-
"./deep/define": "./dist/deep/define.js",
|
|
63
|
-
"./deep/freeze": "./dist/deep/freeze.js",
|
|
64
|
-
"./deep/get": "./dist/deep/get.js",
|
|
65
|
-
"./deep/seal": "./dist/deep/seal.js",
|
|
66
|
-
"./deep/set": "./dist/deep/set.js",
|
|
67
|
-
"./function/is": "./dist/function/is.js",
|
|
68
|
-
"./function/noop": "./dist/function/noop.js",
|
|
69
|
-
"./function/noopresolve": "./dist/function/noopresolve.js",
|
|
70
|
-
"./function/noopreturn": "./dist/function/noopreturn.js",
|
|
71
|
-
"./function/sleep": "./dist/function/sleep.js",
|
|
72
|
-
"./hash/fnv1A": "./dist/hash/fnv1A.js",
|
|
73
|
-
"./hash/guid": "./dist/hash/guid.js",
|
|
74
|
-
"./number/isAbove": "./dist/number/isAbove.js",
|
|
75
|
-
"./number/isAboveOrEqual": "./dist/number/isAboveOrEqual.js",
|
|
76
|
-
"./number/isBelow": "./dist/number/isBelow.js",
|
|
77
|
-
"./number/isBelowOrEqual": "./dist/number/isBelowOrEqual.js",
|
|
78
|
-
"./number/isBetween": "./dist/number/isBetween.js",
|
|
79
|
-
"./number/isIntegerAbove": "./dist/number/isIntegerAbove.js",
|
|
80
|
-
"./number/isIntegerAboveOrEqual": "./dist/number/isIntegerAboveOrEqual.js",
|
|
81
|
-
"./number/isIntegerBelow": "./dist/number/isIntegerBelow.js",
|
|
82
|
-
"./number/isIntegerBelowOrEqual": "./dist/number/isIntegerBelowOrEqual.js",
|
|
83
|
-
"./number/isIntegerBetween": "./dist/number/isIntegerBetween.js",
|
|
84
|
-
"./number/isInteger": "./dist/number/isInteger.js",
|
|
85
|
-
"./number/is": "./dist/number/is.js",
|
|
86
|
-
"./number/isNumericalNaN": "./dist/number/isNumericalNaN.js",
|
|
87
|
-
"./number/randomBetween": "./dist/number/randomBetween.js",
|
|
88
|
-
"./number/randomIntBetween": "./dist/number/randomIntBetween.js",
|
|
89
|
-
"./number/round": "./dist/number/round.js",
|
|
90
|
-
"./number/toPercentage": "./dist/number/toPercentage.js",
|
|
91
|
-
"./object/define": "./dist/object/define.js",
|
|
92
|
-
"./object/is": "./dist/object/is.js",
|
|
93
|
-
"./object/isNotEmpty": "./dist/object/isNotEmpty.js",
|
|
94
|
-
"./object/merge": "./dist/object/merge.js",
|
|
95
|
-
"./object/pick": "./dist/object/pick.js",
|
|
96
|
-
"./regexp/is": "./dist/regexp/is.js",
|
|
97
|
-
"./regexp/sanitize": "./dist/regexp/sanitize.js",
|
|
98
|
-
"./string/humanizeBytes": "./dist/string/humanizeBytes.js",
|
|
99
|
-
"./string/humanizeNumber": "./dist/string/humanizeNumber.js",
|
|
100
|
-
"./string/isBetween": "./dist/string/isBetween.js",
|
|
101
|
-
"./string/is": "./dist/string/is.js",
|
|
102
|
-
"./string/isNotEmpty": "./dist/string/isNotEmpty.js",
|
|
103
|
-
"./string/shorten": "./dist/string/shorten.js"
|
|
104
|
-
},
|
|
105
|
-
"devDependencies": {
|
|
106
|
-
"@types/node": "^20.11.16",
|
|
107
|
-
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
108
|
-
"@typescript-eslint/parser": "^6.21.0",
|
|
109
|
-
"esbuild-register": "^3.5.0",
|
|
110
|
-
"eslint": "^8.56.0",
|
|
111
|
-
"nyc": "^15.1.0",
|
|
112
|
-
"typescript": "^5.3.3"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
1
|
+
{ "name": "@valkyriestudios/utils", "version": "11.3.0", "description": "A collection of single-function utilities for common tasks", "author": { "name": "Peter Vermeulen", "email": "contact@valkyriestudios.be", "url": "www.valkyriestudios.be" }, "keywords": [ "utility", "library", "javascript", "js", "node", "bun" ], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ValkyrieStudios/utils.git" }, "bugs": { "url": "https://github.com/ValkyrieStudios/utils/issues" }, "homepage": "https://github.com/ValkyrieStudios/utils#readme", "types": "index.d.ts" }
|
package/tsconfig.types.json
DELETED
package/tsconfig.types_all.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/is.js → is.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|