node-source-walk
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -22,5 +22,8 @@ var acorn = require('acorn'); | ||
module.exports.prototype.parse = function(src, options) { | ||
// Stopgap until https://github.com/marijnh/acorn/commit/e37c07248e7ad553b6b4df451c6ba1a935cb379a is released | ||
src = src.replace('#!', '//'); | ||
options = options || {}; | ||
if (typeof options.allowHashBang === 'undefined') { | ||
options.allowHashBang = true; | ||
} | ||
return acorn.parse(src, options); | ||
@@ -27,0 +30,0 @@ }; |
{ | ||
"name": "node-source-walk", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Execute a callback on every node of a source code's AST and stop walking when you see fit", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"acorn": "~0.10.0" | ||
"acorn": "^1.0.3" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
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
136
6585
+ Addedacorn@1.2.2(transitive)
- Removedacorn@0.10.0(transitive)
Updatedacorn@^1.0.3