@babel/helper-wrap-function
Advanced tools
Comparing version 7.0.0-beta.35 to 7.0.0-beta.36
@@ -66,5 +66,4 @@ "use strict"; | ||
if (isDeclaration) { | ||
var basePath = path.parentPath.isExportDeclaration() ? path.parentPath : path; | ||
basePath.insertAfter(container[1]); | ||
path.replaceWith(container[0]); | ||
path.insertAfter(container[1]); | ||
} else { | ||
@@ -71,0 +70,0 @@ var retFunction = container.callee.body.body[1].argument; |
{ | ||
"name": "@babel/helper-wrap-function", | ||
"version": "7.0.0-beta.35", | ||
"version": "7.0.0-beta.36", | ||
"description": "Helper to wrap functions inside a function call.", | ||
@@ -9,7 +9,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-wrap-function", | ||
"dependencies": { | ||
"@babel/helper-function-name": "7.0.0-beta.35", | ||
"@babel/template": "7.0.0-beta.35", | ||
"@babel/traverse": "7.0.0-beta.35", | ||
"@babel/types": "7.0.0-beta.35" | ||
"@babel/helper-function-name": "7.0.0-beta.36", | ||
"@babel/template": "7.0.0-beta.36", | ||
"@babel/traverse": "7.0.0-beta.36", | ||
"@babel/types": "7.0.0-beta.36" | ||
} | ||
} |
4187
73
+ Added@babel/code-frame@7.0.0-beta.36(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.36(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.36(transitive)
+ Added@babel/template@7.0.0-beta.36(transitive)
+ Added@babel/traverse@7.0.0-beta.36(transitive)
+ Added@babel/types@7.0.0-beta.36(transitive)
+ Addedbabylon@7.0.0-beta.36(transitive)
+ Addedglobals@11.12.0(transitive)
- Removed@babel/code-frame@7.0.0-beta.35(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.35(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.35(transitive)
- Removed@babel/template@7.0.0-beta.35(transitive)
- Removed@babel/traverse@7.0.0-beta.35(transitive)
- Removed@babel/types@7.0.0-beta.35(transitive)
- Removedbabylon@7.0.0-beta.35(transitive)
- Removedglobals@10.4.0(transitive)
Updated@babel/types@7.0.0-beta.36