Comparing version 0.2.11 to 0.2.12
@@ -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, |
{ | ||
"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
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
396802
7874