json-query
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -62,3 +62,3 @@ // todo: syntax checking | ||
if (buffer){ | ||
push({filter:buffer}) | ||
push({filter:buffer.trim()}) | ||
} | ||
@@ -65,0 +65,0 @@ }, |
@@ -5,3 +5,3 @@ { | ||
"description": "Retrieves values from JSON objects for data binding. Offers params, nested queries, deep queries, custom reduce/filter functions and simple boolean logic. Browserify compatible.", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"homepage": "http://github.com/mmckegg/json-query", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -28,2 +28,11 @@ require('es5-shim') | ||
// test for whitespace handling | ||
check(" items[id=1]\n .name:not ",[ | ||
{root: true}, | ||
{get: 'items'}, | ||
{select: ['id', '1']}, | ||
{get: 'name'}, | ||
{filter:'not'} | ||
]) | ||
check("items[][id=1].name",[ | ||
@@ -30,0 +39,0 @@ {root: true}, |
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
29395
775