Comparing version 0.1.5 to 0.1.6
var dict = require('./dict'); | ||
var fs = require('fs'); | ||
fs.readFileSync = fs.readFileSync || function() {} | ||
@@ -99,5 +101,8 @@ var grammar = { | ||
[ 'Q_STRING', "$$ = $1" ] ] | ||
} | ||
}, | ||
moduleInclude: fs.readFileSync("include/module.js"), | ||
actionInclude: fs.readFileSync("include/action.js") | ||
}; | ||
module.exports = grammar; |
@@ -1,11 +0,7 @@ | ||
var JisonParser = require('jison').Parser; | ||
var grammar = require('./grammar'); | ||
var gparser = require('../generated/parser'); | ||
var Parser = function() { | ||
var parser = new JisonParser(grammar); | ||
parser.yy.ast = _ast; | ||
_ast.initialize(); | ||
var parser = new gparser.Parser(); | ||
return parser; | ||
@@ -17,36 +13,1 @@ | ||
module.exports = Parser; | ||
var _ast = { | ||
initialize: function() { | ||
this._nodes = []; | ||
this._node = {}; | ||
this._stash = []; | ||
}, | ||
set: function(props) { | ||
for (var k in props) this._node[k] = props[k]; | ||
return this._node; | ||
}, | ||
node: function(obj) { | ||
if (arguments.length) this._node = obj; | ||
return this._node; | ||
}, | ||
push: function() { | ||
this._nodes.push(this._node); | ||
this._node = {}; | ||
}, | ||
unshift: function() { | ||
this._nodes.unshift(this._node); | ||
this._node = {}; | ||
}, | ||
yield: function() { | ||
var _nodes = this._nodes; | ||
this.initialize(); | ||
return _nodes; | ||
} | ||
}; |
{ | ||
"name": "jsonpath", | ||
"description": "Query JavaScript objects with JSONPath expressions. Robust / safe JSONPath engine for Node.js.", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"author": "david@fmail.co.uk", | ||
"scripts": { | ||
"test": "mocha -u tdd test && jscs lib && jshint lib" | ||
"test": "mocha -u tdd test && jscs lib && jshint lib", | ||
"generate": "node bin/generate_parser.js > generated/parser.js" | ||
}, | ||
"dependencies": { | ||
"esprima": "1.2.2", | ||
"jison": "0.3.10", | ||
"jison": "0.4.13", | ||
"static-eval": "0.2.3", | ||
@@ -13,0 +14,0 @@ "underscore": "1.7.0" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
32
2
381946
7627
+ Addedcjson@0.2.1(transitive)
+ Addedcolors@0.5.1(transitive)
+ Addedebnf-parser@0.1.10(transitive)
+ Addedescodegen@0.0.21(transitive)
+ Addedestraverse@0.0.4(transitive)
+ Addedjison@0.4.13(transitive)
+ Addedjison-lex@0.2.1(transitive)
+ Addedlex-parser@0.1.4(transitive)
+ Addednomnom@1.5.2(transitive)
+ Addedunderscore@1.1.7(transitive)
- Removedjison@0.3.10(transitive)
- Removednomnom@0.4.3(transitive)
- Removedreflect@0.0.7(transitive)
Updatedjison@0.4.13