syntax-error
Advanced tools
Comparing version 1.1.4 to 1.1.5
var aparse = require('acorn').parse; | ||
function parse (src) { return aparse(src, { ecmaVersion: 6 }) } | ||
function parse (src) { | ||
return aparse(src, { | ||
ecmaVersion: 6, | ||
allowHashBang: true | ||
}); | ||
} | ||
@@ -4,0 +9,0 @@ module.exports = function (src, file) { |
{ | ||
"name": "syntax-error", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "detect and report syntax errors in source code strings", | ||
"main": "index.js", | ||
"dependencies": { | ||
"acorn": "^1.0.3" | ||
"acorn": "^2.7.0" | ||
}, | ||
@@ -9,0 +9,0 @@ "devDependencies": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8414
20
171
1
8
+ Addedacorn@2.7.0(transitive)
- Removedacorn@1.2.2(transitive)
Updatedacorn@^2.7.0