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

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.11 to 0.2.12

1

lib/handlers.js

@@ -248,2 +248,3 @@ var aesprim = require('./aesprim');

function unique(results) {
results = results.filter(function(d) { return d })
return _uniq(

@@ -250,0 +251,0 @@ results,

2

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

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

@@ -94,5 +94,5 @@ [![Build Status](https://travis-ci.org/dchester/jsonpath.png?branch=master)](https://travis-ci.org/dchester/jsonpath)

`$.store..price` | The price of everything in the store
`$..book[2]` | The third book via array subscript
`$..book[(@.length-1)]` | The third book via script subscript
`$..book[-1:]` | The last book in order
`$..book[2]` | The third book
`$..book[(@.length-1)]` | The last book via script subscript
`$..book[-1:]` | The last book via slice
`$..book[0,1]` | The first two books via subscript union

@@ -99,0 +99,0 @@ `$..book[:2]` | The first two books via subscript array slice

@@ -354,3 +354,7 @@ var assert = require('assert');

test('union on objects', function() {
assert.deepEqual(jp.query({a: 1, b: 2, c: null}, '$..["a","b","c","d"]'), [1, 2, null]);
});
});

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