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

@metrichor/jmespath

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metrichor/jmespath - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

6

dist/lib/index.js
"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

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