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.9.4 to 1.9.5

24

lib/index.js

@@ -1,3 +0,1 @@

const uniq = require("lodash.uniq");
const compiler = require("./util/compiler");

@@ -79,10 +77,14 @@

useArraySelector = true
} = {}) => haystack => uniq(find(haystack, compiler.compile(uniq(needles)), [], [], {
excludeFn,
breakFn,
callbackFn,
joined,
escapePaths,
useArraySelector
}));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJ1bmlxIiwicmVxdWlyZSIsImNvbXBpbGVyIiwiZXNjYXBlIiwiaW5wdXQiLCJTdHJpbmciLCJyZXBsYWNlIiwibWF0Y2hlcyIsIndpbGRjYXJkIiwia2V5IiwiaXNBcnJheSIsInN1YlNlYXJjaCIsIm1hdGNoIiwiZ2V0V2lsZGNhcmRSZWdleCIsImZvcm1hdFBhdGgiLCJjdHgiLCJqb2luZWQiLCJyZWR1Y2UiLCJwIiwiYyIsImlzTnVtYmVyIiwiZXNjYXBlUGF0aHMiLCJmaW5kIiwiaGF5c3RhY2siLCJzZWFyY2giLCJwYXRoSW4iLCJwYXJlbnRzIiwicmVzdWx0IiwidXNlQXJyYXlTZWxlY3RvciIsIkFycmF5IiwiaSIsImxlbmd0aCIsInB1c2giLCJjb25jYXQiLCJpc01hdGNoIiwiZXhjbHVkZUZuIiwidW5kZWZpbmVkIiwiT2JqZWN0IiwiYXNzaWduIiwiZ2V0TWV0YSIsImNhbGxiYWNrRm4iLCJicmVha0ZuIiwicGFyZW50c091dCIsImVudHJpZXMiLCJmb3JFYWNoIiwidmFsdWUiLCJwYXRoT3V0IiwicGFyc2VJbnQiLCJ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ZW50c091dCwgY3R4KSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn07XG5cbm1vZHVsZS5leHBvcnRzID0gKG5lZWRsZXMsIHtcbiAgZXhjbHVkZUZuID0gdW5kZWZpbmVkLFxuICBicmVha0ZuID0gdW5kZWZpbmVkLFxuICBjYWxsYmFja0ZuID0gdW5kZWZpbmVkLFxuICBqb2luZWQgPSB0cnVlLFxuICBlc2NhcGVQYXRocyA9IHRydWUsXG4gIHVzZUFycmF5U2VsZWN0b3IgPSB0cnVlXG59ID0ge30pID0+IGhheXN0YWNrID0+IHVuaXEoZmluZChoYXlzdGFjaywgY29tcGlsZXIuY29tcGlsZSh1bmlxKG5lZWRsZXMpKSwgW10sIFtdLCB7XG4gIGV4Y2x1ZGVGbixcbiAgYnJlYWtGbixcbiAgY2FsbGJhY2tGbixcbiAgam9pbmVkLFxuICBlc2NhcGVQYXRocyxcbiAgdXNlQXJyYXlTZWxlY3RvclxufSkpO1xuIl19
} = {}) => {
const search = compiler.compile(new Set(needles)); // keep separate for performance
return haystack => [...new Set(find(haystack, search, [], [], {
excludeFn,
breakFn,
callbackFn,
joined,
escapePaths,
useArraySelector
}))];
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjb21waWxlciIsInJlcXVpcmUiLCJlc2NhcGUiLCJpbnB1dCIsIlN0cmluZyIsInJlcGxhY2UiLCJtYXRjaGVzIiwid2lsZGNhcmQiLCJrZXkiLCJpc0FycmF5Iiwic3ViU2VhcmNoIiwibWF0Y2giLCJnZXRXaWxkY2FyZFJlZ2V4IiwiZm9ybWF0UGF0aCIsImN0eCIsImpvaW5lZCIsInJlZHVjZSIsInAiLCJjIiwiaXNOdW1iZXIiLCJlc2NhcGVQYXRocyIsImZpbmQ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1xufTtcbiJdfQ==
{
"name": "object-scan",
"version": "1.9.4",
"version": "1.9.5",
"description": "Find Keys using Wildcard matching and optional value function.",

@@ -92,6 +92,4 @@ "main": "lib/index.js",

],
"dependencies": {
"lodash.uniq": "4.5.0"
},
"dependencies": {},
"peerDependencies": {}
}
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