@thi.ng/checks 3.0.6 → 3.1.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/CHANGELOG.md +147 -121
- package/README.md +1 -1
- package/is-primitive.d.ts +6 -1
- package/is-primitive.js +6 -1
- package/package.json +269 -263
package/CHANGELOG.md
CHANGED
|
@@ -1,218 +1,244 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [3.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@3.0.5...@thi.ng/checks@3.0.6) (2021-10-28)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/checks
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [3.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@3.0.4...@thi.ng/checks@3.0.5) (2021-10-28)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @thi.ng/checks
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [3.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@3.0.3...@thi.ng/checks@3.0.4) (2021-10-25)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @thi.ng/checks
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [3.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@3.0.2...@thi.ng/checks@3.0.3) (2021-10-15)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @thi.ng/checks
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
33
5
|
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
34
8
|
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
35
11
|
|
|
12
|
+
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.1.0) (2021-11-17)
|
|
36
13
|
|
|
14
|
+
#### 🚀 Features
|
|
37
15
|
|
|
38
|
-
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
39
21
|
|
|
40
|
-
|
|
22
|
+
#### ♻️ Refactoring
|
|
41
23
|
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
42
30
|
|
|
31
|
+
### [3.0.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.0.7) (2021-11-10)
|
|
43
32
|
|
|
33
|
+
#### 🩹 Bug fixes
|
|
44
34
|
|
|
35
|
+
- add boolean to isPrimitive() ([fde4d2b](https://github.com/thi-ng/umbrella/commit/fde4d2b))
|
|
45
36
|
|
|
46
|
-
|
|
37
|
+
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.0.1) (2021-10-13)
|
|
47
38
|
|
|
48
|
-
|
|
39
|
+
#### ♻️ Refactoring
|
|
49
40
|
|
|
41
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
42
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
43
|
+
- add .js suffix for all relative imports
|
|
50
44
|
|
|
45
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.0.0) (2021-10-12)
|
|
51
46
|
|
|
47
|
+
#### 🛑 Breaking changes
|
|
52
48
|
|
|
49
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
50
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
51
|
+
- only ESM modules will be published from now on
|
|
52
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
53
|
+
- i.e. launch NodeJS via:
|
|
54
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
55
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
56
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
57
|
+
Also:
|
|
58
|
+
- normalize/restructure/reorg all package.json files
|
|
59
|
+
- cleanup all build scripts, remove obsolete
|
|
60
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
53
61
|
|
|
54
|
-
|
|
62
|
+
#### ♻️ Refactoring
|
|
55
63
|
|
|
64
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
65
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
56
66
|
|
|
57
|
-
###
|
|
67
|
+
### [2.9.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.9.6) (2021-04-03)
|
|
58
68
|
|
|
59
|
-
|
|
69
|
+
#### ♻️ Refactoring
|
|
60
70
|
|
|
71
|
+
- add implementsFunction() generics ([63d78cb](https://github.com/thi-ng/umbrella/commit/63d78cb))
|
|
61
72
|
|
|
62
|
-
|
|
73
|
+
## [2.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.9.0) (2021-02-20)
|
|
63
74
|
|
|
64
|
-
|
|
75
|
+
#### 🚀 Features
|
|
65
76
|
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
77
|
+
- add isIllegalKey() (make public) ([507fc80](https://github.com/thi-ng/umbrella/commit/507fc80))
|
|
78
|
+
- replace isPrototypePolluted() w/ isProtoPath() ([d276b84](https://github.com/thi-ng/umbrella/commit/d276b84))
|
|
79
|
+
- isPrototypePolluted() assumed given string is a single property
|
|
80
|
+
name, but could be a `.` separated lookup path. New function
|
|
81
|
+
checks for that and also supports arrays
|
|
82
|
+
- add tests
|
|
72
83
|
|
|
73
|
-
|
|
74
|
-
- normalize/restructure/reorg all package.json files
|
|
75
|
-
- cleanup all build scripts, remove obsolete
|
|
76
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
84
|
+
## [2.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.8.0) (2021-01-10)
|
|
77
85
|
|
|
86
|
+
#### 🚀 Features
|
|
78
87
|
|
|
88
|
+
- add isNumericInt/Float() checks ([7e054c1](https://github.com/thi-ng/umbrella/commit/7e054c1))
|
|
79
89
|
|
|
90
|
+
### [2.7.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.7.9) (2020-09-22)
|
|
80
91
|
|
|
92
|
+
#### ♻️ Refactoring
|
|
81
93
|
|
|
94
|
+
- update isNode() ([e988d0d](https://github.com/thi-ng/umbrella/commit/e988d0d))
|
|
82
95
|
|
|
83
|
-
|
|
96
|
+
### [2.7.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.7.3) (2020-07-02)
|
|
84
97
|
|
|
85
|
-
|
|
98
|
+
#### 🩹 Bug fixes
|
|
86
99
|
|
|
87
|
-
-
|
|
88
|
-
- **checks:** replace isPrototypePolluted() w/ isProtoPath() ([d276b84](https://github.com/thi-ng/umbrella/commit/d276b8465eda21a32f3613d20c043ea50fce7f57))
|
|
100
|
+
- update isPlainObject() type assertion ([e5ceb7d](https://github.com/thi-ng/umbrella/commit/e5ceb7d))
|
|
89
101
|
|
|
90
|
-
|
|
102
|
+
## [2.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.7.0) (2020-05-14)
|
|
91
103
|
|
|
92
|
-
|
|
104
|
+
#### 🚀 Features
|
|
93
105
|
|
|
94
|
-
-
|
|
106
|
+
- add isAsyncIterable() ([59ac3a9](https://github.com/thi-ng/umbrella/commit/59ac3a9))
|
|
95
107
|
|
|
96
|
-
##
|
|
108
|
+
## [2.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.6.0) (2020-03-28)
|
|
97
109
|
|
|
98
|
-
|
|
110
|
+
#### 🚀 Features
|
|
99
111
|
|
|
100
|
-
-
|
|
112
|
+
- add new string validators ([9d9e8a8](https://github.com/thi-ng/umbrella/commit/9d9e8a8))
|
|
113
|
+
- add isAlpha(), isAlphaNum(), isNumeric()
|
|
114
|
+
- add isASCII(), isPrintableASCII()
|
|
115
|
+
- add isDataURL()
|
|
116
|
+
- add isFloatString(), isIntString()
|
|
117
|
+
- add isHex()
|
|
118
|
+
- add better type assertion for isTypedArray() ([548ba52](https://github.com/thi-ng/umbrella/commit/548ba52))
|
|
101
119
|
|
|
102
|
-
|
|
120
|
+
#### 🩹 Bug fixes
|
|
103
121
|
|
|
104
|
-
|
|
122
|
+
- typo ([4e4a6e1](https://github.com/thi-ng/umbrella/commit/4e4a6e1))
|
|
105
123
|
|
|
106
|
-
|
|
124
|
+
## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.5.0) (2020-01-24)
|
|
107
125
|
|
|
108
|
-
|
|
126
|
+
#### 🚀 Features
|
|
109
127
|
|
|
110
|
-
|
|
128
|
+
- add hasBigInt() ([aa4faed](https://github.com/thi-ng/umbrella/commit/aa4faed))
|
|
111
129
|
|
|
112
|
-
|
|
130
|
+
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.4.0) (2019-09-21)
|
|
113
131
|
|
|
114
|
-
|
|
132
|
+
#### 🚀 Features
|
|
115
133
|
|
|
116
|
-
-
|
|
117
|
-
- **checks:** add new string validators ([9d9e8a8](https://github.com/thi-ng/umbrella/commit/9d9e8a8bcb73efb728faf4a216a9dfcac31a0639))
|
|
134
|
+
- add generics to existsAndNotNull() ([bced8b9](https://github.com/thi-ng/umbrella/commit/bced8b9))
|
|
118
135
|
|
|
119
|
-
|
|
136
|
+
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.3.0) (2019-08-16)
|
|
120
137
|
|
|
121
|
-
|
|
138
|
+
#### 🚀 Features
|
|
122
139
|
|
|
123
|
-
-
|
|
140
|
+
- isNil and isHexColorString ([ebaa15e](https://github.com/thi-ng/umbrella/commit/ebaa15e))
|
|
124
141
|
|
|
125
|
-
|
|
142
|
+
#### 🩹 Bug fixes
|
|
126
143
|
|
|
127
|
-
|
|
144
|
+
- fix vscode autoimport ([8ac6408](https://github.com/thi-ng/umbrella/commit/8ac6408))
|
|
145
|
+
- better hex string, export, isNil doc ([19b1981](https://github.com/thi-ng/umbrella/commit/19b1981))
|
|
146
|
+
- test, better naming ([90dce20](https://github.com/thi-ng/umbrella/commit/90dce20))
|
|
128
147
|
|
|
129
|
-
|
|
148
|
+
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.2.0) (2019-07-07)
|
|
130
149
|
|
|
131
|
-
|
|
150
|
+
#### 🚀 Features
|
|
132
151
|
|
|
133
|
-
|
|
152
|
+
- enable TS strict compiler flags (refactor) ([90515e7](https://github.com/thi-ng/umbrella/commit/90515e7))
|
|
134
153
|
|
|
135
|
-
|
|
136
|
-
- **checks:** fix vscode autoimport ([8ac6408](https://github.com/thi-ng/umbrella/commit/8ac6408))
|
|
137
|
-
- **checks:** test, better naming ([90dce20](https://github.com/thi-ng/umbrella/commit/90dce20))
|
|
154
|
+
#### 🩹 Bug fixes
|
|
138
155
|
|
|
139
|
-
|
|
156
|
+
- isMobile for Chrome iOS ([8216d48](https://github.com/thi-ng/umbrella/commit/8216d48))
|
|
140
157
|
|
|
141
|
-
|
|
158
|
+
### [2.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.1.2) (2019-03-12)
|
|
142
159
|
|
|
143
|
-
|
|
160
|
+
#### 🩹 Bug fixes
|
|
144
161
|
|
|
145
|
-
|
|
162
|
+
- fix [#77](https://github.com/thi-ng/umbrella/issues/77), update & minor optimization isPlainObject() ([47ac88a](https://github.com/thi-ng/umbrella/commit/47ac88a))
|
|
163
|
+
- add/update tests
|
|
164
|
+
- add AUTHORS.md
|
|
146
165
|
|
|
147
|
-
|
|
166
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.1.0) (2019-02-10)
|
|
148
167
|
|
|
149
|
-
|
|
168
|
+
#### 🚀 Features
|
|
150
169
|
|
|
151
|
-
-
|
|
170
|
+
- add isPrimitive() ([190701e](https://github.com/thi-ng/umbrella/commit/190701e))
|
|
152
171
|
|
|
153
|
-
|
|
172
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@2.0.0) (2019-01-21)
|
|
154
173
|
|
|
155
|
-
|
|
174
|
+
#### 🛑 Breaking changes
|
|
156
175
|
|
|
157
|
-
-
|
|
176
|
+
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
177
|
+
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
178
|
+
- build scripts now first build ES6 modules in package root, then call
|
|
179
|
+
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
180
|
+
- all imports MUST be updated to only refer to package level
|
|
181
|
+
(not individual files anymore). tree shaking in user land will get rid of
|
|
182
|
+
all unused imported symbols.
|
|
158
183
|
|
|
159
|
-
|
|
184
|
+
#### ♻️ Refactoring
|
|
160
185
|
|
|
161
|
-
|
|
186
|
+
- update all as arrow fns ([b70a3e1](https://github.com/thi-ng/umbrella/commit/b70a3e1))
|
|
162
187
|
|
|
163
|
-
|
|
188
|
+
### [1.5.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.5.4) (2018-06-18)
|
|
164
189
|
|
|
165
|
-
|
|
190
|
+
#### 🩹 Bug fixes
|
|
166
191
|
|
|
167
|
-
|
|
192
|
+
- isOdd() for negative values ([3589e15](https://github.com/thi-ng/umbrella/commit/3589e15))
|
|
168
193
|
|
|
169
|
-
|
|
194
|
+
### [1.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.5.1) (2018-04-29)
|
|
170
195
|
|
|
171
|
-
|
|
196
|
+
#### 🩹 Bug fixes
|
|
172
197
|
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
- all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
|
|
198
|
+
- return type isMap() ([76920f7](https://github.com/thi-ng/umbrella/commit/76920f7))
|
|
199
|
+
- exclude functions in isArrayLike() ([ac60404](https://github.com/thi-ng/umbrella/commit/ac60404))
|
|
176
200
|
|
|
177
|
-
##
|
|
201
|
+
## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.5.0) (2018-04-26)
|
|
178
202
|
|
|
179
|
-
|
|
203
|
+
#### 🚀 Features
|
|
180
204
|
|
|
181
|
-
-
|
|
205
|
+
- add date, map, nan, set checks ([a865f62](https://github.com/thi-ng/umbrella/commit/a865f62))
|
|
182
206
|
|
|
183
|
-
##
|
|
207
|
+
## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.4.0) (2018-04-08)
|
|
184
208
|
|
|
185
|
-
|
|
209
|
+
#### 🚀 Features
|
|
186
210
|
|
|
187
|
-
-
|
|
188
|
-
- **checks:** return type isMap() ([76920f7](https://github.com/thi-ng/umbrella/commit/76920f7))
|
|
211
|
+
- add hasPerformance() check (performance.now) ([40d706b](https://github.com/thi-ng/umbrella/commit/40d706b))
|
|
189
212
|
|
|
190
|
-
|
|
213
|
+
### [1.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.3.2) (2018-04-04)
|
|
191
214
|
|
|
192
|
-
|
|
215
|
+
#### 🩹 Bug fixes
|
|
193
216
|
|
|
194
|
-
-
|
|
217
|
+
- add prototype check for isPlainObject(), add tests ([bffc443](https://github.com/thi-ng/umbrella/commit/bffc443))
|
|
195
218
|
|
|
196
|
-
|
|
219
|
+
## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.3.0) (2018-03-08)
|
|
197
220
|
|
|
198
|
-
|
|
221
|
+
#### 🚀 Features
|
|
199
222
|
|
|
200
|
-
-
|
|
223
|
+
- add isPromise() & isPromiseLike() ([9900e99](https://github.com/thi-ng/umbrella/commit/9900e99))
|
|
201
224
|
|
|
202
|
-
##
|
|
225
|
+
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.2.0) (2018-02-08)
|
|
203
226
|
|
|
204
|
-
|
|
227
|
+
#### 🚀 Features
|
|
205
228
|
|
|
206
|
-
-
|
|
229
|
+
- add new predicates, refactor existing ([68f8fc2](https://github.com/thi-ng/umbrella/commit/68f8fc2))
|
|
230
|
+
- add: isBlob, isEven, isFile, isInRange, isOdd, isRegExp
|
|
231
|
+
- add: hasMinLength, hasMaxLength
|
|
232
|
+
- update: existsAndNotNull, isArray, isArrayLike
|
|
207
233
|
|
|
208
|
-
|
|
234
|
+
### [1.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.1.6) (2018-02-02)
|
|
209
235
|
|
|
210
|
-
|
|
236
|
+
#### ♻️ Refactoring
|
|
211
237
|
|
|
212
|
-
-
|
|
238
|
+
- isPlainObject() ([9848576](https://github.com/thi-ng/umbrella/commit/9848576))
|
|
213
239
|
|
|
214
|
-
|
|
240
|
+
### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@1.1.1) (2018-01-24)
|
|
215
241
|
|
|
216
|
-
|
|
242
|
+
#### 🚀 Features
|
|
217
243
|
|
|
218
|
-
-
|
|
244
|
+
- initial re-import as monorepo, update readme files, cleanup imports ([04ff6e9](https://github.com/thi-ng/umbrella/commit/04ff6e9))
|
package/README.md
CHANGED
package/is-primitive.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if `x` is a string, number or boolean.
|
|
3
|
+
*
|
|
4
|
+
* @param x
|
|
5
|
+
*/
|
|
6
|
+
export declare const isPrimitive: (x: any) => x is string | number | boolean;
|
|
2
7
|
//# sourceMappingURL=is-primitive.d.ts.map
|
package/is-primitive.js
CHANGED
package/package.json
CHANGED
|
@@ -1,264 +1,270 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
2
|
+
"name": "@thi.ng/checks",
|
|
3
|
+
"version": "3.1.2",
|
|
4
|
+
"description": "Collection of 50+ 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://github.com/thi-ng/umbrella/tree/develop/packages/checks#readme",
|
|
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
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"tslib": "^2.3.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
41
|
+
"@thi.ng/testament": "^0.2.2",
|
|
42
|
+
"@types/node": "^16.11.7",
|
|
43
|
+
"rimraf": "^3.0.2",
|
|
44
|
+
"tools": "^0.0.1",
|
|
45
|
+
"typedoc": "^0.22.9",
|
|
46
|
+
"typescript": "^4.5.2"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"detect",
|
|
50
|
+
"feature",
|
|
51
|
+
"reflect",
|
|
52
|
+
"typescript",
|
|
53
|
+
"validate"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"browser": {
|
|
59
|
+
"process": false,
|
|
60
|
+
"setTimeout": false
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=12.7"
|
|
64
|
+
},
|
|
65
|
+
"files": [
|
|
66
|
+
"*.js",
|
|
67
|
+
"*.d.ts"
|
|
68
|
+
],
|
|
69
|
+
"exports": {
|
|
70
|
+
".": {
|
|
71
|
+
"import": "./index.js"
|
|
72
|
+
},
|
|
73
|
+
"./exists-not-null": {
|
|
74
|
+
"import": "./exists-not-null.js"
|
|
75
|
+
},
|
|
76
|
+
"./exists": {
|
|
77
|
+
"import": "./exists.js"
|
|
78
|
+
},
|
|
79
|
+
"./has-bigint": {
|
|
80
|
+
"import": "./has-bigint.js"
|
|
81
|
+
},
|
|
82
|
+
"./has-crypto": {
|
|
83
|
+
"import": "./has-crypto.js"
|
|
84
|
+
},
|
|
85
|
+
"./has-max-length": {
|
|
86
|
+
"import": "./has-max-length.js"
|
|
87
|
+
},
|
|
88
|
+
"./has-min-length": {
|
|
89
|
+
"import": "./has-min-length.js"
|
|
90
|
+
},
|
|
91
|
+
"./has-performance": {
|
|
92
|
+
"import": "./has-performance.js"
|
|
93
|
+
},
|
|
94
|
+
"./has-wasm": {
|
|
95
|
+
"import": "./has-wasm.js"
|
|
96
|
+
},
|
|
97
|
+
"./has-webgl": {
|
|
98
|
+
"import": "./has-webgl.js"
|
|
99
|
+
},
|
|
100
|
+
"./has-websocket": {
|
|
101
|
+
"import": "./has-websocket.js"
|
|
102
|
+
},
|
|
103
|
+
"./implements-function": {
|
|
104
|
+
"import": "./implements-function.js"
|
|
105
|
+
},
|
|
106
|
+
"./is-alphanum": {
|
|
107
|
+
"import": "./is-alphanum.js"
|
|
108
|
+
},
|
|
109
|
+
"./is-array": {
|
|
110
|
+
"import": "./is-array.js"
|
|
111
|
+
},
|
|
112
|
+
"./is-arraylike": {
|
|
113
|
+
"import": "./is-arraylike.js"
|
|
114
|
+
},
|
|
115
|
+
"./is-ascii": {
|
|
116
|
+
"import": "./is-ascii.js"
|
|
117
|
+
},
|
|
118
|
+
"./is-async-iterable": {
|
|
119
|
+
"import": "./is-async-iterable.js"
|
|
120
|
+
},
|
|
121
|
+
"./is-blob": {
|
|
122
|
+
"import": "./is-blob.js"
|
|
123
|
+
},
|
|
124
|
+
"./is-boolean": {
|
|
125
|
+
"import": "./is-boolean.js"
|
|
126
|
+
},
|
|
127
|
+
"./is-chrome": {
|
|
128
|
+
"import": "./is-chrome.js"
|
|
129
|
+
},
|
|
130
|
+
"./is-data-url": {
|
|
131
|
+
"import": "./is-data-url.js"
|
|
132
|
+
},
|
|
133
|
+
"./is-date": {
|
|
134
|
+
"import": "./is-date.js"
|
|
135
|
+
},
|
|
136
|
+
"./is-even": {
|
|
137
|
+
"import": "./is-even.js"
|
|
138
|
+
},
|
|
139
|
+
"./is-false": {
|
|
140
|
+
"import": "./is-false.js"
|
|
141
|
+
},
|
|
142
|
+
"./is-file": {
|
|
143
|
+
"import": "./is-file.js"
|
|
144
|
+
},
|
|
145
|
+
"./is-firefox": {
|
|
146
|
+
"import": "./is-firefox.js"
|
|
147
|
+
},
|
|
148
|
+
"./is-float-string": {
|
|
149
|
+
"import": "./is-float-string.js"
|
|
150
|
+
},
|
|
151
|
+
"./is-function": {
|
|
152
|
+
"import": "./is-function.js"
|
|
153
|
+
},
|
|
154
|
+
"./is-hex-color": {
|
|
155
|
+
"import": "./is-hex-color.js"
|
|
156
|
+
},
|
|
157
|
+
"./is-hex": {
|
|
158
|
+
"import": "./is-hex.js"
|
|
159
|
+
},
|
|
160
|
+
"./is-ie": {
|
|
161
|
+
"import": "./is-ie.js"
|
|
162
|
+
},
|
|
163
|
+
"./is-in-range": {
|
|
164
|
+
"import": "./is-in-range.js"
|
|
165
|
+
},
|
|
166
|
+
"./is-int-string": {
|
|
167
|
+
"import": "./is-int-string.js"
|
|
168
|
+
},
|
|
169
|
+
"./is-int32": {
|
|
170
|
+
"import": "./is-int32.js"
|
|
171
|
+
},
|
|
172
|
+
"./is-iterable": {
|
|
173
|
+
"import": "./is-iterable.js"
|
|
174
|
+
},
|
|
175
|
+
"./is-map": {
|
|
176
|
+
"import": "./is-map.js"
|
|
177
|
+
},
|
|
178
|
+
"./is-mobile": {
|
|
179
|
+
"import": "./is-mobile.js"
|
|
180
|
+
},
|
|
181
|
+
"./is-nan": {
|
|
182
|
+
"import": "./is-nan.js"
|
|
183
|
+
},
|
|
184
|
+
"./is-negative": {
|
|
185
|
+
"import": "./is-negative.js"
|
|
186
|
+
},
|
|
187
|
+
"./is-nil": {
|
|
188
|
+
"import": "./is-nil.js"
|
|
189
|
+
},
|
|
190
|
+
"./is-node": {
|
|
191
|
+
"import": "./is-node.js"
|
|
192
|
+
},
|
|
193
|
+
"./is-not-string-iterable": {
|
|
194
|
+
"import": "./is-not-string-iterable.js"
|
|
195
|
+
},
|
|
196
|
+
"./is-null": {
|
|
197
|
+
"import": "./is-null.js"
|
|
198
|
+
},
|
|
199
|
+
"./is-number": {
|
|
200
|
+
"import": "./is-number.js"
|
|
201
|
+
},
|
|
202
|
+
"./is-numeric": {
|
|
203
|
+
"import": "./is-numeric.js"
|
|
204
|
+
},
|
|
205
|
+
"./is-object": {
|
|
206
|
+
"import": "./is-object.js"
|
|
207
|
+
},
|
|
208
|
+
"./is-odd": {
|
|
209
|
+
"import": "./is-odd.js"
|
|
210
|
+
},
|
|
211
|
+
"./is-plain-object": {
|
|
212
|
+
"import": "./is-plain-object.js"
|
|
213
|
+
},
|
|
214
|
+
"./is-positive": {
|
|
215
|
+
"import": "./is-positive.js"
|
|
216
|
+
},
|
|
217
|
+
"./is-primitive": {
|
|
218
|
+
"import": "./is-primitive.js"
|
|
219
|
+
},
|
|
220
|
+
"./is-promise": {
|
|
221
|
+
"import": "./is-promise.js"
|
|
222
|
+
},
|
|
223
|
+
"./is-promiselike": {
|
|
224
|
+
"import": "./is-promiselike.js"
|
|
225
|
+
},
|
|
226
|
+
"./is-proto-path": {
|
|
227
|
+
"import": "./is-proto-path.js"
|
|
228
|
+
},
|
|
229
|
+
"./is-regexp": {
|
|
230
|
+
"import": "./is-regexp.js"
|
|
231
|
+
},
|
|
232
|
+
"./is-safari": {
|
|
233
|
+
"import": "./is-safari.js"
|
|
234
|
+
},
|
|
235
|
+
"./is-set": {
|
|
236
|
+
"import": "./is-set.js"
|
|
237
|
+
},
|
|
238
|
+
"./is-string": {
|
|
239
|
+
"import": "./is-string.js"
|
|
240
|
+
},
|
|
241
|
+
"./is-symbol": {
|
|
242
|
+
"import": "./is-symbol.js"
|
|
243
|
+
},
|
|
244
|
+
"./is-transferable": {
|
|
245
|
+
"import": "./is-transferable.js"
|
|
246
|
+
},
|
|
247
|
+
"./is-true": {
|
|
248
|
+
"import": "./is-true.js"
|
|
249
|
+
},
|
|
250
|
+
"./is-typedarray": {
|
|
251
|
+
"import": "./is-typedarray.js"
|
|
252
|
+
},
|
|
253
|
+
"./is-uint32": {
|
|
254
|
+
"import": "./is-uint32.js"
|
|
255
|
+
},
|
|
256
|
+
"./is-undefined": {
|
|
257
|
+
"import": "./is-undefined.js"
|
|
258
|
+
},
|
|
259
|
+
"./is-uuid": {
|
|
260
|
+
"import": "./is-uuid.js"
|
|
261
|
+
},
|
|
262
|
+
"./is-uuid4": {
|
|
263
|
+
"import": "./is-uuid4.js"
|
|
264
|
+
},
|
|
265
|
+
"./is-zero": {
|
|
266
|
+
"import": "./is-zero.js"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
|
|
270
|
+
}
|