@thi.ng/checks 3.0.0 → 3.0.4

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 CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [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)
7
+
8
+ **Note:** Version bump only for package @thi.ng/checks
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @thi.ng/checks
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@3.0.1...@thi.ng/checks@3.0.2) (2021-10-15)
23
+
24
+ **Note:** Version bump only for package @thi.ng/checks
25
+
26
+
27
+
28
+
29
+
30
+ ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@3.0.0...@thi.ng/checks@3.0.1) (2021-10-13)
31
+
32
+ **Note:** Version bump only for package @thi.ng/checks
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.9.11...@thi.ng/checks@3.0.0) (2021-10-12)
7
39
 
8
40
 
package/README.md CHANGED
@@ -43,10 +43,11 @@ ES module import:
43
43
 
44
44
  [Skypack documentation](https://docs.skypack.dev/)
45
45
 
46
- For NodeJS (v14.6+):
46
+ For Node.js REPL:
47
47
 
48
48
  ```text
49
- node --experimental-specifier-resolution=node --experimental-repl-await
49
+ # with flag only for < v16
50
+ node --experimental-repl-await
50
51
 
51
52
  > const checks = await import("@thi.ng/checks");
52
53
  ```
@@ -1,2 +1,2 @@
1
- import { isFunction } from "./is-function";
1
+ import { isFunction } from "./is-function.js";
2
2
  export const hasPerformance = () => typeof performance !== "undefined" && isFunction(performance.now);
package/index.d.ts CHANGED
@@ -1,66 +1,66 @@
1
- export * from "./exists-not-null";
2
- export * from "./exists";
3
- export * from "./has-bigint";
4
- export * from "./has-crypto";
5
- export * from "./has-max-length";
6
- export * from "./has-min-length";
7
- export * from "./has-performance";
8
- export * from "./has-wasm";
9
- export * from "./has-webgl";
10
- export * from "./has-websocket";
11
- export * from "./implements-function";
12
- export * from "./is-alphanum";
13
- export * from "./is-array";
14
- export * from "./is-arraylike";
15
- export * from "./is-ascii";
16
- export * from "./is-async-iterable";
17
- export * from "./is-blob";
18
- export * from "./is-boolean";
19
- export * from "./is-chrome";
20
- export * from "./is-data-url";
21
- export * from "./is-date";
22
- export * from "./is-even";
23
- export * from "./is-false";
24
- export * from "./is-file";
25
- export * from "./is-firefox";
26
- export * from "./is-float-string";
27
- export * from "./is-function";
28
- export * from "./is-hex";
29
- export * from "./is-hex-color";
30
- export * from "./is-ie";
31
- export * from "./is-in-range";
32
- export * from "./is-int32";
33
- export * from "./is-int-string";
34
- export * from "./is-iterable";
35
- export * from "./is-map";
36
- export * from "./is-mobile";
37
- export * from "./is-nan";
38
- export * from "./is-negative";
39
- export * from "./is-nil";
40
- export * from "./is-node";
41
- export * from "./is-not-string-iterable";
42
- export * from "./is-null";
43
- export * from "./is-number";
44
- export * from "./is-numeric";
45
- export * from "./is-object";
46
- export * from "./is-odd";
47
- export * from "./is-plain-object";
48
- export * from "./is-positive";
49
- export * from "./is-primitive";
50
- export * from "./is-promise";
51
- export * from "./is-promiselike";
52
- export * from "./is-proto-path";
53
- export * from "./is-regexp";
54
- export * from "./is-safari";
55
- export * from "./is-set";
56
- export * from "./is-string";
57
- export * from "./is-symbol";
58
- export * from "./is-transferable";
59
- export * from "./is-true";
60
- export * from "./is-typedarray";
61
- export * from "./is-uint32";
62
- export * from "./is-undefined";
63
- export * from "./is-uuid";
64
- export * from "./is-uuid4";
65
- export * from "./is-zero";
1
+ export * from "./exists-not-null.js";
2
+ export * from "./exists.js";
3
+ export * from "./has-bigint.js";
4
+ export * from "./has-crypto.js";
5
+ export * from "./has-max-length.js";
6
+ export * from "./has-min-length.js";
7
+ export * from "./has-performance.js";
8
+ export * from "./has-wasm.js";
9
+ export * from "./has-webgl.js";
10
+ export * from "./has-websocket.js";
11
+ export * from "./implements-function.js";
12
+ export * from "./is-alphanum.js";
13
+ export * from "./is-array.js";
14
+ export * from "./is-arraylike.js";
15
+ export * from "./is-ascii.js";
16
+ export * from "./is-async-iterable.js";
17
+ export * from "./is-blob.js";
18
+ export * from "./is-boolean.js";
19
+ export * from "./is-chrome.js";
20
+ export * from "./is-data-url.js";
21
+ export * from "./is-date.js";
22
+ export * from "./is-even.js";
23
+ export * from "./is-false.js";
24
+ export * from "./is-file.js";
25
+ export * from "./is-firefox.js";
26
+ export * from "./is-float-string.js";
27
+ export * from "./is-function.js";
28
+ export * from "./is-hex.js";
29
+ export * from "./is-hex-color.js";
30
+ export * from "./is-ie.js";
31
+ export * from "./is-in-range.js";
32
+ export * from "./is-int32.js";
33
+ export * from "./is-int-string.js";
34
+ export * from "./is-iterable.js";
35
+ export * from "./is-map.js";
36
+ export * from "./is-mobile.js";
37
+ export * from "./is-nan.js";
38
+ export * from "./is-negative.js";
39
+ export * from "./is-nil.js";
40
+ export * from "./is-node.js";
41
+ export * from "./is-not-string-iterable.js";
42
+ export * from "./is-null.js";
43
+ export * from "./is-number.js";
44
+ export * from "./is-numeric.js";
45
+ export * from "./is-object.js";
46
+ export * from "./is-odd.js";
47
+ export * from "./is-plain-object.js";
48
+ export * from "./is-positive.js";
49
+ export * from "./is-primitive.js";
50
+ export * from "./is-promise.js";
51
+ export * from "./is-promiselike.js";
52
+ export * from "./is-proto-path.js";
53
+ export * from "./is-regexp.js";
54
+ export * from "./is-safari.js";
55
+ export * from "./is-set.js";
56
+ export * from "./is-string.js";
57
+ export * from "./is-symbol.js";
58
+ export * from "./is-transferable.js";
59
+ export * from "./is-true.js";
60
+ export * from "./is-typedarray.js";
61
+ export * from "./is-uint32.js";
62
+ export * from "./is-undefined.js";
63
+ export * from "./is-uuid.js";
64
+ export * from "./is-uuid4.js";
65
+ export * from "./is-zero.js";
66
66
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,65 +1,65 @@
1
- export * from "./exists-not-null";
2
- export * from "./exists";
3
- export * from "./has-bigint";
4
- export * from "./has-crypto";
5
- export * from "./has-max-length";
6
- export * from "./has-min-length";
7
- export * from "./has-performance";
8
- export * from "./has-wasm";
9
- export * from "./has-webgl";
10
- export * from "./has-websocket";
11
- export * from "./implements-function";
12
- export * from "./is-alphanum";
13
- export * from "./is-array";
14
- export * from "./is-arraylike";
15
- export * from "./is-ascii";
16
- export * from "./is-async-iterable";
17
- export * from "./is-blob";
18
- export * from "./is-boolean";
19
- export * from "./is-chrome";
20
- export * from "./is-data-url";
21
- export * from "./is-date";
22
- export * from "./is-even";
23
- export * from "./is-false";
24
- export * from "./is-file";
25
- export * from "./is-firefox";
26
- export * from "./is-float-string";
27
- export * from "./is-function";
28
- export * from "./is-hex";
29
- export * from "./is-hex-color";
30
- export * from "./is-ie";
31
- export * from "./is-in-range";
32
- export * from "./is-int32";
33
- export * from "./is-int-string";
34
- export * from "./is-iterable";
35
- export * from "./is-map";
36
- export * from "./is-mobile";
37
- export * from "./is-nan";
38
- export * from "./is-negative";
39
- export * from "./is-nil";
40
- export * from "./is-node";
41
- export * from "./is-not-string-iterable";
42
- export * from "./is-null";
43
- export * from "./is-number";
44
- export * from "./is-numeric";
45
- export * from "./is-object";
46
- export * from "./is-odd";
47
- export * from "./is-plain-object";
48
- export * from "./is-positive";
49
- export * from "./is-primitive";
50
- export * from "./is-promise";
51
- export * from "./is-promiselike";
52
- export * from "./is-proto-path";
53
- export * from "./is-regexp";
54
- export * from "./is-safari";
55
- export * from "./is-set";
56
- export * from "./is-string";
57
- export * from "./is-symbol";
58
- export * from "./is-transferable";
59
- export * from "./is-true";
60
- export * from "./is-typedarray";
61
- export * from "./is-uint32";
62
- export * from "./is-undefined";
63
- export * from "./is-uuid";
64
- export * from "./is-uuid4";
65
- export * from "./is-zero";
1
+ export * from "./exists-not-null.js";
2
+ export * from "./exists.js";
3
+ export * from "./has-bigint.js";
4
+ export * from "./has-crypto.js";
5
+ export * from "./has-max-length.js";
6
+ export * from "./has-min-length.js";
7
+ export * from "./has-performance.js";
8
+ export * from "./has-wasm.js";
9
+ export * from "./has-webgl.js";
10
+ export * from "./has-websocket.js";
11
+ export * from "./implements-function.js";
12
+ export * from "./is-alphanum.js";
13
+ export * from "./is-array.js";
14
+ export * from "./is-arraylike.js";
15
+ export * from "./is-ascii.js";
16
+ export * from "./is-async-iterable.js";
17
+ export * from "./is-blob.js";
18
+ export * from "./is-boolean.js";
19
+ export * from "./is-chrome.js";
20
+ export * from "./is-data-url.js";
21
+ export * from "./is-date.js";
22
+ export * from "./is-even.js";
23
+ export * from "./is-false.js";
24
+ export * from "./is-file.js";
25
+ export * from "./is-firefox.js";
26
+ export * from "./is-float-string.js";
27
+ export * from "./is-function.js";
28
+ export * from "./is-hex.js";
29
+ export * from "./is-hex-color.js";
30
+ export * from "./is-ie.js";
31
+ export * from "./is-in-range.js";
32
+ export * from "./is-int32.js";
33
+ export * from "./is-int-string.js";
34
+ export * from "./is-iterable.js";
35
+ export * from "./is-map.js";
36
+ export * from "./is-mobile.js";
37
+ export * from "./is-nan.js";
38
+ export * from "./is-negative.js";
39
+ export * from "./is-nil.js";
40
+ export * from "./is-node.js";
41
+ export * from "./is-not-string-iterable.js";
42
+ export * from "./is-null.js";
43
+ export * from "./is-number.js";
44
+ export * from "./is-numeric.js";
45
+ export * from "./is-object.js";
46
+ export * from "./is-odd.js";
47
+ export * from "./is-plain-object.js";
48
+ export * from "./is-positive.js";
49
+ export * from "./is-primitive.js";
50
+ export * from "./is-promise.js";
51
+ export * from "./is-promiselike.js";
52
+ export * from "./is-proto-path.js";
53
+ export * from "./is-regexp.js";
54
+ export * from "./is-safari.js";
55
+ export * from "./is-set.js";
56
+ export * from "./is-string.js";
57
+ export * from "./is-symbol.js";
58
+ export * from "./is-transferable.js";
59
+ export * from "./is-true.js";
60
+ export * from "./is-typedarray.js";
61
+ export * from "./is-uint32.js";
62
+ export * from "./is-undefined.js";
63
+ export * from "./is-uuid.js";
64
+ export * from "./is-uuid4.js";
65
+ export * from "./is-zero.js";
package/is-hex-color.js CHANGED
@@ -1,3 +1,3 @@
1
- import { isString } from "./is-string";
1
+ import { isString } from "./is-string.js";
2
2
  const RE = /^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i;
3
3
  export const isHexColor = (x) => isString(x) && RE.test(x);
package/is-promiselike.js CHANGED
@@ -1,3 +1,3 @@
1
- import { implementsFunction } from "./implements-function";
1
+ import { implementsFunction } from "./implements-function.js";
2
2
  export const isPromiseLike = (x) => x instanceof Promise ||
3
3
  (implementsFunction(x, "then") && implementsFunction(x, "catch"));
package/is-proto-path.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray } from "./is-array";
2
- import { isString } from "./is-string";
1
+ import { isArray } from "./is-array.js";
2
+ import { isString } from "./is-string.js";
3
3
  const ILLEGAL_KEYS = new Set(["__proto__", "prototype", "constructor"]);
4
4
  /**
5
5
  * Returns true, if given `x` is an illegal object key as per
package/is-safari.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isChrome } from "./is-chrome";
1
+ import { isChrome } from "./is-chrome.js";
2
2
  export const isSafari = () => typeof navigator !== "undefined" &&
3
3
  /Safari/.test(navigator.userAgent) &&
4
4
  !isChrome();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/checks",
3
- "version": "3.0.0",
3
+ "version": "3.0.4",
4
4
  "description": "Collection of 50+ type, feature & value checks",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -37,7 +37,7 @@
37
37
  "tslib": "^2.3.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@thi.ng/testament": "^0.1.0"
40
+ "@thi.ng/testament": "^0.1.4"
41
41
  },
42
42
  "keywords": [
43
43
  "detect",
@@ -53,6 +53,9 @@
53
53
  "process": false,
54
54
  "setTimeout": false
55
55
  },
56
+ "engines": {
57
+ "node": ">=12.7"
58
+ },
56
59
  "files": [
57
60
  "*.js",
58
61
  "*.d.ts"
@@ -257,5 +260,5 @@
257
260
  "import": "./is-zero.js"
258
261
  }
259
262
  },
260
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
263
+ "gitHead": "9ff00a103f76cc4917ef3f244132e218f2300a05"
261
264
  }