object-scan
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -34,3 +34,3 @@ const uniq = require("lodash.uniq"); | ||
if (ctx.breakFn === undefined || !ctx.breakFn(pathIn.map(escape).join("."), haystack)) { | ||
if (typeof haystack === "object") { | ||
if (haystack instanceof Object) { | ||
if (Array.isArray(haystack)) { | ||
@@ -80,2 +80,2 @@ for (let i = 0; i < haystack.length; i += 1) { | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJ1bmlxIiwicmVxdWlyZSIsInBhcnNlciIsImVzY2FwZSIsImlucHV0IiwiU3RyaW5nIiwicmVwbGFjZSIsImNvbXBhcmUiLCJ3aWxkY2FyZCIsImFyciIsImN0eCIsIm1hdGNoIiwicmVnZXhDYWNoZSIsInVuZGVmaW5lZCIsIlJlZ0V4cCIsInNwbGl0IiwibWFwIiwicCIsImpvaW4iLCJtYXRjaGVzIiwiQXJyYXkiLCJpc0FycmF5Iiwic29tZSIsIndjIiwiZmluZCIsImhheXN0YWNrIiwiY2hlY2tzIiwicGF0aEluIiwicmVzdWx0IiwiY2hlY2siLCJsZW5ndGgiLCJmaWx0ZXJGbiIsInB1c2giLCJqb2luZWQiLCJyZWR1Y2UiLCJjIiwiaXNOdW1iZXIiLCJicmVha0ZuIiwiaSIsInBhdGhPdXQiLCJjb25jYXQiLCJmaWx0ZXIiLCJmb3JFYWNoIiwic2xpY2UiLCJPYmplY3QiLCJlbnRyaWVzIiwia2V5IiwidmFsdWUiLCJlc2NhcGVkS2V5IiwibW9kdWxlIiwiZXhwb3J0cyIsIm5lZWRsZXMiLCJzZWFyY2giXSwibWFwcGluZ3MiOiJBQUFBLE1BQU1BLE9BQU9DLFFBQVEsYUFBUixDQUFiOztBQUNBLE1BQU1DLFNBQVNELFFBQVEsZUFBUixDQUFmOztBQUVBLE1BQU1FLFNBQVNDLFNBQVNDL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F5c3RhY2spKSB7XG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgaGF5c3RhY2subGVuZ3RoOyBpICs9IDEpIHtcbiAgICAgICAgICBjb25zdCBwYXRoT3V0ID0gcGF0aEluLmNvbmNhdChpKTtcbiAgICAgICAgICBjaGVja3NcbiAgICAgICAgICAgIC5maWx0ZXIoY2hlY2sgPT4gY2hlY2subGVuZ3RoICE9PSAwKVxuICAgICAgICAgICAgLmZvckVhY2goKGNoZWNrKSA9PiB7XG4gICAgICAgICAgICAgIGlmIChjaGVja1swXSA9PT0gXCIqKlwiKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1tpXSwgW2NoZWNrLCBjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKG1hdGNoZXMoY2hlY2tbMF0sIGBbJHtpfV1gLCB0cnVlLCBjdHgpKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1tpXSwgW2NoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCwgY3R4KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBPYmplY3QuZW50cmllcyhoYXlzdGFjaykuZm9yRWFjaCgoW2tleSwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgY29uc3QgZXNjYXBlZEtleSA9IGVzY2FwZShrZXkpO1xuICAgICAgICAgIGNvbnN0IHBhdGhPdXQgPSBwYXRoSW4uY29uY2F0KGtleSk7XG4gICAgICAgICAgY2hlY2tzXG4gICAgICAgICAgICAuZmlsdGVyKGNoZWNrID0+IGNoZWNrLmxlbmd0aCAhPT0gMClcbiAgICAgICAgICAgIC5mb3JFYWNoKChjaGVjaykgPT4ge1xuICAgICAgICAgICAgICBpZiAoY2hlY2tbMF0gPT09IFwiKipcIikge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtjaGVjaywgY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0LCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChtYXRjaGVzKGNoZWNrWzBdLCBlc2NhcGVkS2V5LCBmYWxzZSwgY3R4KSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiByZXN1bHQ7XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IChuZWVkbGVzLCB7XG4gIGZpbHRlckZuID0gdW5kZWZpbmVkLFxuICBicmVha0ZuID0gdW5kZWZpbmVkLFxuICBqb2luZWQgPSB0cnVlXG59ID0ge30pID0+IHtcbiAgY29uc3Qgc2VhcmNoID0gdW5pcShuZWVkbGVzKS5tYXAocGFyc2VyKTtcbiAgY29uc3QgcmVnZXhDYWNoZSA9IHt9O1xuXG4gIHJldHVybiBoYXlzdGFjayA9PiB1bmlxKGZpbmQoaGF5c3RhY2ssIHNlYXJjaCwgW10sIHtcbiAgICBmaWx0ZXJGbiwgYnJlYWtGbiwgam9pbmVkLCByZWdleENhY2hlXG4gIH0pKTtcbn07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJ1bmlxIiwicmVxdWlyZSIsInBhcnNlciIsImVzY2FwZSIsImlucHV0IiwiU3RyaW5nIiwicmVwbGFjZSIsImNvbXBhcmUiLCJ3aWxkY2FyZCIsImFyciIsImN0eCIsIm1hdGNoIiwicmVnZXhDYWNoZSIsInVuZ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UgaWYgKG1hdGNoZXMoY2hlY2tbMF0sIGBbJHtpfV1gLCB0cnVlLCBjdHgpKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1tpXSwgW2NoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCwgY3R4KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBPYmplY3QuZW50cmllcyhoYXlzdGFjaykuZm9yRWFjaCgoW2tleSwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgY29uc3QgZXNjYXBlZEtleSA9IGVzY2FwZShrZXkpO1xuICAgICAgICAgIGNvbnN0IHBhdGhPdXQgPSBwYXRoSW4uY29uY2F0KGtleSk7XG4gICAgICAgICAgY2hlY2tzXG4gICAgICAgICAgICAuZmlsdGVyKGNoZWNrID0+IGNoZWNrLmxlbmd0aCAhPT0gMClcbiAgICAgICAgICAgIC5mb3JFYWNoKChjaGVjaykgPT4ge1xuICAgICAgICAgICAgICBpZiAoY2hlY2tbMF0gPT09IFwiKipcIikge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtjaGVjaywgY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0LCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChtYXRjaGVzKGNoZWNrWzBdLCBlc2NhcGVkS2V5LCBmYWxzZSwgY3R4KSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiByZXN1bHQ7XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IChuZWVkbGVzLCB7XG4gIGZpbHRlckZuID0gdW5kZWZpbmVkLFxuICBicmVha0ZuID0gdW5kZWZpbmVkLFxuICBqb2luZWQgPSB0cnVlXG59ID0ge30pID0+IHtcbiAgY29uc3Qgc2VhcmNoID0gdW5pcShuZWVkbGVzKS5tYXAocGFyc2VyKTtcbiAgY29uc3QgcmVnZXhDYWNoZSA9IHt9O1xuXG4gIHJldHVybiBoYXlzdGFjayA9PiB1bmlxKGZpbmQoaGF5c3RhY2ssIHNlYXJjaCwgW10sIHtcbiAgICBmaWx0ZXJGbiwgYnJlYWtGbiwgam9pbmVkLCByZWdleENhY2hlXG4gIH0pKTtcbn07XG4iXX0= |
{ | ||
"name": "object-scan", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Find Keys using Wildcard matching and optional value function.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
23936