You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@socketregistry/object-keys

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socketregistry/object-keys - npm Package Compare versions

Comparing version

to
1.0.3

6

isArguments.js

@@ -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