@socketregistry/object-keys
Advanced tools
Comparing version
@@ -5,2 +5,4 @@ 'use strict' | ||
const { toString: objToStr } = Object.prototype | ||
const { apply: ReflectApply } = Reflect | ||
const { toStringTag: SymbolToStringTag } = Symbol | ||
@@ -11,7 +13,7 @@ module.exports = function isArguments(value) { | ||
typeof value !== 'object' || | ||
Symbol.toStringTag in value | ||
SymbolToStringTag in value | ||
) { | ||
return false | ||
} | ||
if (objToStr.call(value) === '[object Arguments]') { | ||
if (ReflectApply(objToStr, value, []) === '[object Arguments]') { | ||
return true | ||
@@ -18,0 +20,0 @@ } |
{ | ||
"name": "@socketregistry/object-keys", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Socket.dev optimized package override for object-keys", |
@@ -15,4 +15,4 @@ # @socketregistry/object-keys | ||
[`@socketsecurity/cli`](https://socket.dev/npm/package/@socketsecurity/cli) will | ||
automagically :sparkles: populate the | ||
[`socket`](https://socket.dev/npm/package/socket) CLI will automagically | ||
:sparkles: populate the | ||
[overrides](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides) | ||
@@ -23,7 +23,7 @@ and [resolutions](https://yarnpkg.com/configuration/manifest#resolutions) fields | ||
```sh | ||
npx @socketsecurity/cli optimize | ||
npx socket optimize | ||
``` | ||
Prefer to do it yourself? You may manually add `@socketregistry/object-keys` to | ||
your `package.json`. | ||
Prefer to do it yourself? Add `@socketregistry/object-keys` to your | ||
`package.json`. | ||
@@ -43,3 +43,3 @@ ```json | ||
Install with your preferred package manager. | ||
Install with your favorite package manager. | ||
@@ -46,0 +46,0 @@ ```sh |
5734
0.86%52
4%