🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

typed-array-length

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-array-length - npm Package Compare versions

Comparing version
1.0.7
to
1.0.8
+12
eslint.config.mjs
import ljharbConfig from '@ljharb/eslint-config/flat';
export default [
...ljharbConfig,
{
rules: {
complexity: ['error', 11],
'max-statements': ['error', 15],
'new-cap': ['error', { capIsNewExceptions: ['IsCallable'] }],
},
},
];
+13
-0

@@ -8,2 +8,15 @@ # Changelog

## [v1.0.8](https://github.com/inspect-js/typed-array-length/compare/v1.0.7...v1.0.8) - 2026-05-28
### Commits
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`; migrate to flat config [`24ae7de`](https://github.com/inspect-js/typed-array-length/commit/24ae7de57fa5e3f3da07b80a3cf78c73f0af4327)
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/tape`, `eslint`, `make-generator-function`, `npmignore`, `object-inspect` [`157fbce`](https://github.com/inspect-js/typed-array-length/commit/157fbce5cfaa4ab63492014fc13a2a70efd1f9fe)
- [types] improve types [`9580efa`](https://github.com/inspect-js/typed-array-length/commit/9580efac65f3728f65f679e3380e29522428de39)
- [Deps] update `call-bind`, `for-each`, `is-typed-array`, `possible-typed-array-names`, `reflect.getprototypeof` [`0b6c478`](https://github.com/inspect-js/typed-array-length/commit/0b6c478a07e57d883b7ea7c379f81c863aebc442)
- [Deps] update `call-bind`, `gopd`, `is-typed-array`, `reflect.getprototypeof` [`25825a3`](https://github.com/inspect-js/typed-array-length/commit/25825a3b562f42c93e2ab93bfedf8329ab4c76e1)
- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `eslint` [`ee0f33d`](https://github.com/inspect-js/typed-array-length/commit/ee0f33d09047d1b9680b18849bc51c20d96761e3)
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape` [`075f435`](https://github.com/inspect-js/typed-array-length/commit/075f435ba8aa79679a063c37681a6173a1cbd1b7)
- [Dev Deps] update `eslint` [`a16cdcc`](https://github.com/inspect-js/typed-array-length/commit/a16cdcc8dfcf3612cf64238a0e2685dfc1cbb6c1)
## [v1.0.7](https://github.com/inspect-js/typed-array-length/compare/v1.0.6...v1.0.7) - 2024-11-22

@@ -10,0 +23,0 @@

+3
-13
import type names from 'possible-typed-array-names';
import type { TypedArray } from 'is-typed-array';

@@ -7,18 +8,7 @@ declare function typedArrayLength(value: typedArrayLength.TypedArray): number;

declare namespace typedArrayLength {
type TypedArray =
| Int8Array
| Uint8Array
| Uint8ClampedArray
| Int16Array
| Uint16Array
| Int32Array
| Uint32Array
| Float32Array
| Float64Array
| BigInt64Array
| BigUint64Array;
export type { TypedArray };
type TypedArrayName = typeof names[number];
export type TypedArrayName = typeof names[number];
}
export = typedArrayLength;

@@ -16,3 +16,3 @@ 'use strict';

/** @type {Cache} */
// @ts-expect-error TS doesn't seem to have a "will eventually satisfy" type
// @ts-expect-error TS `satisfies` doesn't work in jsdoc
var getters = { __proto__: null };

@@ -19,0 +19,0 @@ var oDP = Object.defineProperty;

{
"name": "typed-array-length",
"version": "1.0.7",
"version": "1.0.8",
"description": "Robustly get the length of a Typed Array",

@@ -18,3 +18,3 @@ "main": "index.js",

"prelint": "evalmd README.md",
"lint": "eslint --ext=js,mjs .",
"lint": "eslint .",
"postlint": "tsc -p . && attw -P",

@@ -58,5 +58,5 @@ "tests-only": "nyc tape 'test/**/*.js'",

"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.0",
"@arethetypeswrong/cli": "^0.18.2",
"@ljharb/eslint-config": "^22.2.3",
"@ljharb/tsconfig": "^0.3.2",
"@types/call-bind": "^1.0.5",

@@ -69,13 +69,14 @@ "@types/for-each": "^0.3.3",

"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.6.4",
"auto-changelog": "^2.5.0",
"eslint": "=8.8.0",
"@types/tape": "^5.8.1",
"auto-changelog": "^2.5.1",
"eslint": "^10.4.0",
"evalmd": "^0.0.19",
"in-publish": "^2.0.1",
"is-callable": "^1.2.7",
"jiti": "^0.0.0",
"make-arrow-function": "^1.2.0",
"make-generator-function": "^2.0.0",
"npmignore": "^0.3.1",
"make-generator-function": "^2.1.0",
"npmignore": "^0.3.5",
"nyc": "^10.3.2",
"object-inspect": "^1.13.3",
"object-inspect": "^1.13.4",
"safe-publish-latest": "^2.0.0",

@@ -94,8 +95,8 @@ "tape": "^5.9.0",

"dependencies": {
"call-bind": "^1.0.7",
"for-each": "^0.3.3",
"gopd": "^1.0.1",
"is-typed-array": "^1.1.13",
"possible-typed-array-names": "^1.0.0",
"reflect.getprototypeof": "^1.0.6"
"call-bind": "^1.0.9",
"for-each": "^0.3.5",
"gopd": "^1.2.0",
"is-typed-array": "^1.1.15",
"possible-typed-array-names": "^1.1.0",
"reflect.getprototypeof": "^1.0.10"
},

@@ -102,0 +103,0 @@ "testling": {

@@ -63,3 +63,3 @@ 'use strict';

forEach(typedArrayNames, function (typedArray) {
/** @type {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor} */
/** @type {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float16ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor} */
var TypedArray = global[typedArray];

@@ -66,0 +66,0 @@ if (isCallable(TypedArray)) {

{
"root": true,
"extends": "@ljharb",
"rules": {
"complexity": [2, 11],
"max-statements": [2, 15],
"new-cap": [2, { "capIsNewExceptions": ["IsCallable"] }],
},
}