Socket
Socket
Sign inDemoInstall

node-source-walk

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-source-walk - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

7

index.js

@@ -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": {

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