Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-scan

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-scan - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

14

lib/index.js

@@ -21,6 +21,6 @@ const parser = require("./util/parser");

if (check[0] === "[*]" || check[0] === `[${i}]` || check[0] instanceof Array && check[0].indexOf(`[${i}]`) !== -1) {
if (check[0] === "**") {
result.push(...find(haystack[i], [check, check.slice(1)], pathOut));
} else if (check[0] === "[*]" || check[0] === `[${i}]` || check[0] instanceof Array && check[0].indexOf(`[${i}]`) !== -1) {
result.push(...find(haystack[i], [check.slice(1)], pathOut));
} else if (check[0] === "**") {
result.push(...find(haystack[i], [check, check.slice(1)], pathOut));
}

@@ -35,6 +35,6 @@ });

if (check[0] === "*" || check[0] === escapedKey || check[0] instanceof Array && check[0].indexOf(escapedKey) !== -1) {
if (check[0] === "**") {
result.push(...find(haystack[key], [check, check.slice(1)], pathOut));
} else if (check[0] === "*" || check[0] === escapedKey || check[0] instanceof Array && check[0].indexOf(escapedKey) !== -1) {
result.push(...find(haystack[key], [check.slice(1)], pathOut));
} else if (check[0] === "**") {
result.push(...find(haystack[key], [check, check.slice(1)], pathOut));
}

@@ -51,2 +51,2 @@ });

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJwYXJzZXIiLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsIm5lZWRsZXMiLCJ2YWx1ZUZuIiwidW5kZWZpbmVkIiwic2VhcmNoIiwibWFwIiwiZmluZCIsImhheXN0YWNrIiwiY2hlY2tzIiwicGF0aEluIiwicmVzdWx0Iiwic29tZSIsImNoZWNrIiwibGVuZ3RoIiwicHVzaCIsIk9iamVjdCIs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nN0IHJlc3VsdCA9IFtdO1xuICAgIGlmIChjaGVja3Muc29tZShjaGVjayA9PiBjaGVjay5sZW5ndGggPT09IDApKSB7XG4gICAgICBpZiAodmFsdWVGbiA9PT0gdW5kZWZpbmVkIHx8IHZhbHVlRm4oaGF5c3RhY2spKSB7XG4gICAgICAgIHJlc3VsdC5wdXNoKHBhdGhJbik7XG4gICAgICB9XG4gICAgfVxuICAgIGlmIChoYXlzdGFjayBpbnN0YW5jZW9mIE9iamVjdCkge1xuICAgICAgaWYgKEFycmF5LmlzQXJyYXkoaGF5c3RhY2spKSB7XG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgaGF5c3RhY2subGVuZ3RoOyBpICs9IDEpIHtcbiAgICAgICAgICBjaGVja3NcbiAgICAgICAgICAgIC5maWx0ZXIoY2hlY2sgPT4gY2hlY2subGVuZ3RoICE9PSAwKVxuICAgICAgICAgICAgLmZvckVhY2goKGNoZWNrKSA9PiB7XG4gICAgICAgICAgICAgIGNvbnN0IHBhdGhPdXQgPSBgJHtwYXRoSW4gPT09IHVuZGVmaW5lZCA/IFwiXCIgOiBwYXRoSW59WyR7aX1dYDtcbiAgICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICAgIGNoZWNrWzBdID09PSBcIlsqXVwiIHx8XG4gICAgICAgICAgICAgICAgY2hlY2tbMF0gPT09IGBbJHtpfV1gIHx8XG4gICAgICAgICAgICAgICAgKGNoZWNrWzBdIGluc3RhbmNlb2YgQXJyYXkgJiYgY2hlY2tbMF0uaW5kZXhPZihgWyR7aX1dYCkgIT09IC0xKVxuICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0KSk7XG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAoY2hlY2tbMF0gPT09IFwiKipcIikge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQoaGF5c3RhY2tbaV0sIFtjaGVjaywgY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBPYmplY3Qua2V5cyhoYXlzdGFjaykuZm9yRWFjaCgoa2V5KSA9PiB7XG4gICAgICAgICAgY2hlY2tzXG4gICAgICAgICAgICAuZmlsdGVyKGNoZWNrID0+IGNoZWNrLmxlbmd0aCAhPT0gMClcbiAgICAgICAgICAgIC5mb3JFYWNoKChjaGVjaykgPT4ge1xuICAgICAgICAgICAgICBjb25zdCBlc2NhcGVkS2V5ID0ga2V5LnJlcGxhY2UoL1ssLipbXFxde31dL2csIFwiXFxcXCQmXCIpO1xuICAgICAgICAgICAgICBjb25zdCBwYXRoT3V0ID0gcGF0aEluID09PSB1bmRlZmluZWQgPyBrZXkgOiBgJHtwYXRoSW59LiR7a2V5fWA7XG4gICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICBjaGVja1swXSA9PT0gXCIqXCIgfHxcbiAgICAgICAgICAgICAgICBjaGVja1swXSA9PT0gZXNjYXBlZEtleSB8fFxuICAgICAgICAgICAgICAgIChjaGVja1swXSBpbnN0YW5jZW9mIEFycmF5ICYmIGNoZWNrWzBdLmluZGV4T2YoZXNjYXBlZEtleSkgIT09IC0xKVxuICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2tleV0sIFtjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChjaGVja1swXSA9PT0gXCIqKlwiKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1trZXldLCBbY2hlY2ssIGNoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCkpO1xuICAgICAgICAgICAgICB9XG4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ZCA/IFwiXCIgOiBwYXRoSW59WyR7aX1dYDtcbiAgICAgICAgICAgICAgaWYgKGNoZWNrWzBdID09PSBcIioqXCIpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2ssIGNoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKFxuICAgICAgICAgICAgICAgIGNoZWNrWzBdID09PSBcIlsqXVwiIHx8XG4gICAgICAgICAgICAgICAgY2hlY2tbMF0gPT09IGBbJHtpfV1gIHx8XG4gICAgICAgICAgICAgICAgKGNoZWNrWzBdIGluc3RhbmNlb2YgQXJyYXkgJiYgY2hlY2tbMF0uaW5kZXhPZihgWyR7aX1dYCkgIT09IC0xKVxuICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBPYmplY3Qua2V5cyhoYXlzdGFjaykuZm9yRWFjaCgoa2V5KSA9PiB7XG4gICAgICAgICAgY2hlY2tzXG4gICAgICAgICAgICAuZmlsdGVyKGNoZWNrID0+IGNoZWNrLmxlbmd0aCAhPT0gMClcbiAgICAgICAgICAgIC5mb3JFYWNoKChjaGVjaykgPT4ge1xuICAgICAgICAgICAgICBjb25zdCBlc2NhcGVkS2V5ID0ga2V5LnJlcGxhY2UoL1ssLipbXFxde31dL2csIFwiXFxcXCQmXCIpO1xuICAgICAgICAgICAgICBjb25zdCBwYXRoT3V0ID0gcGF0aEluID09PSB1bmRlZmluZWQgPyBrZXkgOiBgJHtwYXRoSW59LiR7a2V5fWA7XG4gICAgICAgICAgICAgIGlmIChjaGVja1swXSA9PT0gXCIqKlwiKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1trZXldLCBbY2hlY2ssIGNoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKFxuICAgICAgICAgICAgICAgIGNoZWNrWzBdID09PSBcIipcIiB8fFxuICAgICAgICAgICAgICAgIGNoZWNrWzBdID09PSBlc2NhcGVkS2V5IHx8XG4gICAgICAgICAgICAgICAgKGNoZWNrWzBdIGluc3RhbmNlb2YgQXJyYXkgJiYgY2hlY2tbMF0uaW5kZXhPZihlc2NhcGVkS2V5KSAhPT0gLTEpXG4gICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQoaGF5c3RhY2tba2V5XSwgW2NoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCkpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByZXN1bHQ7XG4gIH07XG5cbiAgcmV0dXJuIGhheXN0YWNrID0+IGZpbmQoaGF5c3RhY2ssIHNlYXJjaCk7XG59O1xuIl19
{
"name": "object-scan",
"version": "1.1.2",
"version": "1.1.3",
"description": "Find Keys using Wildcard matching and optional value function.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc