@babel/helper-wrap-function
Advanced tools
+3
-3
@@ -51,4 +51,4 @@ "use strict"; | ||
| let params = []; | ||
| const shoudlForwardParams = node.params.some(p => isPattern(p)); | ||
| if (shoudlForwardParams) { | ||
| const shouldForwardParams = node.params.some(p => isPattern(p)); | ||
| if (shouldForwardParams) { | ||
| params = node.params; | ||
@@ -66,3 +66,3 @@ node.params = []; | ||
| const container = functionExpression(null, params, blockStatement(body.body), true); | ||
| if (shoudlForwardParams) { | ||
| if (shouldForwardParams) { | ||
| body.body = [returnStatement(callExpression(memberExpression(callExpression(callId, [container]), identifier("apply")), [thisExpression(), identifier("arguments")]))]; | ||
@@ -69,0 +69,0 @@ path.get("body.body.0.argument.callee.object.arguments.0").unwrapFunctionEnvironment(); |
+4
-4
| { | ||
| "name": "@babel/helper-wrap-function", | ||
| "version": "7.27.1", | ||
| "version": "7.28.3", | ||
| "description": "Helper to wrap functions inside a function call.", | ||
@@ -17,5 +17,5 @@ "repository": { | ||
| "dependencies": { | ||
| "@babel/template": "^7.27.1", | ||
| "@babel/traverse": "^7.27.1", | ||
| "@babel/types": "^7.27.1" | ||
| "@babel/template": "^7.27.2", | ||
| "@babel/traverse": "^7.28.3", | ||
| "@babel/types": "^7.28.2" | ||
| }, | ||
@@ -22,0 +22,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Updated
Updated
Updated