@metrichor/jmespath
Advanced tools
Comparing version 0.1.2 to 0.1.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.jmespath = exports.search = exports.registerFunction = exports.tokenize = exports.compile = exports.TYPE_STRING = exports.TYPE_OBJECT = exports.TYPE_NUMBER = exports.TYPE_NULL = exports.TYPE_EXPREF = exports.TYPE_BOOLEAN = exports.TYPE_ARRAY_STRING = exports.TYPE_ARRAY_NUMBER = exports.TYPE_ARRAY = exports.TYPE_ANY = void 0; | ||
exports.jmespath = exports.TreeInterpreter = exports.search = exports.registerFunction = exports.tokenize = exports.compile = exports.TYPE_STRING = exports.TYPE_OBJECT = exports.TYPE_NUMBER = exports.TYPE_NULL = exports.TYPE_EXPREF = exports.TYPE_BOOLEAN = exports.TYPE_ARRAY_STRING = exports.TYPE_ARRAY_NUMBER = exports.TYPE_ARRAY = exports.TYPE_ANY = void 0; | ||
var Parser_1 = require("./Parser"); | ||
@@ -20,3 +20,3 @@ var Lexer_1 = require("./Lexer"); | ||
var nodeTree = Parser_1.default.parse(expression); | ||
return function (data) { return TreeInterpreter_1.default.search(nodeTree, data); }; | ||
return nodeTree; | ||
} | ||
@@ -36,2 +36,3 @@ exports.compile = compile; | ||
exports.search = search; | ||
exports.TreeInterpreter = TreeInterpreter_1.default; | ||
exports.jmespath = { | ||
@@ -42,2 +43,3 @@ compile: compile, | ||
tokenize: tokenize, | ||
TreeInterpreter: exports.TreeInterpreter, | ||
TYPE_ANY: exports.TYPE_ANY, | ||
@@ -44,0 +46,0 @@ TYPE_ARRAY_NUMBER: exports.TYPE_ARRAY_NUMBER, |
@@ -1,2 +0,2 @@ | ||
import { LexerToken, JSONValue, InputArgument, InputSignature, RuntimeFunction } from './typings/index'; | ||
import { ExpressionNodeTree, LexerToken, JSONValue, InputArgument, InputSignature, RuntimeFunction } from './typings/index'; | ||
export declare const TYPE_ANY = InputArgument.TYPE_ANY; | ||
@@ -12,6 +12,7 @@ export declare const TYPE_ARRAY = InputArgument.TYPE_ARRAY; | ||
export declare const TYPE_STRING = InputArgument.TYPE_STRING; | ||
export declare function compile(expression: string): (data: JSONValue) => JSONValue; | ||
export declare function compile(expression: string): ExpressionNodeTree; | ||
export declare function tokenize(expression: string): LexerToken[]; | ||
export declare const registerFunction: (functionName: string, customFunction: RuntimeFunction<any, any>, signature: InputSignature[]) => void; | ||
export declare function search(data: JSONValue, expression: string): JSONValue; | ||
export declare const TreeInterpreter: import("./TreeInterpreter").TreeInterpreter; | ||
export declare const jmespath: { | ||
@@ -22,2 +23,3 @@ compile: typeof compile; | ||
tokenize: typeof tokenize; | ||
TreeInterpreter: import("./TreeInterpreter").TreeInterpreter; | ||
TYPE_ANY: InputArgument; | ||
@@ -24,0 +26,0 @@ TYPE_ARRAY_NUMBER: InputArgument; |
{ | ||
"name": "@metrichor/jmespath", | ||
"description": "Typescript implementation of the JMESPath spec (100% compliant)", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Oxford Nanopore Technologies", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
529018
5456
0