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.10.9 to 1.11.0

16

lib/util/compiler.js
/* compile needles to hierarchical map object */
const parser = require("./parser");
const {
parse,
isOr
} = require("./parser");

@@ -73,3 +76,8 @@ const IS_MATCH = Symbol("isMatch");

if (Array.isArray(path[0])) {
path[0].forEach(c => buildRecursive(tower, [c, ...path.slice(1)], needle));
if (isOr(path[0])) {
path[0].forEach(c => buildRecursive(tower, [c, ...path.slice(1)], needle));
} else {
buildRecursive(tower, [...path[0], ...path.slice(1)], needle);
}
return;

@@ -90,5 +98,5 @@ }

const tower = {};
needles.forEach(needle => buildRecursive(tower, parser(needle), needle));
needles.forEach(needle => buildRecursive(tower, [parse(needle)], needle));
return tower;
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2NvbXBpbGVyLmpzIl0sIm5hbWVzIjpbInBhcnNlciIsInJlcXVpcmUiLCJJU19NQVRDSCIsIlN5bWJvbCIsIm1hcmtNYXRjaCIsImlucHV0IiwiT2JqZWN0IiwiZGVmaW5lUHJvcGVydHkiLCJ2YWx1ZSIsIndyaXRhYmxlIiwiaXNNYXRjaCIsIm1vZHVsZSIsImV4cG9ydHMiLCJORUVETEUiLCJzZXROZWVkbGUiLCJuZWVkbGUiLCJnZXROZWVkbGUiLCJ1bmRlZmluZWQiLCJORUVETEVTIiwiYWRkTmVlZGxlIiwiU2V0IiwiYWRkIiwiZ2V0TmVlZGxlcyIsIldJTERDQVJEX1JFR0VYIiwic2V0V2lsZGNhcmRSZWdleCIsIndpbGRjYXJkIiwiUmVnRXhwIiwic3BsaXQiLCJtYXAiLCJwIiwicmVwbGFjZSIsImpvaW4i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Y2goYyA9PiBidWlsZFJlY3Vyc2l2ZSh0b3dlciwgW2MsIC4uLnBhdGguc2xpY2UoMSldLCBuZWVkbGUpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgYnVpbGRSZWN1cnNpdmUodG93ZXIsIFsuLi5wYXRoWzBdLCAuLi5wYXRoLnNsaWNlKDEpXSwgbmVlZGxlKTtcbiAgICB9XG4gICAgcmV0dXJuO1xuICB9XG4gIGlmICh0b3dlcltwYXRoWzBdXSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgT2JqZWN0LmFzc2lnbih0b3dlciwgeyBbcGF0aFswXV06IHt9IH0pO1xuICAgIHNldFdpbGRjYXJkUmVnZXgodG93ZXJbcGF0aFswXV0sIHBhdGhbMF0pO1xuICB9XG4gIGJ1aWxkUmVjdXJzaXZlKHRvd2VyW3BhdGhbMF1dLCBwYXRoLnNsaWNlKDEpLCBuZWVkbGUpO1xufTtcblxubW9kdWxlLmV4cG9ydHMuY29tcGlsZSA9IChuZWVkbGVzKSA9PiB7XG4gIGNvbnN0IHRvd2VyID0ge307XG4gIG5lZWRsZXMuZm9yRWFjaChuZWVkbGUgPT4gYnVpbGRSZWN1cnNpdmUodG93ZXIsIFtwYXJzZShuZWVkbGUpXSwgbmVlZGxlKSk7XG4gIHJldHVybiB0b3dlcjtcbn07XG4iXX0=

@@ -1,17 +0,209 @@

