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.4.0 to 1.5.0

25

lib/index.js

@@ -21,2 +21,8 @@ const uniq = require("lodash.uniq");

const formatPath = (input, ctx) => ctx.joined ? input.reduce((p, c) => {
const isNumber = typeof c === "number"; // eslint-disable-next-line no-nested-ternary
return `${p}${p === "" || isNumber ? "" : "."}${isNumber ? `[${c}]` : ctx.escapePaths ? escape(c) : c}`;
}, "") : input;
const find = (haystack, checks, pathIn, ctx) => {

@@ -26,11 +32,12 @@ const result = [];

if (checks.some(check => check.length === 0)) {
if (ctx.filterFn === undefined || ctx.filterFn(pathIn.map(escape).join("."), haystack)) {
result.push(ctx.joined ? pathIn.reduce((p, c) => {
const isNumber = typeof c === "number";
return `${p}${p === "" || isNumber ? "" : "."}${isNumber ? `[${c}]` : c}`;
}, "") : pathIn);
if (ctx.filterFn === undefined || ctx.filterFn(formatPath(pathIn, ctx), haystack) !== false) {
if (ctx.callbackFn !== undefined) {
ctx.callbackFn(formatPath(pathIn, ctx), haystack);
}
result.push(formatPath(pathIn, ctx));
}
}
if (ctx.breakFn === undefined || !ctx.breakFn(pathIn.map(escape).join("."), haystack)) {
if (ctx.breakFn === undefined || ctx.breakFn(formatPath(pathIn, ctx), haystack) !== true) {
if (haystack instanceof Object) {

@@ -72,3 +79,5 @@ if (Array.isArray(haystack)) {

breakFn = undefined,
callbackFn = undefined,
joined = true,
escapePaths = true,
useArraySelector = true

@@ -81,7 +90,9 @@ } = {}) => {

breakFn,
callbackFn,
joined,
regexCache,
escapePaths,
useArraySelector
}));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJ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gaSA9IDA7IGkgPCBoYXlzdGFjay5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAgICAgIGNvbnN0IHBhdGhPdXQgPSBwYXRoSW4uY29uY2F0KGkpO1xuICAgICAgICAgIGNoZWNrc1xuICAgICAgICAgICAgLmZpbHRlcihjaGVjayA9PiBjaGVjay5sZW5ndGggIT09IDApXG4gICAgICAgICAgICAuZm9yRWFjaCgoY2hlY2spID0+IHtcbiAgICAgICAgICAgICAgaWYgKGN0eC51c2VBcnJheVNlbGVjdG9yID09PSBmYWxzZSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQoaGF5c3RhY2tbaV0sIFtjaGVja10sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKGNoZWNrWzBdID09PSBcIioqXCIpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2ssIGNoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCwgY3R4KSk7XG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAobWF0Y2hlcyhjaGVja1swXSwgYFske2l9XWAsIHRydWUsIGN0eCkpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0LCBjdHgpKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIE9iamVjdC5lbnRyaWVzKGhheXN0YWNrKS5mb3JFYWNoKChba2V5LCB2YWx1ZV0pID0+IHtcbiAgICAgICAgICBjb25zdCBlc2NhcGVkS2V5ID0gZXNjYXBlKGtleSk7XG4gICAgICAgICAgY29uc3QgcGF0aE91dCA9IHBhdGhJbi5jb25jYXQoa2V5KTtcbiAgICAgICAgICBjaGVja3NcbiAgICAgICAgICAgIC5maWx0ZXIoY2hlY2sgPT4gY2hlY2subGVuZ3RoICE9PSAwKVxuICAgICAgICAgICAgLmZvckVhY2goKGNoZWNrKSA9PiB7XG4gICAgICAgICAgICAgIGlmIChjaGVja1swXSA9PT0gXCIqKlwiKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZCh2YWx1ZSwgW2NoZWNrLCBjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKG1hdGNoZXMoY2hlY2tbMF0sIGVzY2FwZWRLZXksIGZhbHNlLCBjdHgpKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZCh2YWx1ZSwgW2NoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCwgY3R4KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn07XG5cbm1vZHVsZS5leHBvcnRzID0gKG5lZWRsZXMsIHtcbiAgZmlsdGVyRm4gPSB1bmRlZmluZWQsXG4gIGJyZWFrRm4gPSB1bmRlZmluZWQsXG4gIGpvaW5lZCA9IHRydWUsXG4gIHVzZUFycmF5U2VsZWN0b3IgPSB0cnVlXG59ID0ge30pID0+IHtcbiAgY29uc3Qgc2VhcmNoID0gdW5pcShuZWVkbGVzKS5tYXAocGFyc2VyKTtcbiAgY29uc3QgcmVnZXhDYWNoZSA9IHt9O1xuXG4gIHJldHVybiBoYXlzdGFjayA9PiB1bmlxKGZpbmQoaGF5c3RhY2ssIHNlYXJjaCwgW10sIHtcbiAgICBmaWx0ZXJGbiwgYnJlYWtGbiwgam9pbmVkLCByZWdleENhY2hlLCB1c2VBcnJheVNlbGVjdG9yXG4gIH0pKTtcbn07XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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ZmFsc2UpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQucHVzaCguLi5maW5kKGhheXN0YWNrW2ldLCBbY2hlY2tdLCBwYXRoT3V0LCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChjaGVja1swXSA9PT0gXCIqKlwiKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1tpXSwgW2NoZWNrLCBjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKG1hdGNoZXMoY2hlY2tbMF0sIGBbJHtpfV1gLCB0cnVlLCBjdHgpKSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0LnB1c2goLi4uZmluZChoYXlzdGFja1tpXSwgW2NoZWNrLnNsaWNlKDEpXSwgcGF0aE91dCwgY3R4KSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBPYmplY3QuZW50cmllcyhoYXlzdGFjaykuZm9yRWFjaCgoW2tleSwgdmFsdWVdKSA9PiB7XG4gICAgICAgICAgY29uc3QgZXNjYXBlZEtleSA9IGVzY2FwZShrZXkpO1xuICAgICAgICAgIGNvbnN0IHBhdGhPdXQgPSBwYXRoSW4uY29uY2F0KGtleSk7XG4gICAgICAgICAgY2hlY2tzXG4gICAgICAgICAgICAuZmlsdGVyKGNoZWNrID0+IGNoZWNrLmxlbmd0aCAhPT0gMClcbiAgICAgICAgICAgIC5mb3JFYWNoKChjaGVjaykgPT4ge1xuICAgICAgICAgICAgICBpZiAoY2hlY2tbMF0gPT09IFwiKipcIikge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtjaGVjaywgY2hlY2suc2xpY2UoMSldLCBwYXRoT3V0LCBjdHgpKTtcbiAgICAgICAgICAgICAgfSBlbHNlIGlmIChtYXRjaGVzKGNoZWNrWzBdLCBlc2NhcGVkS2V5LCBmYWxzZSwgY3R4KSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKC4uLmZpbmQodmFsdWUsIFtjaGVjay5zbGljZSgxKV0sIHBhdGhPdXQsIGN0eCkpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiByZXN1bHQ7XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IChuZWVkbGVzLCB7XG4gIGZpbHRlckZuID0gdW5kZWZpbmVkLFxuICBicmVha0ZuID0gdW5kZWZpbmVkLFxuICBjYWxsYmFja0ZuID0gdW5kZWZpbmVkLFxuICBqb2luZWQgPSB0cnVlLFxuICBlc2NhcGVQYXRocyA9IHRydWUsXG4gIHVzZUFycmF5U2VsZWN0b3IgPSB0cnVlXG59ID0ge30pID0+IHtcbiAgY29uc3Qgc2VhcmNoID0gdW5pcShuZWVkbGVzKS5tYXAocGFyc2VyKTtcbiAgY29uc3QgcmVnZXhDYWNoZSA9IHt9O1xuXG4gIHJldHVybiBoYXlzdGFjayA9PiB1bmlxKGZpbmQoaGF5c3RhY2ssIHNlYXJjaCwgW10sIHtcbiAgICBmaWx0ZXJGbiwgYnJlYWtGbiwgY2FsbGJhY2tGbiwgam9pbmVkLCByZWdleENhY2hlLCBlc2NhcGVQYXRocywgdXNlQXJyYXlTZWxlY3RvclxuICB9KSk7XG59O1xuIl19
{
"name": "object-scan",
"version": "1.4.0",
"version": "1.5.0",
"description": "Find Keys using Wildcard matching and optional value function.",

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

@@ -48,3 +48,3 @@ # Object-Scan

Takes arguments `key` (dot joined and escaped) and `value` (value for given key) and called for every intermittent result.
Takes arguments `key` and `value` (value for given key) and called for every intermittent result.
If function is defined and returns false, the entry is filtered from the final result.

@@ -57,5 +57,12 @@

Takes arguments `key` (dot joined and escaped) and `value` (value for given key) and called for every intermittent result.
Takes arguments `key` and `value` (value for given key) and called for every intermittent result.
If function is defined and returns true, all nested entries under the current key are excluded from the result.
#### callbackFn
Type: `function`<br>
Default: `undefined`
Takes arguments `key` and `value` (value for given key) and called for every final result.
#### joined

@@ -68,2 +75,11 @@

Important: Setting this to `false` improves performance.
#### escapePaths
Type: `boolean`<br>
Default: `true
When set to false, joined paths for functions and the final result are not escaped.
#### useArraySelector

@@ -70,0 +86,0 @@

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