find-key
Advanced tools
Comparing version 1.0.1 to 1.1.0
###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 @@ |
'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
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
4428
0