const crypto = require("crypto");
const assert = require("assert");
module.exports = input => {
const tmpSep = crypto.randomBytes(16).toString('base64');
return input // split at "." and before "[", but only if not escaped
.replace(/(?<!\\|^)((?:\\{2})*)(?:\.|(?=\[))(?!\[?$)/g, (_, esc) => `${esc}${tmpSep}`).split(tmpSep) // handle or groups
.map(e => {
const orMatches = []; // handle basic or-groups
const PARENT = Symbol("parent");
e.replace(/^{(.+)}$/g, (complete, m) => orMatches.push(...m // split at ",", but only if not escaped
.replace(/(?<!\\|^)((?:\\{2})*)(?:,)(?!$)/g, (_, esc) => `${esc}${tmpSep}`).split(tmpSep))); // handle list or-groups (only numbers)
const setParent = (input, parent) => Object.defineProperty(input, PARENT, {
value: parent,
writable: true
});
e.replace(/^\[{(\d+(?:,\d+)*)}]$/g, (complete, m) => orMatches.push(...m.split(",").map(idx => `[${idx}]`)));
return orMatches.length === 0 ? e : orMatches;
const getParent = input => input[PARENT] === undefined ? null : input[PARENT];
const OR = Symbol("or");
const markOr = input => Object.defineProperty(input, OR, {
value: true,
writable: false
});
const isOr = input => input[OR] === true;
module.exports.isOr = isOr;
const throwError = (msg, input, context = {}) => {
throw new Error(Object.entries(context).reduce((p, [k, v]) => `${p}, ${k} ${v}`, `${msg}: ${input}`));
};
const Result = input => {
let cResult = markOr([]);
let inArray = false;
let cursor = 0; // group related
const newChild = asOr => {
const child = setParent(asOr ? markOr([]) : [], cResult);
cResult.push(child);
cResult = child;
};
const finishChild = () => {
if (cResult.length === 1) {
const parent = getParent(cResult);
parent.splice(-1, 1);
parent.push(cResult[0]); // update parent as required
const hasParent = getParent(cResult[0]) !== null;
assert(hasParent === (typeof cResult[0] === "object"));
if (hasParent) {
setParent(cResult[0], parent);
}
}
cResult = getParent(cResult);
};
newChild(false);
return {
setInArray: (flag, idx) => {
if (inArray === flag) {
throwError(inArray ? "Bad Array Start" : "Bad Array Terminator", input, {
char: idx
});
}
inArray = flag;
},
finishElement: (idx, {
err,
fins,
finishedReq = false
}) => {
const isFinished = cursor === idx;
if (finishedReq && !isFinished) {
throwError(err, input, {
char: idx
});
}
if (isFinished && !fins.includes(input[idx - 1] || null)) {
throwError(err, input, {
char: idx
});
}
const ele = input.slice(cursor, idx);
if (cursor !== idx) {
if (inArray && !/^[*\d]+$/g.test(ele)) {
throwError("Bad Array Selector", input, {
selector: ele
});
}
cResult.push(inArray ? `[${ele}]` : ele);
}
cursor = idx + 1;
},
startGroup: () => {
newChild(true);
newChild(false);
},
newGroupElement: () => {
finishChild();
newChild(false);
},
finishGroup: idx => {
if (getParent(getParent(cResult)) === null) {
throwError("Unexpected Group Terminator", input, {
char: idx
});
}
finishChild();
finishChild();
},
finalizeResult: () => {
finishChild();
if (getParent(cResult) !== null) {
throwError("Non Terminated Group", input);
}
if (inArray) {
throwError("Non Terminated Array", input);
}
return cResult.length === 1 ? cResult[0] : cResult;
}
};
};
module.exports.parse = input => {
if (input === "") {
return "";
}
const result = Result(input);
const inputLength = input.length;
let escaped = false;
for (let idx = 0; idx < inputLength; idx += 1) {
const char = input[idx];
if (escaped === false) {
switch (char) {
case ".":
result.finishElement(idx, {
err: "Bad Path Separator",
fins: ["]", "}"]
});
break;
case "[":
result.finishElement(idx, {
err: "Bad Array Start",
fins: [null, "{", ",", "}"]
});
result.setInArray(true, idx);
break;
case "]":
result.finishElement(idx, {
err: "Bad Array Terminator",
fins: ["}"]
});
result.setInArray(false, idx);
break;
case "{":
result.finishElement(idx, {
err: "Bad Group Start",
fins: [null, ".", "[", "{", ","],
finishedReq: true
});
result.startGroup();
break;
case ",":
result.finishElement(idx, {
err: "Bad Group Separator",
fins: ["]", "}"]
});
result.newGroupElement();
break;
case "}":
result.finishElement(idx, {
err: "Bad Group Terminator",
fins: ["]", "}"]
});
result.finishGroup(idx);
break;
default:
break;
}
}
escaped = char === "\\" ? !escaped : false;
}
result.finishElement(inputLength, {
err: "Bad Terminator",
fins: ["]", "}"]
});
return result.finalizeResult();
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcnNlci5qcyJdLCJuYW1lcyI6WyJjcnlwdG8iLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsImlucHV0IiwidG1wU2VwIiwicmFuZG9tQnl0ZXMiLCJ0b1N0cmluZyIsInJlcGxhY2UiLCJfIiwiZXNjIiwic3BsaXQiLCJtYXAiLCJlIiwib3JNYXRjaGVzIiwiY29tcGxldGUiLCJtIiwicHVzaCIsImlkeCIsImxlbmd0aCJdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTUEsU0FBU0MsUU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YnJlYWs7XG4gICAgICB9XG4gICAgfVxuICAgIGVzY2FwZWQgPSBjaGFyID09PSBcIlxcXFxcIiA/ICFlc2NhcGVkIDogZmFsc2U7XG4gIH1cblxuICByZXN1bHQuZmluaXNoRWxlbWVudChpbnB1dExlbmd0aCwgeyBlcnI6IFwiQmFkIFRlcm1pbmF0b3JcIiwgZmluczogW1wiXVwiLCBcIn1cIl0gfSk7XG4gIHJldHVybiByZXN1bHQuZmluYWxpemVSZXN1bHQoKTtcbn07XG4iXX0=
{
"name": "object-scan",
"version": "1.10.9",
"version": "1.11.0",
"description": "Find Keys using Wildcard matching and optional value function.",

@@ -46,3 +46,3 @@ "main": "lib/index.js",

"js-gardener": "1.31.7",
"nyc": "13.0.1",
"nyc": "13.1.0",
"semantic-release": "15.9.17"

@@ -49,0 +49,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