object-rewrite
Advanced tools
Comparing version 2.1.7 to 2.1.8
@@ -15,3 +15,3 @@ const objectScan = require('object-scan'); | ||
joined: false, | ||
callbackFn: (key, value, { | ||
filterFn: (key, value, { | ||
isMatch, | ||
@@ -35,2 +35,3 @@ matchedBy, | ||
}); | ||
return true; | ||
} | ||
@@ -60,3 +61,3 @@ }); | ||
if (matchedBy.some(n => retain.includes(n)) || retainEmptyParents === true && Array.isArray(value) && traversedBy.some(n => retain.includes(n))) { | ||
if (matchedBy.some(n => retain.includes(n)) || retainEmptyParents === true && traversedBy.some(n => retain.includes(n))) { | ||
toRetain.push(key); | ||
@@ -76,2 +77,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJvYmplY3RTY2FuIiwicmVxdWlyZSIsInRyZWUiLCJtb2R1bGUiLCJleHBvcnRzIiwiZmlsdGVyIiwiaW5qZWN0Iiwib3ZlcndyaXRlIiwicmV0YWluIiwicmV0YWluRW1wdHlQYXJlbnRzIiwic2Nhbm5lckluamVjdEFuZE92ZXJ3cml0ZSIsIk9iamVjdCIsImtleXMiLCJjb25jYXQiLCJ1c2VBcnJheVNlbGVjdG9yIiwiam9pbmVkIiwiY2FsbGJhY2tGbiIsImtleSIsInZhbHVlIiwiaXNNYXRjaCIsIm1hdGNoZWRCeSIsInBhcmVudHMiLCJzb3J0IiwiZm9yRWFjaCIsIm4iLCJ1bmRlZmluZWQiLCJhc3NpZ24iLCJsYXN0U3RyaW5nSW5kZXgiLCJyZWR1Y2UiLCJwIiwiYyIsImlkeCIsImRpcmVjdFBhcmVudCIsInNsaWNlIiwidG9SZW1vdmUiLCJ0b1JldGFpbiIsInNjYW5uZXJSZW1vdmVBbmRSZXRhaW4iLCJicmVha0ZuIiwidHJhdmVyc2VkQnkiLCJBcnJheSIsImlzQXJyYXkiLCJzb21lIiwicHVzaCIs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luRW1wdHlQYXJlbnRzID09PSB0cnVlXG4gICAgICAgICAgJiYgdHJhdmVyc2VkQnkuc29tZShuID0+IHJldGFpbi5pbmNsdWRlcyhuKSlcbiAgICAgICAgKVxuICAgICAgKSB7XG4gICAgICAgIHRvUmV0YWluLnB1c2goa2V5KTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gIH0pO1xuXG4gIHJldHVybiAoaW5wdXQpID0+IHtcbiAgICBzY2FubmVySW5qZWN0QW5kT3ZlcndyaXRlKGlucHV0KTtcbiAgICBzY2FubmVyUmVtb3ZlQW5kUmV0YWluKGlucHV0KTtcbiAgICB0cmVlLnBydW5lKGlucHV0LCB0b1JlbW92ZSwgdG9SZXRhaW4pO1xuICAgIHRvUmVtb3ZlLmxlbmd0aCA9IDA7XG4gICAgdG9SZXRhaW4ubGVuZ3RoID0gMDtcbiAgfTtcbn07XG4iXX0= |
{ | ||
"name": "object-rewrite", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "Rewrite an Object", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"object-scan": "3.1.1" | ||
"object-scan": "5.0.0" | ||
}, | ||
@@ -17,3 +17,3 @@ "devDependencies": { | ||
"coveralls": "3.0.3", | ||
"js-gardener": "1.37.5", | ||
"js-gardener": "1.37.6", | ||
"nyc": "13.3.0", | ||
@@ -20,0 +20,0 @@ "semantic-release": "15.13.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112
23615
+ Addedobject-scan@5.0.0(transitive)
- Removedobject-scan@3.1.1(transitive)
Updatedobject-scan@5.0.0