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

JSONPath

Package Overview
Dependencies
Maintainers
1
Versions
12
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.8.2 to 0.8.3

.npmignore

16

lib/jsonpath.js

@@ -7,2 +7,3 @@ /* JSONPath 0.8.0 - XPath for JSON

var _ = require('underscore');
exports.eval = jsonPath;

@@ -13,2 +14,3 @@ var cache = {};

resultType: arg && arg.resultType || "VALUE",
flatten: arg && arg.flatten || false,
result: [],

@@ -36,3 +38,15 @@ normalize: function(expr) {

store: function(p, v) {
if (p) P.result[P.result.length] = P.resultType == "PATH" ? P.asPath(p) : v;
if (p) {
if (P.resultType == "PATH") {
P.result[P.result.length] = P.asPath(p);
}
else {
if(_.isArray(v) && P.flatten) {
P.result = P.result.concat(v);
}
else {
P.result[P.result.length] = v;
}
}
}
return !!p;

@@ -39,0 +53,0 @@ },

46

package.json
{
"author": "Stefan Goessner",
"name": "JSONPath",
"description": "A JS implementation of JSONPath",
"contributors": [
{ "name": "Stefan Goessner", "email": "subbu@subbu.org" },
{ "name": "Mike Brevoort", "email": "mike@brevoort.com" }
],
"version": "0.8.2",
"repository": {
"type": "git",
"url": "git://github.com/s3u/JSONPath.git"
},
"main" : "./lib/jsonpath",
"dependencies": {},
"devDependencies": {
"nodeunit": "latest"
}
"author": "Stefan Goessner",
"name": "JSONPath",
"description": "A JS implementation of JSONPath",
"contributors": [
{
"name": "Prof. G�ssner",
"email": "stefan.goessner@fh-dortmund.de"
},
{
"name": "Subbu Allamaraju",
"email": "subbu@subbu.org"
},
{
"name": "Mike Brevoort",
"email": "mike@brevoort.com"
}
],
"version": "0.8.3",
"repository": {
"type": "git",
"url": "git://github.com/s3u/JSONPath.git"
},
"main": "./lib/jsonpath",
"dependencies": {
"underscore": "latest"
},
"devDependencies": {
"nodeunit": "latest"
}
}

Sorry, the diff of this file is not supported yet

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