babel-helper-call-delegate
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -8,12 +8,10 @@ "use strict"; | ||
var node = path.node; | ||
var container = t.functionExpression(null, [], node.body, node.generator, node.async); | ||
var callee = container; | ||
var args = []; | ||
(0, _babelHelperHoistVariables2.default)(path, function (id) { | ||
return scope.push({ id: id }); | ||
return scope.push({ | ||
id: id | ||
}); | ||
}); | ||
var state = { | ||
@@ -23,3 +21,2 @@ foundThis: false, | ||
}; | ||
path.traverse(visitor, state); | ||
@@ -43,3 +40,2 @@ | ||
if (node.generator) call = t.yieldExpression(call, true); | ||
return t.returnStatement(call); | ||
@@ -66,3 +62,5 @@ }; | ||
if (path.isReferencedIdentifier({ name: "arguments" })) { | ||
if (path.isReferencedIdentifier({ | ||
name: "arguments" | ||
})) { | ||
state.foundArguments = true; | ||
@@ -69,0 +67,0 @@ } |
{ | ||
"name": "babel-helper-call-delegate", | ||
"version": "7.0.0-alpha.15", | ||
"version": "7.0.0-alpha.16", | ||
"description": "Helper function to call delegate", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-call-delegate", | ||
"dependencies": { | ||
"babel-helper-hoist-variables": "7.0.0-alpha.15", | ||
"babel-traverse": "7.0.0-alpha.15", | ||
"babel-types": "7.0.0-alpha.15" | ||
"babel-helper-hoist-variables": "7.0.0-alpha.16", | ||
"babel-traverse": "7.0.0-alpha.16", | ||
"babel-types": "7.0.0-alpha.16" | ||
} | ||
} |
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
2430
53
+ Addedansi-styles@3.2.1(transitive)
+ Addedbabel-code-frame@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-function-name@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-hoist-variables@7.0.0-alpha.16(transitive)
+ Addedbabel-messages@7.0.0-alpha.16(transitive)
+ Addedbabel-template@7.0.0-alpha.16(transitive)
+ Addedbabel-traverse@7.0.0-alpha.16(transitive)
+ Addedbabel-types@7.0.0-alpha.16(transitive)
+ Addedbabylon@7.0.0-beta.17(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedglobals@10.4.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbabel-code-frame@7.0.0-alpha.15(transitive)
- Removedbabel-helper-function-name@7.0.0-alpha.15(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-alpha.15(transitive)
- Removedbabel-helper-hoist-variables@7.0.0-alpha.15(transitive)
- Removedbabel-messages@7.0.0-alpha.15(transitive)
- Removedbabel-template@7.0.0-alpha.15(transitive)
- Removedbabel-traverse@7.0.0-alpha.15(transitive)
- Removedbabel-types@7.0.0-alpha.15(transitive)
- Removedbabylon@7.0.0-beta.15(transitive)
- Removedchalk@1.1.3(transitive)
- Removedglobals@9.18.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedto-fast-properties@1.0.3(transitive)
Updatedbabel-types@7.0.0-alpha.16