@thi.ng/checks 3.4.24 → 3.5.1

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**: 2024-02-19T16:07:07Z
3
+ - **Last updated**: 2024-03-01T15:22:50Z
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
@@ -1,16 +1,5 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- > [!IMPORTANT]
4
- > ‼️ Announcing the thi.ng user survey 2024 📋
5
- >
6
- > [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
7
- > (open until end of February)
8
- >
9
- > **To achieve a better sample size, I'd highly appreciate if you could
10
- > circulate the link to this survey in your own networks.**
11
- >
12
- > [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
13
-
14
3
  # ![@thi.ng/checks](https://media.thi.ng/umbrella/banners-20230807/thing-checks.svg?8a250e50)
15
4
 
16
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/checks.svg)](https://www.npmjs.com/package/@thi.ng/checks)
@@ -18,11 +7,11 @@
18
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
19
8
 
20
9
  > [!NOTE]
21
- > This is one of 189 standalone projects, maintained as part
10
+ > This is one of 190 standalone projects, maintained as part
22
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
12
  > and anti-framework.
24
13
  >
25
- > 🚀 Help me to work full-time on these projects by [sponsoring me on
14
+ > 🚀 Please help me to work full-time on these projects by [sponsoring me on
26
15
  > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
27
16
 
28
17
  - [About](#about)
@@ -63,7 +52,7 @@ For Node.js REPL:
63
52
  const checks = await import("@thi.ng/checks");
64
53
  ```
65
54
 
66
- Package sizes (brotli'd, pre-treeshake): ESM: 1.61 KB
55
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.65 KB
67
56
 
68
57
  ## Dependencies
69
58
 
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,2 @@
1
+ export declare const isArrayBufferLike: (x: any) => x is ArrayBufferLike;
2
+ //# sourceMappingURL=is-arraybufferlike.d.ts.map
@@ -0,0 +1,4 @@
1
+ const isArrayBufferLike = (x) => x instanceof ArrayBuffer || x instanceof SharedArrayBuffer;
2
+ export {
3
+ isArrayBufferLike
4
+ };
@@ -0,0 +1,2 @@
1
+ export declare const isArrayBufferView: (x: any) => x is ArrayBufferView;
2
+ //# sourceMappingURL=is-arraybufferview.d.ts.map
@@ -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.4.24",
3
+ "version": "3.5.1",
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": "2724c87ca41810f2112f9d8c3d6b90dfaeea876b\n"
288
+ "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
283
289
  }