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

@repositive/query-parser

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@repositive/query-parser - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

dist/parsers/phrase.d.ts

2

dist/b-tree/operations.d.ts

@@ -1,2 +0,2 @@

import { Node } from './node';
import { Node } from '../b-tree';
export declare function fold<O>(node: Node, f: (node: Node, l?: O, r?: O, parent?: Node) => O, acc?: O, parent?: Node): O;

@@ -3,0 +3,0 @@ export declare function mapLeafs(node: Node, f: (leaf: Node) => Node): Node;

@@ -5,11 +5,10 @@ "use strict";

var uuid_1 = require("uuid");
var expression_1 = require("./expression");
var node_1 = require("./node");
var b_tree_1 = require("../b-tree");
function fold(node, f, acc, parent) {
if (acc === void 0) { acc = undefined; }
if (parent === void 0) { parent = undefined; }
if (expression_1.isAND(node) || expression_1.isOR(node)) {
if (b_tree_1.isAND(node) || b_tree_1.isOR(node)) {
return f(node, fold(node.left, f, acc, node), fold(node.right, f, acc, node), parent);
}
else if (expression_1.isNOT(node)) {
else if (b_tree_1.isNOT(node)) {
return f(node, fold(node.negated, f, acc, node), acc, parent);

@@ -23,3 +22,3 @@ }

function mapLeafs(node, f) {
if (expression_1.isAND(node) || expression_1.isOR(node)) {
if (b_tree_1.isAND(node) || b_tree_1.isOR(node)) {
return ramda_1.merge(node, {

@@ -61,10 +60,10 @@ _id: uuid_1.v4(),

function remove(node, target) {
var id = node_1.isNode(target) ? target._id : target;
var id = b_tree_1.isNode(target) ? target._id : target;
if (node && node._id === id) {
return undefined;
}
else if (expression_1.isAND(node) || expression_1.isOR(node)) {
else if (b_tree_1.isAND(node) || b_tree_1.isOR(node)) {
var left = remove(node.left, target);
var right = remove(node.right, target);
if (node_1.isNode(left) && node_1.isNode(right)) {
if (b_tree_1.isNode(left) && b_tree_1.isNode(right)) {
if (left._id === node.left._id && right._id === node.right._id) {

@@ -74,3 +73,3 @@ return node;

else {
var exp = node._type === 'AND' ? expression_1.and : expression_1.or;
var exp = node._type === 'AND' ? b_tree_1.and : b_tree_1.or;
return exp({ left: left, right: right });

@@ -83,5 +82,5 @@ }

}
else if (expression_1.isNOT(node)) {
else if (b_tree_1.isNOT(node)) {
var negated = remove(node.negated, target);
if (node_1.isNode(negated)) {
if (b_tree_1.isNode(negated)) {
if (negated._id === node.negated._id) {

@@ -91,3 +90,3 @@ return node;

else {
return expression_1.not(negated);
return b_tree_1.not(negated);
}

@@ -105,3 +104,3 @@ }

function path(node, target) {
var id = node_1.isNode(target) ? target._id : target;
var id = b_tree_1.isNode(target) ? target._id : target;
return fold(node, function (val, l, r) {

@@ -127,3 +126,3 @@ var acc = ramda_1.concat(l, r);

}
else if (expression_1.isAND(n) || expression_1.isOR(n)) {
else if (b_tree_1.isAND(n) || b_tree_1.isOR(n)) {
if (n.left._id === l._id && n.right._id === r._id) {

@@ -133,3 +132,3 @@ return n;

else {
var expression = (expression_1.isAND(n) ? expression_1.and : expression_1.or);
var expression = (b_tree_1.isAND(n) ? b_tree_1.and : b_tree_1.or);
return expression({

@@ -141,3 +140,3 @@ left: l,

}
else if (expression_1.isNOT(n)) {
else if (b_tree_1.isNOT(n)) {
if (n.negated._id === l._id) {

@@ -147,3 +146,3 @@ return n;

else {
return expression_1.not(l);
return b_tree_1.not(l);
}

@@ -157,2 +156,2 @@ }

exports.replace = replace;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BlcmF0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iLXRyZWUvb3BlcmF0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUF1RDtBQUN2RCw2QkFBa0M7QUFDbEMsMkNBQWdFO0FBRWhFLCtCQUFzQztBQUV0QyxjQUF3QixJQU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parse as parseNatural } from './natural';
import { parse as parsePhrase } from './phrase';
export declare const fromNatural: typeof parseNatural;
export declare const fromPhrase: typeof parsePhrase;
export * from './natural-operations';

@@ -7,4 +7,6 @@ "use strict";

var natural_1 = require("./natural");
var phrase_1 = require("./phrase");
exports.fromNatural = natural_1.parse;
exports.fromPhrase = phrase_1.parse;
__export(require("./natural-operations"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2Vycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHFDQUFrQztBQUNyQixRQUFBLFdBQVcsR0FBRyxlQUFLLENBQUM7QUFDakMsMENBQXFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGFyc2Vycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHFDQUFrRDtBQUNsRCxtQ0FBZ0Q7QUFDbkMsUUFBQSxXQUFXLEdBQUcsZUFBWSxDQUFDO0FBQzNCLFFBQUEsVUFBVSxHQUFHLGNBQVcsQ0FBQztBQUN0QywwQ0FBcUMifQ==

@@ -12,3 +12,3 @@ "use strict";

var b_tree_1 = require("../b-tree");
var serializers_1 = require("../serializers");
var natural_1 = require("../serializers/natural");
function decorateTreeWithNaturalPositions(tree) {

@@ -21,3 +21,3 @@ // Checks if the inner node is in the key of the parent.

function getPos(parent, node) {
var lastIndex = serializers_1.toNatural(node).length - 1;
var lastIndex = natural_1.toNatural(node).length - 1;
if (nodeIs('left', parent, node)) {

@@ -61,2 +61,2 @@ return {

exports.decorateTreeWithNaturalPositions = decorateTreeWithNaturalPositions;
//# sourceMappingURL=data:application/json;base64,eyJ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DdkM7UUFDSixDQUFDO1FBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLGNBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDdkIsSUFBTSxPQUFPLGdCQUFRLElBQUksRUFBSyxHQUFHLENBQUUsQ0FBQztZQUNwQyxNQUFNLENBQUMsYUFDRixPQUFPLElBQ1YsT0FBTyxFQUFFLFdBQVcsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLE9BQXlCLENBQUMsR0FDNUMsQ0FBQztRQUN0QixDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixNQUFNLGNBQU0sSUFBSSxFQUFLLEdBQUcsRUFBRztRQUM3QixDQUFDO0lBQ0gsQ0FBQztJQUVELE1BQU0sQ0FBQyxJQUFJLElBQUksV0FBVyxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ25DLENBQUM7QUFuREQsNEVBbURDIn0=

@@ -6,9 +6,10 @@ "use strict";

var ramda_1 = require("ramda");
var __1 = require("..");
test.only('decorateTreeWithNaturalPositions', function (t) {
var fromNatPos = ramda_1.pipe(_1.fromNatural, _1.decorateTreeWithNaturalPositions, function (n) { return __1.filter(n, function (ns) { return ns._type === 'token' || ns._type === 'predicate'; }); });
var operations_1 = require("../b-tree/operations");
var natural_1 = require("../serializers/natural");
test('decorateTreeWithNaturalPositions', function (t) {
var fromNatPos = ramda_1.pipe(_1.fromNatural, _1.decorateTreeWithNaturalPositions, function (n) { return operations_1.filter(n, function (ns) { return ns._type === 'token' || ns._type === 'predicate'; }); });
var check = function (text, leaf, from, to) {
var node = fromNatPos(text)[leaf];
t.equals(node.from, from, "in \"" + text + "\" - \"" + __1.toNatural(node) + "\" from = " + from);
t.equals(node.to, to, "in \"" + text + "\" - \"" + __1.toNatural(node) + "\" to = " + to);
t.equals(node.from, from, "in \"" + text + "\" - \"" + natural_1.toNatural(node) + "\" from = " + from);
t.equals(node.to, to, "in \"" + text + "\" - \"" + nat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EVBQW5HLENBQW1HLENBQUMsQ0FBQztJQUV6TCxJQUFNLEtBQUssR0FBRyxVQUFDLElBQVksRUFBRSxJQUFZLEVBQUUsSUFBWSxFQUFFLEVBQVU7UUFDakUsSUFBTSxJQUFJLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3BDLENBQUMsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsVUFBTyxJQUFJLGVBQVEsbUJBQVMsQ0FBQyxJQUFJLENBQUMsa0JBQVksSUFBTSxDQUFDLENBQUM7UUFDaEYsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRSxVQUFPLElBQUksZUFBUSxtQkFBUyxDQUFDLElBQUksQ0FBQyxnQkFBVSxFQUFJLENBQUMsQ0FBQztJQUMxRSxDQUFDLENBQUM7SUFFRixLQUFLLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFDdkIsS0FBSyxDQUFDLGFBQWEsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQy9CLEtBQUssQ0FBQyxpQkFBaUIsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ25DLENBQUMsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUNWLENBQUMsQ0FBQyxDQUFDIn0=

@@ -1149,2 +1149,5 @@ /*

}
if (s3 === peg$FAILED) {
s3 = null;
}
if (s3 !== peg$FAILED) {

@@ -1151,0 +1154,0 @@ peg$savedPos = s0;

@@ -5,2 +5,3 @@ "use strict";

var b_tree_1 = require("../b-tree");
var operations_1 = require("../b-tree/operations");
var natural_1 = require("./natural");

@@ -14,13 +15,13 @@ var csvParse = require("csv-parse");

t.ok(b_tree_1.isToken(natural_1.parse('cancer')), 'The result of "cancer" is a node');
t.equal(b_tree_1.weight(natural_1.parse('cancer')), 1, 'The weight of "cancer" is 1');
t.equal(operations_1.weight(natural_1.parse('cancer')), 1, 'The weight of "cancer" is 1');
t.ok(b_tree_1.isToken(natural_1.parse('"breast cancer"')), 'The result of "\"breeast cancer\"" is a token');
// Expression
t.ok(b_tree_1.isExpression(natural_1.parse('lung AND cancer')), 'The result of "lung AND cqancer" is an expression');
t.equal(b_tree_1.weight(natural_1.parse('lung AND cancer')), 3, 'The weight of "lung AND cancer" is 3');
t.equal(operations_1.weight(natural_1.parse('lung AND cancer')), 3, 'The weight of "lung AND cancer" is 3');
t.ok(b_tree_1.isExpression(natural_1.parse('lung cancer')), 'The result of "lung cancer" is an expression');
t.equal(b_tree_1.weight(natural_1.parse('lung cancer')), 3, 'The weight of "lung cancer" is 3');
t.equal(operations_1.weight(natural_1.parse('lung cancer')), 3, 'The weight of "lung cancer" is 3');
t.ok(b_tree_1.isExpression(natural_1.parse('lung OR cancer')), 'The result of "lung OR cancer" is an expression');
t.equal(b_tree_1.weight(natural_1.parse('lung OR cancer')), 3, 'The weight of "lung OR cancer" is 3');
t.equal(operations_1.weight(natural_1.parse('lung OR cancer')), 3, 'The weight of "lung OR cancer" is 3');
// Nesting
t.equal(b_tree_1.weight(natural_1.parse('this (lung OR cancer)')), 5, 'The weight of "this (lung OR cancer) is 5"');
t.equal(operations_1.weight(natural_1.parse('this (lung OR cancer)')), 5, 'The weight of "this (lung OR cancer) is 5"');
// Negation

@@ -73,2 +74,2 @@ t.ok(b_tree_1.isNOT(natural_1.parse('not lung')), 'Negation returns true for "not lung"');

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0dXJhbC5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3BhcnNlcnMvbmF0dXJhbC5zcGVjLnRzIl0sIm5hbWVzIjpbXS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0FBQyxDQUFDO0lBQ3BCLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQUMsQ0FBQyxHQUFHLEVBQUUsV0FBVyxFQUFFLEVBQUUsRUFBRSxDQUFDO0lBQ2hDLE1BQU0sQ0FBQyxFQUFFLEtBQUssRUFBRSxDQUFDLEVBQUUsQ0FBQztBQUN0QixDQUFDO0FBOUZELGdDQThGQyJ9
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var b_tree_1 = require("../b-tree");
var operations_1 = require("../b-tree/operations");
function shouldWrap(tree, branch) {

@@ -15,3 +16,3 @@ return !b_tree_1.isNaturalNode(tree[branch]) && (b_tree_1.isAND(tree[branch]) || b_tree_1.isOR(tree[branch])) && tree[branch]._type !== tree._type;

else {
return b_tree_1.fold(tree, function (elem, l, r) {
return operations_1.fold(tree, function (elem, l, r) {
if (b_tree_1.isAND(elem) || b_tree_1.isOR(elem)) {

@@ -50,2 +51,2 @@ var nL = shouldWrap(elem, 'left') ? "(" + l + ")" : l;

exports.toNatural = toNatural;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0dXJhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXJpYWxpemVycy9uYXR1cmFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsb0NBRW1CO0FBRW5CLG9CQUFvQixJQUFTLEVBQUUsTUFBYztJQUMzQyxNQUFNLENBQUMsQ0FBQyxzQkFBYSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxJQUFJLENBQUMsY0FBSyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxJQUFJLGFBQUksQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxLQUFLLEtBQUssSUFBSS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QUFDLENBQUMsR0FBRyxDQUFDO2dCQUMvRCxNQUFNLENBQUUsU0FBTyxPQUFTLENBQUM7WUFDM0IsQ0FBQztZQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxvQkFBVyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztnQkFDN0IsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLFFBQVEsS0FBSyxHQUFHLENBQUMsQ0FBQyxDQUFDO29CQUMxQixNQUFNLENBQUksSUFBSSxDQUFDLEdBQUcsU0FBSSxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBRyxDQUFDO2dCQUM3QyxDQUFDO2dCQUFDLElBQUksQ0FBQyxDQUFDO29CQUNOLE1BQU0sQ0FBSSxJQUFJLENBQUMsR0FBRyxTQUFJLElBQUksQ0FBQyxRQUFRLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUcsQ0FBQztnQkFDN0QsQ0FBQztZQUNILENBQUM7WUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsZ0JBQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7Z0JBQ3pCLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1lBQzVCLENBQUM7WUFBQyxJQUFJLENBQUMsQ0FBQztnQkFDTixNQUFNLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUNmLENBQUM7UUFDSCxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFDVCxDQUFDO0FBQ0gsQ0FBQztBQTlCRCw4QkE4QkMifQ==
{
"name": "@repositive/query-parser",
"version": "2.1.0",
"version": "2.2.0",
"description": "",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"setup": "npm i && rm -fr dist && tsc && pegjs -o dist/parsers/natural.js src/parsers/natural.pegjs",
"make": "rm -fr dist && tsc && pegjs -o dist/parsers/natural.js src/parsers/natural.pegjs",
"make": "rm -fr dist && tsc && pegjs -o dist/parsers/natural.js src/parsers/natural.pegjs && pegjs -o dist/parsers/phrase.js src/parsers/phrase.pegjs",
"test": "nyc --reporter lcov tape $(find dist -name '*.js') | tap-spec",

@@ -50,3 +50,3 @@ "lint": "tslint -c tslint.json src/**/*.ts",

"tslint": "5.5.0",
"typescript": "2.4.2"
"typescript": "2.5.3"
},

@@ -53,0 +53,0 @@ "dependencies": {

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