🚀 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.6
to
1.0.7
+13
-0
CHANGELOG.md

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

## [v1.0.7](https://github.com/inspect-js/typed-array-length/compare/v1.0.6...v1.0.7) - 2024-11-22
### Fixed
- [Fix] avoid relying on `__proto__` accessor [`#9`](https://github.com/inspect-js/typed-array-length/issues/9)
### Commits
- [Tests] fix TS issues [`f36b6bd`](https://github.com/inspect-js/typed-array-length/commit/f36b6bdbe472923cdd24158705a19b91ae5f512c)
- [actions] split out node 10-20, and 20+ [`d81efa0`](https://github.com/inspect-js/typed-array-length/commit/d81efa0b275161e82f78ceddb3ccf0bd63c2b834)
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@types/object-inspect`, `auto-changelog`, `object-inspect`, `tape` [`a61b15b`](https://github.com/inspect-js/typed-array-length/commit/a61b15baa1dbc40d0fdd0e23779bfa32acab6f5e)
- [Tests] replace `aud` with `npm audit` [`b0b4e8f`](https://github.com/inspect-js/typed-array-length/commit/b0b4e8fa9a3050edcddead80e86765d8fd78298c)
## [v1.0.6](https://github.com/inspect-js/typed-array-length/compare/v1.0.5...v1.0.6) - 2024-03-21

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

+3
-3

@@ -8,5 +8,5 @@ 'use strict';

var gOPD = require('gopd');
var hasProto = require('has-proto')();
var isTypedArray = require('is-typed-array');
var typedArrays = require('possible-typed-array-names');
var gPO = require('reflect.getprototypeof/polyfill')();

@@ -31,4 +31,4 @@ /** @typedef {(value: import('.').TypedArray) => number} TypedArrayLengthGetter */

var descriptor = gOPD(Proto, 'length');
if (!descriptor && hasProto) {
var superProto = Proto.__proto__; // eslint-disable-line no-proto
if (!descriptor) {
var superProto = gPO(Proto);
// @ts-expect-error TS doesn't narrow types inside callbacks, which is weird

@@ -35,0 +35,0 @@ descriptor = gOPD(superProto, 'length');

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

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

"test": "npm run tests-only && npm run test:harmony",
"posttest": "aud --production",
"posttest": "npx npm@'>=10.2' audit --production",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -58,4 +58,4 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@ljharb/eslint-config": "^21.1.0",
"@arethetypeswrong/cli": "^0.17.0",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.0",

@@ -68,6 +68,5 @@ "@types/call-bind": "^1.0.5",

"@types/make-generator-function": "^2.0.3",
"@types/object-inspect": "^1.8.4",
"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.6.4",
"aud": "^2.0.4",
"auto-changelog": "^2.4.0",
"auto-changelog": "^2.5.0",
"eslint": "=8.8.0",

@@ -81,5 +80,5 @@ "evalmd": "^0.0.19",

"nyc": "^10.3.2",
"object-inspect": "^1.13.1",
"object-inspect": "^1.13.3",
"safe-publish-latest": "^2.0.0",
"tape": "^5.7.5",
"tape": "^5.9.0",
"typescript": "next"

@@ -99,5 +98,5 @@ },

"gopd": "^1.0.1",
"has-proto": "^1.0.3",
"is-typed-array": "^1.1.13",
"possible-typed-array-names": "^1.0.0"
"possible-typed-array-names": "^1.0.0",
"reflect.getprototypeof": "^1.0.6"
},

@@ -109,3 +108,4 @@ "testling": {

"ignore": [
".github/workflows"
".github/workflows",
"types"
]

@@ -112,0 +112,0 @@ },

{
"extends": "@ljharb/tsconfig",
"compilerOptions": {
"target": "ES2021",
},
"exclude": [
"coverage",
],
"extends": "@ljharb/tsconfig",
"compilerOptions": {
"target": "ES2021",
"maxNodeModuleJsDepth": 0,
},
"exclude": [
"coverage",
],
}