@repositive/query-parser
Advanced tools
Comparing version 2.3.0 to 2.3.1
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,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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
208230
4155