@thi.ng/checks 3.7.18 → 3.7.23

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.
Files changed (2) hide show
  1. package/package.json +293 -293
  2. package/CHANGELOG.md +0 -79
package/package.json CHANGED
@@ -1,294 +1,294 @@
1
1
  {
2
- "name": "@thi.ng/checks",
3
- "version": "3.7.18",
4
- "description": "Collection of 70+ type, feature & value checks",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/checks",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "contributors": [
30
- "Gavin Cannizzaro (https://github.com/gavinpc-mindgrub)",
31
- "Jay Zawrotny (https://github.com/eccentric-j)"
32
- ],
33
- "license": "Apache-2.0",
34
- "scripts": {
35
- "build": "yarn build:esbuild && yarn build:decl",
36
- "build:decl": "tsc --declaration --emitDeclarationOnly",
37
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
38
- "clean": "bun ../../tools/src/clean-package.ts",
39
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
40
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
41
- "pub": "yarn npm publish --access public",
42
- "test": "bun test",
43
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
- },
45
- "devDependencies": {
46
- "@types/node": "^24.3.0",
47
- "esbuild": "^0.25.9",
48
- "typedoc": "^0.28.12",
49
- "typescript": "^5.9.2"
50
- },
51
- "keywords": [
52
- "detect",
53
- "feature",
54
- "reflect",
55
- "typescript",
56
- "validate"
57
- ],
58
- "publishConfig": {
59
- "access": "public"
60
- },
61
- "browser": {
62
- "process": false,
63
- "setTimeout": false
64
- },
65
- "engines": {
66
- "node": ">=18"
67
- },
68
- "files": [
69
- "./*.js",
70
- "./*.d.ts"
71
- ],
72
- "exports": {
73
- ".": {
74
- "default": "./index.js"
75
- },
76
- "./exists-not-null": {
77
- "default": "./exists-not-null.js"
78
- },
79
- "./exists": {
80
- "default": "./exists.js"
81
- },
82
- "./has-bigint": {
83
- "default": "./has-bigint.js"
84
- },
85
- "./has-crypto": {
86
- "default": "./has-crypto.js"
87
- },
88
- "./has-max-length": {
89
- "default": "./has-max-length.js"
90
- },
91
- "./has-min-length": {
92
- "default": "./has-min-length.js"
93
- },
94
- "./has-performance": {
95
- "default": "./has-performance.js"
96
- },
97
- "./has-wasm": {
98
- "default": "./has-wasm.js"
99
- },
100
- "./has-webgl": {
101
- "default": "./has-webgl.js"
102
- },
103
- "./has-websocket": {
104
- "default": "./has-websocket.js"
105
- },
106
- "./implements-function": {
107
- "default": "./implements-function.js"
108
- },
109
- "./is-alphanum": {
110
- "default": "./is-alphanum.js"
111
- },
112
- "./is-array": {
113
- "default": "./is-array.js"
114
- },
115
- "./is-arraybufferlike": {
116
- "default": "./is-arraybufferlike.js"
117
- },
118
- "./is-arraybufferview": {
119
- "default": "./is-arraybufferview.js"
120
- },
121
- "./is-arraylike": {
122
- "default": "./is-arraylike.js"
123
- },
124
- "./is-ascii": {
125
- "default": "./is-ascii.js"
126
- },
127
- "./is-async-iterable": {
128
- "default": "./is-async-iterable.js"
129
- },
130
- "./is-bigint": {
131
- "default": "./is-bigint.js"
132
- },
133
- "./is-blob": {
134
- "default": "./is-blob.js"
135
- },
136
- "./is-boolean": {
137
- "default": "./is-boolean.js"
138
- },
139
- "./is-chrome": {
140
- "default": "./is-chrome.js"
141
- },
142
- "./is-dark-mode": {
143
- "default": "./is-dark-mode.js"
144
- },
145
- "./is-data-url": {
146
- "default": "./is-data-url.js"
147
- },
148
- "./is-date": {
149
- "default": "./is-date.js"
150
- },
151
- "./is-even": {
152
- "default": "./is-even.js"
153
- },
154
- "./is-false": {
155
- "default": "./is-false.js"
156
- },
157
- "./is-file": {
158
- "default": "./is-file.js"
159
- },
160
- "./is-firefox": {
161
- "default": "./is-firefox.js"
162
- },
163
- "./is-float-string": {
164
- "default": "./is-float-string.js"
165
- },
166
- "./is-function": {
167
- "default": "./is-function.js"
168
- },
169
- "./is-generator": {
170
- "default": "./is-generator.js"
171
- },
172
- "./is-hex-color": {
173
- "default": "./is-hex-color.js"
174
- },
175
- "./is-hex": {
176
- "default": "./is-hex.js"
177
- },
178
- "./is-ie": {
179
- "default": "./is-ie.js"
180
- },
181
- "./is-in-range": {
182
- "default": "./is-in-range.js"
183
- },
184
- "./is-int-string": {
185
- "default": "./is-int-string.js"
186
- },
187
- "./is-int32": {
188
- "default": "./is-int32.js"
189
- },
190
- "./is-iterable": {
191
- "default": "./is-iterable.js"
192
- },
193
- "./is-map": {
194
- "default": "./is-map.js"
195
- },
196
- "./is-mobile": {
197
- "default": "./is-mobile.js"
198
- },
199
- "./is-nan": {
200
- "default": "./is-nan.js"
201
- },
202
- "./is-negative": {
203
- "default": "./is-negative.js"
204
- },
205
- "./is-nil": {
206
- "default": "./is-nil.js"
207
- },
208
- "./is-node": {
209
- "default": "./is-node.js"
210
- },
211
- "./is-not-string-iterable": {
212
- "default": "./is-not-string-iterable.js"
213
- },
214
- "./is-null": {
215
- "default": "./is-null.js"
216
- },
217
- "./is-number": {
218
- "default": "./is-number.js"
219
- },
220
- "./is-numeric": {
221
- "default": "./is-numeric.js"
222
- },
223
- "./is-object": {
224
- "default": "./is-object.js"
225
- },
226
- "./is-odd": {
227
- "default": "./is-odd.js"
228
- },
229
- "./is-plain-object": {
230
- "default": "./is-plain-object.js"
231
- },
232
- "./is-positive": {
233
- "default": "./is-positive.js"
234
- },
235
- "./is-primitive": {
236
- "default": "./is-primitive.js"
237
- },
238
- "./is-promise": {
239
- "default": "./is-promise.js"
240
- },
241
- "./is-promiselike": {
242
- "default": "./is-promiselike.js"
243
- },
244
- "./is-proto-path": {
245
- "default": "./is-proto-path.js"
246
- },
247
- "./is-regexp": {
248
- "default": "./is-regexp.js"
249
- },
250
- "./is-safari": {
251
- "default": "./is-safari.js"
252
- },
253
- "./is-set": {
254
- "default": "./is-set.js"
255
- },
256
- "./is-string": {
257
- "default": "./is-string.js"
258
- },
259
- "./is-symbol": {
260
- "default": "./is-symbol.js"
261
- },
262
- "./is-touch-event": {
263
- "default": "./is-touch-event.js"
264
- },
265
- "./is-transferable": {
266
- "default": "./is-transferable.js"
267
- },
268
- "./is-true": {
269
- "default": "./is-true.js"
270
- },
271
- "./is-typedarray": {
272
- "default": "./is-typedarray.js"
273
- },
274
- "./is-uint32": {
275
- "default": "./is-uint32.js"
276
- },
277
- "./is-undefined": {
278
- "default": "./is-undefined.js"
279
- },
280
- "./is-uuid": {
281
- "default": "./is-uuid.js"
282
- },
283
- "./is-uuid4": {
284
- "default": "./is-uuid4.js"
285
- },
286
- "./is-zero": {
287
- "default": "./is-zero.js"
288
- }
289
- },
290
- "thi.ng": {
291
- "alias": "ch"
292
- },
293
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
294
- }
2
+ "name": "@thi.ng/checks",
3
+ "version": "3.7.23",
4
+ "description": "Collection of 70+ type, feature & value checks",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/checks",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "contributors": [
30
+ "Gavin Cannizzaro (https://github.com/gavinpc-mindgrub)",
31
+ "Jay Zawrotny (https://github.com/eccentric-j)"
32
+ ],
33
+ "license": "Apache-2.0",
34
+ "scripts": {
35
+ "build": "yarn build:esbuild && yarn build:decl",
36
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
37
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
38
+ "clean": "bun ../../tools/src/clean-package.ts",
39
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
40
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
41
+ "pub": "npm publish --access public",
42
+ "test": "bun test",
43
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^24.9.1",
47
+ "esbuild": "^0.25.11",
48
+ "typedoc": "^0.28.14",
49
+ "typescript": "^5.9.3"
50
+ },
51
+ "keywords": [
52
+ "detect",
53
+ "feature",
54
+ "reflect",
55
+ "typescript",
56
+ "validate"
57
+ ],
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "browser": {
62
+ "process": false,
63
+ "setTimeout": false
64
+ },
65
+ "engines": {
66
+ "node": ">=18"
67
+ },
68
+ "files": [
69
+ "./*.js",
70
+ "./*.d.ts"
71
+ ],
72
+ "exports": {
73
+ ".": {
74
+ "default": "./index.js"
75
+ },
76
+ "./exists-not-null": {
77
+ "default": "./exists-not-null.js"
78
+ },
79
+ "./exists": {
80
+ "default": "./exists.js"
81
+ },
82
+ "./has-bigint": {
83
+ "default": "./has-bigint.js"
84
+ },
85
+ "./has-crypto": {
86
+ "default": "./has-crypto.js"
87
+ },
88
+ "./has-max-length": {
89
+ "default": "./has-max-length.js"
90
+ },
91
+ "./has-min-length": {
92
+ "default": "./has-min-length.js"
93
+ },
94
+ "./has-performance": {
95
+ "default": "./has-performance.js"
96
+ },
97
+ "./has-wasm": {
98
+ "default": "./has-wasm.js"
99
+ },
100
+ "./has-webgl": {
101
+ "default": "./has-webgl.js"
102
+ },
103
+ "./has-websocket": {
104
+ "default": "./has-websocket.js"
105
+ },
106
+ "./implements-function": {
107
+ "default": "./implements-function.js"
108
+ },
109
+ "./is-alphanum": {
110
+ "default": "./is-alphanum.js"
111
+ },
112
+ "./is-array": {
113
+ "default": "./is-array.js"
114
+ },
115
+ "./is-arraybufferlike": {
116
+ "default": "./is-arraybufferlike.js"
117
+ },
118
+ "./is-arraybufferview": {
119
+ "default": "./is-arraybufferview.js"
120
+ },
121
+ "./is-arraylike": {
122
+ "default": "./is-arraylike.js"
123
+ },
124
+ "./is-ascii": {
125
+ "default": "./is-ascii.js"
126
+ },
127
+ "./is-async-iterable": {
128
+ "default": "./is-async-iterable.js"
129
+ },
130
+ "./is-bigint": {
131
+ "default": "./is-bigint.js"
132
+ },
133
+ "./is-blob": {
134
+ "default": "./is-blob.js"
135
+ },
136
+ "./is-boolean": {
137
+ "default": "./is-boolean.js"
138
+ },
139
+ "./is-chrome": {
140
+ "default": "./is-chrome.js"
141
+ },
142
+ "./is-dark-mode": {
143
+ "default": "./is-dark-mode.js"
144
+ },
145
+ "./is-data-url": {
146
+ "default": "./is-data-url.js"
147
+ },
148
+ "./is-date": {
149
+ "default": "./is-date.js"
150
+ },
151
+ "./is-even": {
152
+ "default": "./is-even.js"
153
+ },
154
+ "./is-false": {
155
+ "default": "./is-false.js"
156
+ },
157
+ "./is-file": {
158
+ "default": "./is-file.js"
159
+ },
160
+ "./is-firefox": {
161
+ "default": "./is-firefox.js"
162
+ },
163
+ "./is-float-string": {
164
+ "default": "./is-float-string.js"
165
+ },
166
+ "./is-function": {
167
+ "default": "./is-function.js"
168
+ },
169
+ "./is-generator": {
170
+ "default": "./is-generator.js"
171
+ },
172
+ "./is-hex-color": {
173
+ "default": "./is-hex-color.js"
174
+ },
175
+ "./is-hex": {
176
+ "default": "./is-hex.js"
177
+ },
178
+ "./is-ie": {
179
+ "default": "./is-ie.js"
180
+ },
181
+ "./is-in-range": {
182
+ "default": "./is-in-range.js"
183
+ },
184
+ "./is-int-string": {
185
+ "default": "./is-int-string.js"
186
+ },
187
+ "./is-int32": {
188
+ "default": "./is-int32.js"
189
+ },
190
+ "./is-iterable": {
191
+ "default": "./is-iterable.js"
192
+ },
193
+ "./is-map": {
194
+ "default": "./is-map.js"
195
+ },
196
+ "./is-mobile": {
197
+ "default": "./is-mobile.js"
198
+ },
199
+ "./is-nan": {
200
+ "default": "./is-nan.js"
201
+ },
202
+ "./is-negative": {
203
+ "default": "./is-negative.js"
204
+ },
205
+ "./is-nil": {
206
+ "default": "./is-nil.js"
207
+ },
208
+ "./is-node": {
209
+ "default": "./is-node.js"
210
+ },
211
+ "./is-not-string-iterable": {
212
+ "default": "./is-not-string-iterable.js"
213
+ },
214
+ "./is-null": {
215
+ "default": "./is-null.js"
216
+ },
217
+ "./is-number": {
218
+ "default": "./is-number.js"
219
+ },
220
+ "./is-numeric": {
221
+ "default": "./is-numeric.js"
222
+ },
223
+ "./is-object": {
224
+ "default": "./is-object.js"
225
+ },
226
+ "./is-odd": {
227
+ "default": "./is-odd.js"
228
+ },
229
+ "./is-plain-object": {
230
+ "default": "./is-plain-object.js"
231
+ },
232
+ "./is-positive": {
233
+ "default": "./is-positive.js"
234
+ },
235
+ "./is-primitive": {
236
+ "default": "./is-primitive.js"
237
+ },
238
+ "./is-promise": {
239
+ "default": "./is-promise.js"
240
+ },
241
+ "./is-promiselike": {
242
+ "default": "./is-promiselike.js"
243
+ },
244
+ "./is-proto-path": {
245
+ "default": "./is-proto-path.js"
246
+ },
247
+ "./is-regexp": {
248
+ "default": "./is-regexp.js"
249
+ },
250
+ "./is-safari": {
251
+ "default": "./is-safari.js"
252
+ },
253
+ "./is-set": {
254
+ "default": "./is-set.js"
255
+ },
256
+ "./is-string": {
257
+ "default": "./is-string.js"
258
+ },
259
+ "./is-symbol": {
260
+ "default": "./is-symbol.js"
261
+ },
262
+ "./is-touch-event": {
263
+ "default": "./is-touch-event.js"
264
+ },
265
+ "./is-transferable": {
266
+ "default": "./is-transferable.js"
267
+ },
268
+ "./is-true": {
269
+ "default": "./is-true.js"
270
+ },
271
+ "./is-typedarray": {
272
+ "default": "./is-typedarray.js"
273
+ },
274
+ "./is-uint32": {
275
+ "default": "./is-uint32.js"
276
+ },
277
+ "./is-undefined": {
278
+ "default": "./is-undefined.js"
279
+ },
280
+ "./is-uuid": {
281
+ "default": "./is-uuid.js"
282
+ },
283
+ "./is-uuid4": {
284
+ "default": "./is-uuid4.js"
285
+ },
286
+ "./is-zero": {
287
+ "default": "./is-zero.js"
288
+ }
289
+ },
290
+ "thi.ng": {
291
+ "alias": "ch"
292
+ },
293
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
294
+ }
package/CHANGELOG.md DELETED
@@ -1,79 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [3.7.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.7.16) (2025-08-07)
15
-
16
- #### 🩹 Bug fixes
17
-
18
- - fix [#540](https://github.com/thi-ng/umbrella/issues/540), update hasCrypto() & hasWASM() checks ([a626425](https://github.com/thi-ng/umbrella/commit/a626425))
19
- - use `self` vs `window` to include worker support
20
-
21
- ## [3.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.7.0) (2025-02-21)
22
-
23
- #### 🚀 Features
24
-
25
- - add `isDarkMode()` ([c42a738](https://github.com/thi-ng/umbrella/commit/c42a738))
26
-
27
- ### [3.6.19](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.6.19) (2025-01-14)
28
-
29
- #### ♻️ Refactoring
30
-
31
- - use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
32
-
33
- ## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.6.0) (2024-04-08)
34
-
35
- #### 🚀 Features
36
-
37
- - add optional generics for collection checks ([8d55530](https://github.com/thi-ng/umbrella/commit/8d55530))
38
-
39
- ## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.5.0) (2024-02-22)
40
-
41
- #### 🚀 Features
42
-
43
- - add isArrayBufferLike(), isArrayBufferView() ([652a1d2](https://github.com/thi-ng/umbrella/commit/652a1d2))
44
-
45
- ### [3.4.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.4.7) (2023-11-09)
46
-
47
- #### 🩹 Bug fixes
48
-
49
- - update isTypedArray() to return boolean ([2c0f72f](https://github.com/thi-ng/umbrella/commit/2c0f72f))
50
-
51
- ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.4.0) (2023-08-04)
52
-
53
- #### 🚀 Features
54
-
55
- - add isGenerator() ([af8ffb3](https://github.com/thi-ng/umbrella/commit/af8ffb3))
56
-
57
- ### [3.3.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.3.5) (2022-12-16)
58
-
59
- #### ♻️ Refactoring
60
-
61
- - add generics for isFunction() ([2850048](https://github.com/thi-ng/umbrella/commit/2850048))
62
-
63
- ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.3.0) (2022-10-17)
64
-
65
- #### 🚀 Features
66
-
67
- - add isTouchEvent() ([7ef2acc](https://github.com/thi-ng/umbrella/commit/7ef2acc))
68
-
69
- ### [3.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.2.1) (2022-06-11)
70
-
71
- #### 🩹 Bug fixes
72
-
73
- - update export map (add missing isBigInt()) ([9270de0](https://github.com/thi-ng/umbrella/commit/9270de0))
74
-
75
- ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.2.0) (2022-06-09)
76
-
77
- #### 🚀 Features
78
-
79
- - add isBigInt(), update pkg/readme ([bb6d833](https://github.com/thi-ng/umbrella/commit/bb6d833))