breadth-filter
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,3 @@ | ||
const entries = require('object.entries') | ||
function targetFor (source, destructive) { | ||
@@ -18,3 +20,3 @@ if (Array.isArray(source)) { | ||
const [ source, target, path ] = item | ||
for (const [ key, value ] of Object.entries(source)) { | ||
for (const [ key, value ] of entries(source)) { | ||
const fieldPath = path.concat(key) | ||
@@ -21,0 +23,0 @@ const newTarget = targetFor(value, destructive) |
{ | ||
"name": "breadth-filter", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Breadth-first deep object filter", | ||
@@ -19,3 +19,6 @@ "author": "Stephen Belanger <admin@stephenbelanger.com> (https://github.com/qard)", | ||
"tap": "^12.1.0" | ||
}, | ||
"dependencies": { | ||
"object.entries": "^1.0.4" | ||
} | ||
} |
5530
171
1
+ Addedobject.entries@^1.0.4
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.1.1(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.7(transitive)
+ Addedget-proto@1.0.1(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.entries@1.1.8(transitive)
+ Addedset-function-length@1.2.2(transitive)