@hypernym/utils 0.3.0 → 0.3.1
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/utils.d.ts +1 -5
- package/dist/utils.mjs +1 -2
- package/package.json +8 -7
package/dist/utils.d.ts
CHANGED
|
@@ -171,13 +171,9 @@ type RequiredObjectDeep<T extends object, Options extends OptionsDeep = {
|
|
|
171
171
|
[K in keyof T]-?: RequiredDeep<T[K], Options>;
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
/**
|
|
175
|
-
* Returns a high resolution timestamp in milliseconds using the `performance.now()` method.
|
|
176
|
-
*/
|
|
177
|
-
declare const now: number;
|
|
178
174
|
/**
|
|
179
175
|
* An empty arrow function that performs no operation.
|
|
180
176
|
*/
|
|
181
177
|
declare const noop: () => void;
|
|
182
178
|
|
|
183
|
-
export { BuiltIn, IsAny, IsNever, IsNull, PartialDeep, Primitive, RequiredDeep, isArray, isArrayEmpty, isBigint, isBoolean, isClient, isDate, isElement, isError, isFunction, isHtmlCollection, isHtmlCollectionEmpty, isInfinity, isMap, isNaNValue, isNodeList, isNodeListEmpty, isNull, isNumber, isObject, isObjectEmpty, isPrimitive, isRegExp, isSet, isString, isStringEmpty, isSymbol, isURL, isUndefined, noop
|
|
179
|
+
export { BuiltIn, IsAny, IsNever, IsNull, PartialDeep, Primitive, RequiredDeep, isArray, isArrayEmpty, isBigint, isBoolean, isClient, isDate, isElement, isError, isFunction, isHtmlCollection, isHtmlCollectionEmpty, isInfinity, isMap, isNaNValue, isNodeList, isNodeListEmpty, isNull, isNumber, isObject, isObjectEmpty, isPrimitive, isRegExp, isSet, isString, isStringEmpty, isSymbol, isURL, isUndefined, noop };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const now = performance.now();
|
|
2
1
|
const noop = () => {
|
|
3
2
|
};
|
|
4
3
|
|
|
@@ -32,4 +31,4 @@ const isNodeListEmpty = (v) => isNodeList(v) && v.length === 0;
|
|
|
32
31
|
const isHtmlCollection = (v) => v instanceof HTMLCollection;
|
|
33
32
|
const isHtmlCollectionEmpty = (v) => isHtmlCollection(v) && v.length === 0;
|
|
34
33
|
|
|
35
|
-
export { isArray, isArrayEmpty, isBigint, isBoolean, isClient, isDate, isElement, isError, isFunction, isHtmlCollection, isHtmlCollectionEmpty, isInfinity, isMap, isNaNValue, isNodeList, isNodeListEmpty, isNull, isNumber, isObject, isObjectEmpty, isPrimitive, isRegExp, isSet, isString, isStringEmpty, isSymbol, isURL, isUndefined, noop
|
|
34
|
+
export { isArray, isArrayEmpty, isBigint, isBoolean, isClient, isDate, isElement, isError, isFunction, isHtmlCollection, isHtmlCollectionEmpty, isInfinity, isMap, isNaNValue, isNodeList, isNodeListEmpty, isNull, isNumber, isObject, isObjectEmpty, isPrimitive, isRegExp, isSet, isString, isStringEmpty, isSymbol, isURL, isUndefined, noop };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypernym/utils",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"author": "Hypernym Studio",
|
|
5
5
|
"description": "A collection of reusable utilities.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"dev": "vite playgrounds/client",
|
|
32
32
|
"dev:node": "vite-node -w playgrounds/node/main.ts",
|
|
33
33
|
"build": "rollup -c",
|
|
34
|
+
"test:types": "vitest typecheck",
|
|
34
35
|
"prepublishOnly": "npm run build",
|
|
35
36
|
"format": "prettier --write .",
|
|
36
37
|
"lint": "eslint .",
|
|
@@ -38,18 +39,18 @@
|
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@types/node": "^20.2.5",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
42
|
-
"@typescript-eslint/parser": "^5.59.
|
|
43
|
-
"eslint": "^8.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
43
|
+
"@typescript-eslint/parser": "^5.59.9",
|
|
44
|
+
"eslint": "^8.42.0",
|
|
44
45
|
"eslint-config-prettier": "^8.8.0",
|
|
45
|
-
"expect-type": "^0.16.0",
|
|
46
46
|
"prettier": "^2.8.8",
|
|
47
|
-
"rollup": "^3.
|
|
47
|
+
"rollup": "^3.24.0",
|
|
48
48
|
"rollup-plugin-dts": "^5.3.0",
|
|
49
49
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
50
50
|
"typescript": "^5.0.4",
|
|
51
51
|
"vite": "^4.3.9",
|
|
52
|
-
"vite-node": "^0.
|
|
52
|
+
"vite-node": "^0.32.0",
|
|
53
|
+
"vitest": "^0.32.0"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"access": "public"
|