@thi.ng/checks 3.6.4 → 3.6.5
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 +77 -1
- package/is-generator.d.ts +1 -1
- package/is-proto-path.d.ts +4 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 193 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -26,6 +26,82 @@
|
|
|
26
26
|
|
|
27
27
|
Collection of 70+ type, feature & value checks.
|
|
28
28
|
|
|
29
|
+
- [`exists`](https://docs.thi.ng/umbrella/checks/functions/exists.html)
|
|
30
|
+
- [`existsAndNotNull`](https://docs.thi.ng/umbrella/checks/functions/existsAndNotNull.html)
|
|
31
|
+
- [`hasBigInt`](https://docs.thi.ng/umbrella/checks/functions/hasBigInt.html)
|
|
32
|
+
- [`hasCrypto`](https://docs.thi.ng/umbrella/checks/functions/hasCrypto.html)
|
|
33
|
+
- [`hasMaxLength`](https://docs.thi.ng/umbrella/checks/functions/hasMaxLength.html)
|
|
34
|
+
- [`hasMinLength`](https://docs.thi.ng/umbrella/checks/functions/hasMinLength.html)
|
|
35
|
+
- [`hasPerformance`](https://docs.thi.ng/umbrella/checks/functions/hasPerformance.html)
|
|
36
|
+
- [`hasWASM`](https://docs.thi.ng/umbrella/checks/functions/hasWASM.html)
|
|
37
|
+
- [`hasWebGL`](https://docs.thi.ng/umbrella/checks/functions/hasWebGL.html)
|
|
38
|
+
- [`hasWebSocket`](https://docs.thi.ng/umbrella/checks/functions/hasWebSocket.html)
|
|
39
|
+
- [`implementsFunction`](https://docs.thi.ng/umbrella/checks/functions/implementsFunction.html)
|
|
40
|
+
- [`isASCII`](https://docs.thi.ng/umbrella/checks/functions/isASCII.html)
|
|
41
|
+
- [`isAlpha`](https://docs.thi.ng/umbrella/checks/functions/isAlpha.html)
|
|
42
|
+
- [`isAlphaNum`](https://docs.thi.ng/umbrella/checks/functions/isAlphaNum.html)
|
|
43
|
+
- [`isArray`](https://docs.thi.ng/umbrella/checks/functions/isArray.html)
|
|
44
|
+
- [`isArrayBufferLike`](https://docs.thi.ng/umbrella/checks/functions/isArrayBufferLike.html)
|
|
45
|
+
- [`isArrayBufferView`](https://docs.thi.ng/umbrella/checks/functions/isArrayBufferView.html)
|
|
46
|
+
- [`isArrayLike`](https://docs.thi.ng/umbrella/checks/functions/isArrayLike.html)
|
|
47
|
+
- [`isAsyncIterable`](https://docs.thi.ng/umbrella/checks/functions/isAsyncIterable.html)
|
|
48
|
+
- [`isBigInt`](https://docs.thi.ng/umbrella/checks/functions/isBigInt.html)
|
|
49
|
+
- [`isBlob`](https://docs.thi.ng/umbrella/checks/functions/isBlob.html)
|
|
50
|
+
- [`isBoolean`](https://docs.thi.ng/umbrella/checks/functions/isBoolean.html)
|
|
51
|
+
- [`isChrome`](https://docs.thi.ng/umbrella/checks/functions/isChrome.html)
|
|
52
|
+
- [`isDataURL`](https://docs.thi.ng/umbrella/checks/functions/isDataURL.html)
|
|
53
|
+
- [`isDate`](https://docs.thi.ng/umbrella/checks/functions/isDate.html)
|
|
54
|
+
- [`isEven`](https://docs.thi.ng/umbrella/checks/functions/isEven.html)
|
|
55
|
+
- [`isFalse`](https://docs.thi.ng/umbrella/checks/functions/isFalse.html)
|
|
56
|
+
- [`isFile`](https://docs.thi.ng/umbrella/checks/functions/isFile.html)
|
|
57
|
+
- [`isFirefox`](https://docs.thi.ng/umbrella/checks/functions/isFirefox.html)
|
|
58
|
+
- [`isFloatString`](https://docs.thi.ng/umbrella/checks/functions/isFloatString.html)
|
|
59
|
+
- [`isFunction`](https://docs.thi.ng/umbrella/checks/functions/isFunction.html)
|
|
60
|
+
- [`isGenerator`](https://docs.thi.ng/umbrella/checks/functions/isGenerator.html)
|
|
61
|
+
- [`isHex`](https://docs.thi.ng/umbrella/checks/functions/isHex.html)
|
|
62
|
+
- [`isHexColor`](https://docs.thi.ng/umbrella/checks/functions/isHexColor.html)
|
|
63
|
+
- [`isIE`](https://docs.thi.ng/umbrella/checks/functions/isIE.html)
|
|
64
|
+
- [`isIllegalKey`](https://docs.thi.ng/umbrella/checks/functions/isIllegalKey.html)
|
|
65
|
+
- [`isInRange`](https://docs.thi.ng/umbrella/checks/functions/isInRange.html)
|
|
66
|
+
- [`isInt32`](https://docs.thi.ng/umbrella/checks/functions/isInt32.html)
|
|
67
|
+
- [`isIntString`](https://docs.thi.ng/umbrella/checks/functions/isIntString.html)
|
|
68
|
+
- [`isIterable`](https://docs.thi.ng/umbrella/checks/functions/isIterable.html)
|
|
69
|
+
- [`isMap`](https://docs.thi.ng/umbrella/checks/functions/isMap.html)
|
|
70
|
+
- [`isMobile`](https://docs.thi.ng/umbrella/checks/functions/isMobile.html)
|
|
71
|
+
- [`isNaN`](https://docs.thi.ng/umbrella/checks/functions/isNaN.html)
|
|
72
|
+
- [`isNegative`](https://docs.thi.ng/umbrella/checks/functions/isNegative.html)
|
|
73
|
+
- [`isNil`](https://docs.thi.ng/umbrella/checks/functions/isNil.html)
|
|
74
|
+
- [`isNode`](https://docs.thi.ng/umbrella/checks/functions/isNode.html)
|
|
75
|
+
- [`isNotStringAndIterable`](https://docs.thi.ng/umbrella/checks/functions/isNotStringAndIterable.html)
|
|
76
|
+
- [`isNull`](https://docs.thi.ng/umbrella/checks/functions/isNull.html)
|
|
77
|
+
- [`isNumber`](https://docs.thi.ng/umbrella/checks/functions/isNumber.html)
|
|
78
|
+
- [`isNumeric`](https://docs.thi.ng/umbrella/checks/functions/isNumeric.html)
|
|
79
|
+
- [`isNumericFloat`](https://docs.thi.ng/umbrella/checks/functions/isNumericFloat.html)
|
|
80
|
+
- [`isNumericInt`](https://docs.thi.ng/umbrella/checks/functions/isNumericInt.html)
|
|
81
|
+
- [`isObject`](https://docs.thi.ng/umbrella/checks/functions/isObject.html)
|
|
82
|
+
- [`isOdd`](https://docs.thi.ng/umbrella/checks/functions/isOdd.html)
|
|
83
|
+
- [`isPlainObject`](https://docs.thi.ng/umbrella/checks/functions/isPlainObject.html)
|
|
84
|
+
- [`isPositive`](https://docs.thi.ng/umbrella/checks/functions/isPositive.html)
|
|
85
|
+
- [`isPrimitive`](https://docs.thi.ng/umbrella/checks/functions/isPrimitive.html)
|
|
86
|
+
- [`isPrintableASCII`](https://docs.thi.ng/umbrella/checks/functions/isPrintableASCII.html)
|
|
87
|
+
- [`isPromise`](https://docs.thi.ng/umbrella/checks/functions/isPromise.html)
|
|
88
|
+
- [`isPromiseLike`](https://docs.thi.ng/umbrella/checks/functions/isPromiseLike.html)
|
|
89
|
+
- [`isProtoPath`](https://docs.thi.ng/umbrella/checks/functions/isProtoPath.html)
|
|
90
|
+
- [`isRegExp`](https://docs.thi.ng/umbrella/checks/functions/isRegExp.html)
|
|
91
|
+
- [`isSafari`](https://docs.thi.ng/umbrella/checks/functions/isSafari.html)
|
|
92
|
+
- [`isSet`](https://docs.thi.ng/umbrella/checks/functions/isSet.html)
|
|
93
|
+
- [`isString`](https://docs.thi.ng/umbrella/checks/functions/isString.html)
|
|
94
|
+
- [`isSymbol`](https://docs.thi.ng/umbrella/checks/functions/isSymbol.html)
|
|
95
|
+
- [`isTouchEvent`](https://docs.thi.ng/umbrella/checks/functions/isTouchEvent.html)
|
|
96
|
+
- [`isTransferable`](https://docs.thi.ng/umbrella/checks/functions/isTransferable.html)
|
|
97
|
+
- [`isTrue`](https://docs.thi.ng/umbrella/checks/functions/isTrue.html)
|
|
98
|
+
- [`isTypedArray`](https://docs.thi.ng/umbrella/checks/functions/isTypedArray.html)
|
|
99
|
+
- [`isUUID`](https://docs.thi.ng/umbrella/checks/functions/isUUID.html)
|
|
100
|
+
- [`isUUIDv4`](https://docs.thi.ng/umbrella/checks/functions/isUUIDv4.html)
|
|
101
|
+
- [`isUint32`](https://docs.thi.ng/umbrella/checks/functions/isUint32.html)
|
|
102
|
+
- [`isUndefined`](https://docs.thi.ng/umbrella/checks/functions/isUndefined.html)
|
|
103
|
+
- [`isZero`](https://docs.thi.ng/umbrella/checks/functions/isZero.html)
|
|
104
|
+
|
|
29
105
|
## Status
|
|
30
106
|
|
|
31
107
|
**STABLE** - used in production
|
package/is-generator.d.ts
CHANGED
package/is-proto-path.d.ts
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Returns true, if given `x` is an illegal object key as per
|
|
3
3
|
* {@link ILLEGAL_KEYS}.
|
|
4
4
|
*
|
|
5
|
-
* @
|
|
5
|
+
* @remarks
|
|
6
|
+
* Also see {@link isProtoPath} for more details
|
|
6
7
|
*
|
|
7
8
|
* @param x -
|
|
8
9
|
*/
|
|
@@ -19,6 +20,8 @@ export declare const isIllegalKey: (x: any) => boolean;
|
|
|
19
20
|
* Original discussion here, implementation updated to be more encompassing:
|
|
20
21
|
* https://github.com/thi-ng/umbrella/pull/273
|
|
21
22
|
*
|
|
23
|
+
* Also see {@link isIllegalKey}.
|
|
24
|
+
*
|
|
22
25
|
* @param path -
|
|
23
26
|
*/
|
|
24
27
|
export declare const isProtoPath: (path: string | number | readonly (string | number)[]) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/checks",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5",
|
|
4
4
|
"description": "Collection of 70+ type, feature & value checks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://
|
|
13
|
+
"homepage": "https://thi.ng/checks",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"tslib": "^2.6.
|
|
43
|
+
"tslib": "^2.6.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@microsoft/api-extractor": "^7.
|
|
47
|
-
"@types/node": "^20.
|
|
48
|
-
"esbuild": "^0.21.
|
|
46
|
+
"@microsoft/api-extractor": "^7.47.0",
|
|
47
|
+
"@types/node": "^20.14.6",
|
|
48
|
+
"esbuild": "^0.21.5",
|
|
49
49
|
"typedoc": "^0.25.13",
|
|
50
|
-
"typescript": "^5.
|
|
50
|
+
"typescript": "^5.5.2"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"detect",
|
|
@@ -288,5 +288,5 @@
|
|
|
288
288
|
"thi.ng": {
|
|
289
289
|
"alias": "ch"
|
|
290
290
|
},
|
|
291
|
-
"gitHead": "
|
|
291
|
+
"gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
|
|
292
292
|
}
|