estree-walker
Advanced tools
Comparing version 0.3.0 to 0.3.1
# changelog | ||
## 0.3.1 | ||
* Include `pkg.repository` ([#2](https://github.com/Rich-Harris/estree-walker/pull/2)) | ||
## 0.3.0 | ||
@@ -4,0 +8,0 @@ |
@@ -22,3 +22,3 @@ function walk ( ast, ref) { | ||
function visit ( node, parent, enter, leave, prop, index ) { | ||
if ( !node ) return; | ||
if ( !node ) { return; } | ||
@@ -28,3 +28,3 @@ if ( enter ) { | ||
enter.call( context, node, parent, prop, index ); | ||
if ( context.shouldSkip ) return; | ||
if ( context.shouldSkip ) { return; } | ||
} | ||
@@ -31,0 +31,0 @@ |
@@ -31,3 +31,3 @@ function walk ( ast, ref) { | ||
var keys = childKeys[ node.type ] || ( | ||
childKeys[ node.type ] = Object.keys( node ).filter( function ( key ) { return typeof node[ key ] === 'object'; } ) | ||
childKeys[ node.type ] = Object.keys( node ).filter( function (key) { return typeof node[ key ] === 'object'; } ) | ||
); | ||
@@ -60,2 +60,2 @@ | ||
export { walk }; | ||
//# sourceMappingURL=estree-walker.es6.js.map | ||
//# sourceMappingURL=estree-walker.es6.js.map |
@@ -28,3 +28,3 @@ (function (global, factory) { | ||
function visit ( node, parent, enter, leave, prop, index ) { | ||
if ( !node ) return; | ||
if ( !node ) { return; } | ||
@@ -34,3 +34,3 @@ if ( enter ) { | ||
enter.call( context, node, parent, prop, index ); | ||
if ( context.shouldSkip ) return; | ||
if ( context.shouldSkip ) { return; } | ||
} | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "estree-walker", | ||
"description": "Traverse an ESTree-compliant AST", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "Rich Harris", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Rich-Harris/estree-walker" | ||
}, | ||
"main": "dist/estree-walker.umd.js", | ||
@@ -18,7 +22,7 @@ "module": "dist/estree-walker.es.js", | ||
"devDependencies": { | ||
"buble": "^0.13.2", | ||
"eslint": "^3.5.0", | ||
"mocha": "^3.0.2", | ||
"rollup": "^0.34.13", | ||
"rollup-plugin-buble": "^0.13.0" | ||
"buble": "^0.15.2", | ||
"eslint": "^3.16.0", | ||
"mocha": "^3.2.0", | ||
"rollup": "^0.41.4", | ||
"rollup-plugin-buble": "^0.15.0" | ||
}, | ||
@@ -25,0 +29,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
16256
174
0