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

jsonata

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonata - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

#### 1.8.0 Milestone Release
- New syntax (`%` parent operator) to select the parent of the current context value (issue #299)
- New function `$type` to return the data type of the argument (issue #208)
- Added versioning to the documentation site (issue #385)
- Fixed bugs #382, #387, #396, #399
#### 1.7.0 Milestone Release

@@ -2,0 +9,0 @@

34

jsonata.d.ts

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

// Type definitions for jsonata 1.4
// Type definitions for jsonata 1.7
// Project: https://github.com/jsonata-js/jsonata

@@ -7,11 +7,31 @@ // Definitions by: Nick <https://github.com/nick121212> and Michael M. Tiller <https://github.com/xogeny>

declare namespace jsonata {
interface ExprNode {
type: string;
value: any;
position: number;
type: string;
value: any;
position: number;
}
interface JsonataError extends Error {
code: string;
position: number;
token: string;
}
interface Environment {
bind(name: string, value: any): void;
lookup(name: string): any;
readonly timestamp: Date;
readonly async: boolean;
}
interface Focus {
readonly environment: Environment;
readonly input: any;
}
interface Expression {
evaluate(input: any, bindings?: { [name: string]: any }, callback?: (err: Error, resp: any) => void): any;
evaluate(input: any, bindings?: Record<string, any>): any;
evaluate(input: any, bindings: Record<string, any> | undefined, callback: (err: JsonataError, resp: any) => void): void;
assign(name: string, value: any): void;
registerFunction(name: string, f: Function, signature?: string): void;
registerFunction(name: string, implementation: (this: Focus, ...args: any[]) => any, signature?: string): void;
ast(): ExprNode;

@@ -21,2 +41,2 @@ }

export = jsonata;
export = jsonata;
{
"name": "jsonata",
"version": "1.7.0",
"version": "1.8.0",
"description": "JSON query and transformation language",

@@ -42,15 +42,15 @@ "module": "jsonata.js",

"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"browserify": "^16.5.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.6",
"eslint": "^6.5.1",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-plugin-ideal": "^0.1.3",
"istanbul": "^0.4.5",
"jsdoc": "^3.6.3",
"mkdirp": "^0.5.1",
"mocha": "^6.2.1",
"mkdirp": "^1.0.3",
"mocha": "^7.0.1",
"mocha-lcov-reporter": "^1.3.0",

@@ -57,0 +57,0 @@ "regenerator": "^0.14.2",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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