Socket
Socket
Sign inDemoInstall

find-key

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

2

changelog.md
###find-key changelog
v1.0.2 - fixed some lint issues, updated lab, changed results creation and updated travis
v1.0.1 - fixed typos in readme and fixed linting issues for Travis test

@@ -4,0 +6,0 @@

5

lib/index.js
'use strict';
var results = [];
module.exports = function findKey (obj, key) {
module.exports = function findKey (obj, key, results) {
results = results || [];
if (typeof obj !== 'object' || obj === null) {

@@ -8,0 +9,0 @@ return;

{
"name": "find-key",
"version": "1.0.1",
"version": "1.1.0",
"description": "find value inside nested object from key name",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"code": "1.x.x",
"lab": "5.x.x"
"lab": "6.x.x"
},

@@ -22,3 +22,3 @@ "scripts": {

"author": "simon-p-r",
"license": "BSD",
"license": "BSD-3-Clause",
"bugs": {

@@ -25,0 +25,0 @@ "url": "https://github.com/simon-p-r/find-key/issues"

@@ -17,4 +17,4 @@

var obj = {
type: 'object',
properties: {
type: 'object',
properties: {
format: {

@@ -34,6 +34,6 @@ type: 'string',

}
},
additionaProperties: false,
format: 'dbRef',
title: 'country schema'
},
additionaProperties: false,
format: 'dbRef',
title: 'country schema'

@@ -40,0 +40,0 @@ };

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc