Socket
Socket
Sign inDemoInstall

jsonpath

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonpath - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

bin/release.sh

1

lib/grammar.js
var dict = require('./dict');
var fs = require('fs');
fs.readFileSync = fs.readFileSync || function() {}
require.resolve = require.resolve || function() {}

@@ -5,0 +6,0 @@ var grammar = {

@@ -7,2 +7,9 @@ var grammar = require('./grammar');

var parser = new gparser.Parser();
var _parseError = parser.parseError;
parser.yy.parseError = function() {
parser.yy.ast.initialize();
_parseError.apply(parser, arguments);
}
return parser;

@@ -9,0 +16,0 @@

2

package.json
{
"name": "jsonpath",
"description": "Query JavaScript objects with JSONPath expressions. Robust / safe JSONPath engine for Node.js.",
"version": "0.2.1",
"version": "0.2.2",
"author": "david@fmail.co.uk",

@@ -6,0 +6,0 @@ "scripts": {

@@ -127,2 +127,11 @@ var assert = require('assert');

test('parser ast is reinitialized after parse() throws', function() {
assert.throws(function() { var path = jp.parse('store.book...') })
var path = jp.parse('$..price');
assert.deepEqual(path, [
{ "expression": { "type": "root", "value": "$" } },
{ "expression": { "type": "identifier", "value": "price" }, "operation": "member", "scope": "descendant"}
])
});
});

@@ -129,0 +138,0 @@

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