object-scan
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -54,3 +54,3 @@ const uniq = require("lodash.uniq"); | ||
parents, | ||
needle: checks[0].needle | ||
needle: checks.reduce((p, c) => p.length > c.length ? c : p, checks[0]).needle | ||
}) !== true) { | ||
@@ -113,2 +113,2 @@ if (haystack instanceof Object) { | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJ1bmlxIiwicmVxdWlyZSIsInBhcnNlciIsImVzY2FwZSIsImlucHV0IiwiU3RyaW5nIiwicmVwbGFjZSIsImNvbXBhcmUiLCJ3aWxkY2FyZCIsImFyciIsImN0eCIsIm1hdGNoIiwicmVnZXhDYWNoZSIsInVuZGVmaW5lZCIsIlJlZ0V4cCIsInNwbGl0IiwibWFwIiwicCIsImpvaW4iLCJtYXRjaGVzIiwiQXJyYXkiLCJpc0FycmF5Iiwic29tZSIsIndjIiwiZm9ybWF0UGF0aCIsImpvaW5lZCIsInJlZHVjZSIsImMiLCJpc051bWJlciIsImVzY2FwZVBhdGhzIiwic2xpY2UiLCJhcnJheSIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwidmFsdWUiLCJuZWVkbGUiLCJ3cml0YWJsZSIsImZpbmQiLCJoYXlzdGFjayIsImNoZWNrcyIsInBhdGhJbiIsInBhcmVudHMiLCJyZXN1bHQiLCJjaGVjayIsImxlbmd0aCIsImV4Y2x1ZGVGbiIsImNhbGxiYWNrRm4iLCJwdXNoIiwiYnJlYWtGbiIsImkiLCJwYXRoT3V0IiwiY29uY2F0IiwiZmlsdGVyIiwiZm9yRWFjaCIsInVzZUFycmF5U2VsZWN0b3IiLCJlbnRyaWVzIiwia2V5IiwiZXNjYXBlZEtleSIsIm1vZHVsZSIsImV4cG9ydHMiLCJuZWVkbGVzIiwic2VhcmNoIl0sIm1hcHBpbmdzIjoiQUFBQSxNQUFN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JbiwgY3R4KSwgaGF5c3RhY2ssIHsgcGFyZW50cywgbmVlZGxlOiBjaGVja3NbMF0ubmVlZGxlIH0pICE9PSB0cnVlXG4gICkge1xuICAgIGlmIChoYXlzdGFjayBpbnN0YW5jZW9mIE9iamVjdCkge1xuICAgICAgaWYgKEFycmF5LmlzQXJyYXkoaGF5c3RhY2spKSB7XG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgaGF5c3RhY2subGVuZ3RoOyBpICs9IDEpIHtcbiAgICAgICAgICBjb25zdCBwYXRoT3V0ID0gcGF0aEluLmNvbmNhdChpKTtcbiAgICAgICAgICBjaGVja3NcbiAgICAgICAgICAgIC5maWx0ZXIoY2hlY2sgPT4gY2hlY2subGVuZ3RoICE9PSAwKVxuICAgICAgICAgICAgLmZvckVhY2goKGNoZWNrKSA9PiB7XG4gICAgICAgICAgICAgIGlmIChjdHgudXNlQXJyYXlTZWxlY3RvciA9PT0gZmFsc2UpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2tdLCBwYXRoT3V0LCBwYXJlbnRzLCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChjaGVja1swXSA9PT0gXCIqKlwiKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1tpXSwgW2NoZWNrLCBzbGljZShjaGVjayldLCBwYXRoT3V0LCBwYXJlbnRzLmNvbmNhdChbaGF5c3RhY2tdKSwgY3R4KSk7XG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAobWF0Y2hlcyhjaGVja1swXSwgYFske2l9XWAsIHRydWUsIGN0eCkpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbc2xpY2UoY2hlY2spXSwgcGF0aE91dCwgcGFyZW50cy5jb25jYXQoW2hheXN0YWNrXSksIGN0eCkpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgT2JqZWN0LmVudHJpZXMoaGF5c3RhY2spLmZvckVhY2goKFtrZXksIHZhbHVlXSkgPT4ge1xuICAgICAgICAgIGNvbnN0IGVzY2FwZWRLZXkgPSBlc2NhcGUoa2V5KTtcbiAgICAgICAgICBjb25zdCBwYXRoT3V0ID0gcGF0aEluLmNvbmNhdChrZXkpO1xuICAgICAgICAgIGNoZWNrc1xuICAgICAgICAgICAgLmZpbHRlcihjaGVjayA9PiBjaGVjay5sZW5ndGggIT09IDApXG4gICAgICAgICAgICAuZm9yRWFjaCgoY2hlY2spID0+IHtcbiAgICAgICAgICAgICAgaWYgKGNoZWNrWzBdID09PSBcIioqXCIpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKHZhbHVlLCBbY2hlY2ssIHNsaWNlKGNoZWNrKV0sIHBhdGhPdXQsIHBhcmVudHMuY29uY2F0KFtoYXlzdGFja10pLCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChtYXRjaGVzKGNoZWNrWzBdLCBlc2NhcGVkS2V5LCBmYWxzZSwgY3R4KSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtzbGljZShjaGVjayldLCBwYXRoT3V0LCBwYXJlbnRzLmNvbmNhdChbaGF5c3RhY2tdKSwgY3R4KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn07XG5cbm1vZHVsZS5leHBvcnRzID0gKG5lZWRsZXMsIHtcbiAgZXhjbHVkZUZuID0gdW5kZWZpbmVkLFxuICBicmVha0ZuID0gdW5kZWZpbmVkLFxuICBjYWxsYmFja0ZuID0gdW5kZWZpbmVkLFxuICBqb2luZWQgPSB0cnVlLFxuICBlc2NhcGVQYXRocyA9IHRydWUsXG4gIHVzZUFycmF5U2VsZWN0b3IgPSB0cnVlXG59ID0ge30pID0+IHtcbiAgY29uc3Qgc2VhcmNoID0gdW5pcShuZWVkbGVzKS5tYXAobmVlZGxlID0+IE9iamVjdFxuICAgIC5kZWZpbmVQcm9wZXJ0eShwYXJzZXIobmVlZGxlKSwgXCJuZWVkbGVcIiwgeyB2YWx1ZTogbmVlZGxlLCB3cml0YWJsZTogZmFsc2UgfSkpO1xuICBjb25zdCByZWdleENhY2hlID0ge307XG5cbiAgcmV0dXJuIGhheXN0YWNrID0+IHVuaXEoZmluZChoYXlzdGFjaywgc2VhcmNoLCBbXSwgW10sIHtcbiAgICBleGNsdWRlRm4sXG4gICAgYnJlYWtGbixcbiAgICBjYWxsYmFja0ZuLFxuICAgIGpvaW5lZCxcbiAgICByZWdleENhY2hlLFxuICAgIGVzY2FwZVBhdGhzLFxuICAgIHVzZUFycmF5U2VsZWN0b3JcbiAgfSkpO1xufTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJ1bmlxIiwicmVxdWlyZSIsInBhcnNlciIsImVzY2FwZSIsImlucHV0IiwiU3RyaW5nIiwicmVwbGFjZSIsImNvbXBhcmUiLCJ3aWxkY2FyZCIsImFyciIsImN0eCIsIm1hdGNoIiwicmVnZXhDYWNoZSIsInVuZGVmaW5lZCIsIlJlZ0V4cCIsInNwbGl0IiwibWFwIiwicCIsImpvaW4iLCJtYXRjaGVzIiwiQXJyYXkiLCJpc0FycmF5Iiwic29tZSIsIndjIiwiZm9ybWF0UGF0aCIsImpvaW5lZCIsInJlZHVjZSIsImMiLCJpc051bWJlciIsImVzY2FwZVBhdGhzIiwic2xpY2UiLCJhcnJheSIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwidmFsdWUiLCJuZWVkbGU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BcnJheVNlbGVjdG9yID09PSBmYWxzZSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQoaGF5c3RhY2tbaV0sIFtjaGVja10sIHBhdGhPdXQsIHBhcmVudHMsIGN0eCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKGNoZWNrWzBdID09PSBcIioqXCIpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2ssIHNsaWNlKGNoZWNrKV0sIHBhdGhPdXQsIHBhcmVudHMuY29uY2F0KFtoYXlzdGFja10pLCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChtYXRjaGVzKGNoZWNrWzBdLCBgWyR7aX1dYCwgdHJ1ZSwgY3R4KSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQoaGF5c3RhY2tbaV0sIFtzbGljZShjaGVjayldLCBwYXRoT3V0LCBwYXJlbnRzLmNvbmNhdChbaGF5c3RhY2tdKSwgY3R4KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBPYmplY3QuZW50cmllcyhoYXlzdGFjaykuZm9yRWFjaCgoW2tleSwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgY29uc3QgZXNjYXBlZEtleSA9IGVzY2FwZShrZXkpO1xuICAgICAgICAgIGNvbnN0IHBhdGhPdXQgPSBwYXRoSW4uY29uY2F0KGtleSk7XG4gICAgICAgICAgY2hlY2tzXG4gICAgICAgICAgICAuZmlsdGVyKGNoZWNrID0+IGNoZWNrLmxlbmd0aCAhPT0gMClcbiAgICAgICAgICAgIC5mb3JFYWNoKChjaGVjaykgPT4ge1xuICAgICAgICAgICAgICBpZiAoY2hlY2tbMF0gPT09IFwiKipcIikge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbm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xuICAgIHJlZ2V4Q2FjaGUsXG4gICAgZXNjYXBlUGF0aHMsXG4gICAgdXNlQXJyYXlTZWxlY3RvclxuICB9KSk7XG59O1xuIl19 |
{ | ||
"name": "object-scan", | ||
"version": "1.7.0", | ||
"version": "1.7.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
29044