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.3.0 to 2.3.1

5

dist/parsers/index.d.ts
import { parse as parseNatural } from './natural';
import { parse as parsePhrase } from './phrase';
import * as phrase from './phrase';
export declare const fromNatural: typeof parseNatural;
export declare const fromPhrase: typeof parsePhrase;
export declare const fromPhrase: typeof phrase.parse;
export * from './phrase';
export * from './natural-operations';

7

dist/parsers/index.js

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

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

@@ -5,3 +5,3 @@ export interface Position {

}
export interface Token {
export interface PhraseToken {
id: string;

@@ -17,3 +17,3 @@ type: 'token';

text: string;
tokens: Token[];
tokens: PhraseToken[];
}

@@ -32,10 +32,10 @@ export interface QuotedPhrase {

}
export interface Predicate {
export interface PhrasePredicate {
id: string;
type: 'predicate';
position: Position;
target: Token;
target: PhraseToken;
relation: Relation;
value: Token | QuotedPhrase;
value: PhraseToken | QuotedPhrase;
}
export declare function parse(str: string): Array<Phrase | QuotedPhrase | Predicate>;
export declare function parse(str: string): Array<Phrase | QuotedPhrase | PhrasePredicate>;
{
"name": "@repositive/query-parser",
"version": "2.3.0",
"version": "2.3.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/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