Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

estraverse

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.3 to 2.0.0

46

estraverse.js

@@ -27,18 +27,6 @@ /*

/*jshint indent:4*/
/*global exports:true, define:true*/
(function (root, factory) {
/*global exports:true*/
(function clone(exports) {
'use strict';
// Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
// and plain browser loading,
if (typeof define === 'function' && define.amd) {
define(['exports'], factory);
} else if (typeof exports !== 'undefined') {
factory(exports);
} else {
factory((root.estraverse = {}));
}
}(this, function clone(exports) {
'use strict';
var Syntax,

@@ -159,2 +147,3 @@ isArray,

AssignmentExpression: 'AssignmentExpression',
AssignmentPattern: 'AssignmentPattern',
ArrayExpression: 'ArrayExpression',

@@ -180,4 +169,5 @@ ArrayPattern: 'ArrayPattern',

EmptyStatement: 'EmptyStatement',
ExportBatchSpecifier: 'ExportBatchSpecifier',
ExportDeclaration: 'ExportDeclaration',
ExportAllDeclaration: 'ExportAllDeclaration',
ExportDefaultDeclaration: 'ExportDefaultDeclaration',
ExportNamedDeclaration: 'ExportNamedDeclaration',
ExportSpecifier: 'ExportSpecifier',

@@ -208,2 +198,3 @@ ExpressionStatement: 'ExpressionStatement',

Property: 'Property',
RestElement: 'RestElement',
ReturnStatement: 'ReturnStatement',

@@ -231,2 +222,3 @@ SequenceExpression: 'SequenceExpression',

AssignmentExpression: ['left', 'right'],
AssignmentPattern: ['left', 'right'],
ArrayExpression: ['elements'],

@@ -242,4 +234,4 @@ ArrayPattern: ['elements'],

ClassBody: ['body'],
ClassDeclaration: ['id', 'body', 'superClass'],
ClassExpression: ['id', 'body', 'superClass'],
ClassDeclaration: ['id', 'superClass', 'body'],
ClassExpression: ['id', 'superClass', 'body'],
ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7.

@@ -253,5 +245,6 @@ ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7.

EmptyStatement: [],
ExportBatchSpecifier: [],
ExportDeclaration: ['declaration', 'specifiers', 'source'],
ExportSpecifier: ['id', 'name'],
ExportAllDeclaration: ['source'],
ExportDefaultDeclaration: ['declaration'],
ExportNamedDeclaration: ['declaration', 'specifiers', 'source'],
ExportSpecifier: ['exported', 'local'],
ExpressionStatement: ['expression'],

@@ -267,5 +260,5 @@ ForStatement: ['init', 'test', 'update', 'body'],

ImportDeclaration: ['specifiers', 'source'],
ImportDefaultSpecifier: ['id'],
ImportNamespaceSpecifier: ['id'],
ImportSpecifier: ['id', 'name'],
ImportDefaultSpecifier: ['local'],
ImportNamespaceSpecifier: ['local'],
ImportSpecifier: ['imported', 'local'],
Literal: [],

@@ -282,2 +275,3 @@ LabeledStatement: ['label', 'body'],

Property: ['key', 'value'],
RestElement: [ 'argument' ],
ReturnStatement: ['argument'],

@@ -842,3 +836,3 @@ SequenceExpression: ['expressions'],

exports.version = '1.8.1-dev';
exports.version = require('./package.json').version;
exports.Syntax = Syntax;

@@ -854,3 +848,3 @@ exports.traverse = traverse;

return exports;
}));
}(exports));
/* vim: set sw=4 ts=4 et tw=80 : */

@@ -6,3 +6,3 @@ {

"main": "estraverse.js",
"version": "1.9.3",
"version": "2.0.0",
"engines": {

@@ -25,2 +25,3 @@ "node": ">=0.10.0"

"coffee-script": "^1.8.0",
"espree": "^1.11.0",
"gulp": "^3.8.10",

@@ -27,0 +28,0 @@ "gulp-bump": "^0.2.2",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc