@thi.ng/checks 3.3.3 → 3.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-23T22:46:54Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [3.3.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.3.5) (2022-12-16)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - add generics for isFunction() ([2850048](https://github.com/thi-ng/umbrella/commit/2850048))
17
+
12
18
  ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.3.0) (2022-10-17)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![checks](https://media.thi.ng/umbrella/banners-20220914/thing-checks.svg?8a250e50)
3
+ # ![@thi.ng/checks](https://media.thi.ng/umbrella/banners-20220914/thing-checks.svg?8a250e50)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/checks.svg)](https://www.npmjs.com/package/@thi.ng/checks)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/checks.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -15,13 +15,11 @@ This project is part of the
15
15
  - [Dependencies](#dependencies)
16
16
  - [API](#api)
17
17
  - [Authors](#authors)
18
- - [Maintainer](#maintainer)
19
- - [Contributors](#contributors)
20
18
  - [License](#license)
21
19
 
22
20
  ## About
23
21
 
24
- Collection of 70+ type, feature & value checks.
22
+ Collection of 70+ type, feature & value checks
25
23
 
26
24
  ## Status
27
25
 
@@ -45,14 +43,11 @@ ES module import:
45
43
 
46
44
  For Node.js REPL:
47
45
 
48
- ```text
49
- # with flag only for < v16
50
- node --experimental-repl-await
51
-
52
- > const checks = await import("@thi.ng/checks");
46
+ ```js
47
+ const checks = await import("@thi.ng/checks");
53
48
  ```
54
49
 
55
- Package sizes (gzipped, pre-treeshake): ESM: 1.74 KB
50
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.59 KB
56
51
 
57
52
  ## Dependencies
58
53
 
@@ -66,14 +61,9 @@ TODO
66
61
 
67
62
  ## Authors
68
63
 
69
- ### Maintainer
70
-
71
- - Karsten Schmidt ([@postspectacular](https://github.com/postspectacular))
72
-
73
- ### Contributors
74
-
75
- - Gavin Cannizzaro ([@gavinpc-mindgrub](https://github.com/gavinpc-mindgrub))
76
- - Jay Zawrotny ([@eccentric-j](https://github.com/eccentric-j))
64
+ - [Karsten Schmidt](https://thi.ng) (Main author)
65
+ - [Gavin Cannizzaro](https://github.com/gavinpc-mindgrub)
66
+ - [Jay Zawrotny](https://github.com/eccentric-j)
77
67
 
78
68
  If this project contributes to an academic publication, please cite it as:
79
69
 
@@ -88,4 +78,4 @@ If this project contributes to an academic publication, please cite it as:
88
78
 
89
79
  ## License
90
80
 
91
- &copy; 2016 - 2022 Karsten Schmidt // Apache Software License 2.0
81
+ &copy; 2016 - 2022 Karsten Schmidt // Apache License 2.0
package/is-function.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const isFunction: (x: any) => x is Function;
1
+ export declare const isFunction: <T extends Function>(x: any) => x is T;
2
2
  //# sourceMappingURL=is-function.d.ts.map
@@ -1,4 +1,4 @@
1
- declare type TypedArray = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array;
1
+ type TypedArray = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array;
2
2
  export declare const isTypedArray: (x: any) => x is TypedArray;
3
3
  export {};
4
4
  //# sourceMappingURL=is-typedarray.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/checks",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "description": "Collection of 70+ type, feature & value checks",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,11 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
+ "contributors": [
26
+ "Gavin Cannizzaro (https://github.com/gavinpc-mindgrub)",
27
+ "Jay Zawrotny (https://github.com/eccentric-j)"
28
+ ],
25
29
  "license": "Apache-2.0",
26
30
  "scripts": {
27
31
  "build": "yarn clean && tsc --declaration",
@@ -37,13 +41,13 @@
37
41
  "tslib": "^2.4.1"
38
42
  },
39
43
  "devDependencies": {
40
- "@microsoft/api-extractor": "^7.33.5",
41
- "@thi.ng/testament": "^0.3.5",
42
- "@types/node": "^18.11.9",
44
+ "@microsoft/api-extractor": "^7.33.7",
45
+ "@thi.ng/testament": "^0.3.7",
46
+ "@types/node": "^18.11.13",
43
47
  "rimraf": "^3.0.2",
44
48
  "tools": "^0.0.1",
45
- "typedoc": "^0.23.20",
46
- "typescript": "^4.8.4"
49
+ "typedoc": "^0.23.22",
50
+ "typescript": "^4.9.4"
47
51
  },
48
52
  "keywords": [
49
53
  "detect",
@@ -272,5 +276,5 @@
272
276
  "default": "./is-zero.js"
273
277
  }
274
278
  },
275
- "gitHead": "044ee6a3895720fc78e115032d4d831b63510929\n"
279
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
276
280
  }