estraverse
Advanced tools
Comparing version 1.9.3 to 2.0.0
@@ -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", |
36927
10
6
785