@thi.ng/checks 3.4.24 → 3.5.0
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 +7 -1
- package/README.md +2 -2
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/is-arraybufferlike.d.ts +2 -0
- package/is-arraybufferlike.js +4 -0
- package/is-arraybufferview.d.ts +2 -0
- package/is-arraybufferview.js +6 -0
- package/package.json +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-02-
|
|
3
|
+
- **Last updated**: 2024-02-22T11:59:16Z
|
|
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.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.5.0) (2024-02-22)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- add isArrayBufferLike(), isArrayBufferView() ([652a1d2](https://github.com/thi-ng/umbrella/commit/652a1d2))
|
|
17
|
+
|
|
12
18
|
### [3.4.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.4.7) (2023-11-09)
|
|
13
19
|
|
|
14
20
|
#### 🩹 Bug fixes
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[](https://mastodon.thi.ng/@toxi)
|
|
19
19
|
|
|
20
20
|
> [!NOTE]
|
|
21
|
-
> This is one of
|
|
21
|
+
> This is one of 190 standalone projects, maintained as part
|
|
22
22
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
23
23
|
> and anti-framework.
|
|
24
24
|
>
|
|
@@ -63,7 +63,7 @@ For Node.js REPL:
|
|
|
63
63
|
const checks = await import("@thi.ng/checks");
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
66
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.65 KB
|
|
67
67
|
|
|
68
68
|
## Dependencies
|
|
69
69
|
|
package/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from "./has-websocket.js";
|
|
|
11
11
|
export * from "./implements-function.js";
|
|
12
12
|
export * from "./is-alphanum.js";
|
|
13
13
|
export * from "./is-array.js";
|
|
14
|
+
export * from "./is-arraybufferlike.js";
|
|
15
|
+
export * from "./is-arraybufferview.js";
|
|
14
16
|
export * from "./is-arraylike.js";
|
|
15
17
|
export * from "./is-ascii.js";
|
|
16
18
|
export * from "./is-async-iterable.js";
|
package/index.js
CHANGED
|
@@ -11,6 +11,8 @@ export * from "./has-websocket.js";
|
|
|
11
11
|
export * from "./implements-function.js";
|
|
12
12
|
export * from "./is-alphanum.js";
|
|
13
13
|
export * from "./is-array.js";
|
|
14
|
+
export * from "./is-arraybufferlike.js";
|
|
15
|
+
export * from "./is-arraybufferview.js";
|
|
14
16
|
export * from "./is-arraylike.js";
|
|
15
17
|
export * from "./is-ascii.js";
|
|
16
18
|
export * from "./is-async-iterable.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { isArrayBufferLike } from "./is-arraybufferlike.js";
|
|
2
|
+
import { isNumber } from "./is-number.js";
|
|
3
|
+
const isArrayBufferView = (x) => x != null && isArrayBufferLike(x.buffer) && isNumber(x.byteOffset) && isNumber(x.byteLength);
|
|
4
|
+
export {
|
|
5
|
+
isArrayBufferView
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/checks",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Collection of 70+ type, feature & value checks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -113,6 +113,12 @@
|
|
|
113
113
|
"./is-array": {
|
|
114
114
|
"default": "./is-array.js"
|
|
115
115
|
},
|
|
116
|
+
"./is-arraybufferlike": {
|
|
117
|
+
"default": "./is-arraybufferlike.js"
|
|
118
|
+
},
|
|
119
|
+
"./is-arraybufferview": {
|
|
120
|
+
"default": "./is-arraybufferview.js"
|
|
121
|
+
},
|
|
116
122
|
"./is-arraylike": {
|
|
117
123
|
"default": "./is-arraylike.js"
|
|
118
124
|
},
|
|
@@ -279,5 +285,5 @@
|
|
|
279
285
|
"default": "./is-zero.js"
|
|
280
286
|
}
|
|
281
287
|
},
|
|
282
|
-
"gitHead": "
|
|
288
|
+
"gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
|
|
283
289
|
}
|