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

astw

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astw - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

9

index.js

@@ -1,2 +0,2 @@

var parse = require('esprima').parse;
var parse = require('acorn').parse;

@@ -6,3 +6,8 @@ module.exports = function (src) {

if (typeof src === 'string') {
try { ast = parse(src) }
try {
ast = parse(src, {
ecmaVersion: 6,
allowReturnOutsideFunction: true
})
}
catch (err) { ast = parse('(' + src + ')') }

@@ -9,0 +14,0 @@ }

{
"name": "astw",
"version": "1.3.0",
"version": "2.0.0",
"description": "walk the ast with references to parent nodes",
"main": "index.js",
"dependencies": {
"esprima": "^2.1.0"
"acorn": "^1.0.3"
},

@@ -37,3 +37,3 @@ "devDependencies": {

"source",
"esprima"
"acorn"
],

@@ -40,0 +40,0 @@ "author": {

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