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

parse-keys

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-keys - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

7

index.js
'use strict';
var assign = require('object-assign');
var hasOwn = require('hasown');

@@ -9,3 +10,7 @@ module.exports = function(object, keys){

;(keys || Object.keys(object)).forEach(function(key){
if (keys){
keys = keys.filter(hasOwn(object))
}
keys.forEach(function(key){
var value = object[key]

@@ -12,0 +17,0 @@

3

package.json
{
"name": "parse-keys",
"version": "1.1.1",
"version": "1.2.0",
"description": "JSON.parse only object keys",

@@ -26,4 +26,5 @@ "main": "index.js",

"dependencies": {
"hasown": "^1.0.1",
"object-assign": "^3.0.0"
}
}
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