array-buffer-byte-length
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,2 +8,14 @@ # Changelog | ||
## [v1.0.1](https://github.com/inspect-js/array-buffer-byte-length/compare/v1.0.0...v1.0.1) - 2024-02-03 | ||
### Commits | ||
- [patch] add types [`598d446`](https://github.com/inspect-js/array-buffer-byte-length/commit/598d446f45c8f4246493b2a1fa2b32cd0c669602) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `object-inspect`, `tape` [`2572345`](https://github.com/inspect-js/array-buffer-byte-length/commit/257234593f576a7cbb1dce1b21d52abeb68db34d) | ||
- [Tests] add coverage [`d27357d`](https://github.com/inspect-js/array-buffer-byte-length/commit/d27357de558c3272341e252c3acc010d38edeb0f) | ||
- [Deps] update `call-bind`, `is-array-buffer` [`2ea13ad`](https://github.com/inspect-js/array-buffer-byte-length/commit/2ea13adc85b7d775d1649ac8e9469ac380cb3665) | ||
- [meta] add missing `engines.node` [`380e96d`](https://github.com/inspect-js/array-buffer-byte-length/commit/380e96d1c91dd579df0261950b46b62d4fed7a23) | ||
- [Deps] update `is-array-buffer` [`cfa7093`](https://github.com/inspect-js/array-buffer-byte-length/commit/cfa7093daaeeccbaa5228a22e6ec32a307d81549) | ||
- [meta] add `sideEffects` flag [`7297ddd`](https://github.com/inspect-js/array-buffer-byte-length/commit/7297dddd40a8f310bb69726a7a6edfae6111b8de) | ||
## v1.0.0 - 2023-02-28 | ||
@@ -10,0 +22,0 @@ |
@@ -8,2 +8,3 @@ 'use strict'; | ||
/** @type {import('.')} */ | ||
module.exports = function byteLength(ab) { | ||
@@ -10,0 +11,0 @@ if (!isArrayBuffer(ab)) { |
{ | ||
"name": "array-buffer-byte-length", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.", | ||
@@ -10,2 +10,4 @@ "main": "index.js", | ||
}, | ||
"sideEffects": false, | ||
"types": "./index.d.ts", | ||
"scripts": { | ||
@@ -18,2 +20,3 @@ "prepack": "npmignore --auto --commentLines=autogenerated", | ||
"lint": "eslint --ext=js,mjs .", | ||
"postlint": "tsc -p .", | ||
"tests-only": "nyc tape 'test/**/*.js'", | ||
@@ -49,8 +52,13 @@ "test": "npm run tests-only", | ||
"dependencies": { | ||
"call-bind": "^1.0.2", | ||
"is-array-buffer": "^3.0.1" | ||
"call-bind": "^1.0.5", | ||
"is-array-buffer": "^3.0.4" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^21.0.1", | ||
"aud": "^2.0.2", | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"@types/call-bind": "^1.0.5", | ||
"@types/es-value-fixtures": "^1.4.4", | ||
"@types/for-each": "^0.3.3", | ||
"@types/object-inspect": "^1.8.4", | ||
"@types/tape": "^5.6.4", | ||
"aud": "^2.0.4", | ||
"auto-changelog": "^2.4.0", | ||
@@ -62,7 +70,8 @@ "es-value-fixtures": "^1.4.2", | ||
"in-publish": "^2.0.1", | ||
"npmignore": "^0.3.0", | ||
"npmignore": "^0.3.1", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.12.3", | ||
"object-inspect": "^1.13.1", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.6.3" | ||
"tape": "^5.7.4", | ||
"typescript": "^5.4.0-dev.20240202" | ||
}, | ||
@@ -84,3 +93,6 @@ "auto-changelog": { | ||
] | ||
}, | ||
"engines": { | ||
"node": ">= 0.4" | ||
} | ||
} |
@@ -22,2 +22,5 @@ 'use strict'; | ||
var dv = new DataView(ab32); | ||
st.equal(byteLength(dv), NaN, 'a DataView returns NaN'); | ||
st.end(); | ||
@@ -24,0 +27,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13524
11
75
19
Updatedcall-bind@^1.0.5
Updatedis-array-buffer@^3.0.4