object-rewrite
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -40,3 +40,3 @@ const assert = require("assert"); | ||
// eslint-disable-next-line no-param-reassign | ||
parents[0][key.slice(-1)[0]] = overwrite[needle](key, value, parents); | ||
parents[0][needle.split(".").slice(-1)[0]] = overwrite[needle](key, value, parents); | ||
} | ||
@@ -52,2 +52,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwib2JqZWN0U2NhbiIsInRyZWUiLCJtb2R1bGUiLCJleHBvcnRzIiwiZXhjbHVkZSIsImluamVjdCIsIm92ZXJ3cml0ZSIsInJldGFpbiIsIm5lZWRsZXMiLCJPYmplY3QiLCJrZXlzIiwiZXhjbHVkZWQiLCJyZXRhaW5lZCIsInNjYW5uZXIiLCJ1c2VBcnJheVNlbGVjdG9yIiwiam9pbmVkIiwiY2FsbGJhY2tGbiIsImtleSIsInZhbHVlIiwiaXNNYXRjaCIsIm5lZWRsZSIsInBhcmVudHMiLCJ1bmRlZmluZWQiLCJwdXNoIiwiaW5jbHVkZXMiLCJhc3NpZ24iLCJzbGljZSIsImlucHV0IiwicHJ1bmUiLCJsZW5ndGgiXSwibWFwcGluZ3MiOiJBQUFBLE1BQU1BLFNBQVNDLFFBQVEsUUFBUixDQUFmOztBQUNBLE1BQU1DLGFBQWFELFFBQVEsYUFBUixDQUFuQjs7QUFDQSxNQUFNRSxPQUFPRixRQUFRLGFBQVIsQ0FBYjs7QUFFQUcsT0FBT0MsT0FBUCxHQUFpQixDQUFDO0FBQ2hCQyxZQUFVLEVBRE07QUFFaEJDLFdBQVMsRUFGTztBQUdoQkMsY0FBWSxFQUhJO0FBSWhCQyxXQUFTLENBQUMsSUFBRDtBQUpPLENBQUQsS0FLWDtBQUNKLFFBQU1DLFVBQVUsQ0FDZCxHQUFHQ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LCB7IGlzTWF0Y2gsIG5lZWRsZSwgcGFyZW50cyB9KSA9PiB7XG4gICAgICBhc3NlcnQoaXNNYXRjaCA9PT0gdHJ1ZSk7XG4gICAgICBpZiAoZXhjbHVkZVtuZWVkbGVdICE9PSB1bmRlZmluZWQgJiYgZXhjbHVkZVtuZWVkbGVdKGtleSwgdmFsdWUsIHBhcmVudHMpID09PSB0cnVlKSB7XG4gICAgICAgIGV4Y2x1ZGVkLnB1c2goa2V5KTtcbiAgICAgIH1cbiAgICAgIGlmIChyZXRhaW4uaW5jbHVkZXMobmVlZGxlKSkge1xuICAgICAgICByZXRhaW5lZC5wdXNoKGtleSk7XG4gICAgICB9XG4gICAgICBpZiAoaW5qZWN0W25lZWRsZV0gIT09IHVuZGVmaW5lZCkge1xuICAgICAgICBPYmplY3QuYXNzaWduKHZhbHVlLCBpbmplY3RbbmVlZGxlXShrZXksIHZhbHVlLCBwYXJlbnRzKSk7XG4gICAgICB9XG4gICAgICBpZiAob3ZlcndyaXRlW25lZWRsZV0gIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgbm8tcGFyYW0tcmVhc3NpZ25cbiAgICAgICAgcGFyZW50c1swXVtuZWVkbGUuc3BsaXQoXCIuXCIpLnNsaWNlKC0xKVswXV0gPSBvdmVyd3JpdGVbbmVlZGxlXShrZXksIHZhbHVlLCBwYXJlbnRzKTtcbiAgICAgIH1cbiAgICB9XG4gIH0pO1xuXG4gIHJldHVybiAoaW5wdXQpID0+IHtcbiAgICBzY2FubmVyKGlucHV0KTtcbiAgICB0cmVlLnBydW5lKGlucHV0LCBleGNsdWRlZCwgcmV0YWluZWQpO1xuICAgIGV4Y2x1ZGVkLmxlbmd0aCA9IDA7XG4gICAgcmV0YWluZWQubGVuZ3RoID0gMDtcbiAgfTtcbn07XG4iXX0= |
{ | ||
"name": "object-rewrite", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Rewrite an Object", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"object-scan": "1.10.7" | ||
"object-scan": "1.10.8" | ||
}, | ||
@@ -13,0 +13,0 @@ "devDependencies": { |
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
18413
+ Addedobject-scan@1.10.8(transitive)
- Removedobject-scan@1.10.7(transitive)
Updatedobject-scan@1.10.8