Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

which-typed-array

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

which-typed-array - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

8

CHANGELOG.md

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

## [v1.1.10](https://github.com/inspect-js/which-typed-array/compare/v1.1.9...v1.1.10) - 2023-07-10
### Commits
- [actions] update rebase action to use reusable workflow [`2c10582`](https://github.com/inspect-js/which-typed-array/commit/2c105820d77274c079cb6d040cb348396e516ef5)
- [Robustness] use `call-bind` [`b2335fd`](https://github.com/inspect-js/which-typed-array/commit/b2335fdfca80840995eea5e6fcfffc6d712279a1)
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`ad5e41b`](https://github.com/inspect-js/which-typed-array/commit/ad5e41ba18e7d23af1f9b211215c43a64bf75d70)
## [v1.1.9](https://github.com/inspect-js/which-typed-array/compare/v1.1.8...v1.1.9) - 2022-11-02

@@ -10,0 +18,0 @@

7

index.js

@@ -5,2 +5,3 @@ 'use strict';

var availableTypedArrays = require('available-typed-arrays');
var callBind = require('call-bind');
var callBound = require('call-bind/callBound');

@@ -16,3 +17,3 @@ var gOPD = require('gopd');

var $slice = callBound('String.prototype.slice');
var toStrTags = {};
var toStrTags = { __proto__: null };
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');

@@ -30,3 +31,3 @@ if (hasToStringTag && gOPD && getPrototypeOf) {

}
toStrTags[typedArray] = descriptor.get;
toStrTags[typedArray] = callBind(descriptor.get);
}

@@ -42,3 +43,3 @@ }

try {
var name = getter.call(value);
var name = getter(value);
if (name === typedArray) {

@@ -45,0 +46,0 @@ foundName = name;

{
"name": "which-typed-array",
"version": "1.1.9",
"version": "1.1.10",
"author": {

@@ -69,4 +69,4 @@ "name": "Jordan Harband",

"devDependencies": {
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.1",
"@ljharb/eslint-config": "^21.1.0",
"aud": "^2.0.3",
"auto-changelog": "^2.4.0",

@@ -81,3 +81,3 @@ "eslint": "=8.8.0",

"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
"tape": "^5.6.4"
},

@@ -84,0 +84,0 @@ "testling": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc