Socket
Socket
Sign inDemoInstall

babel-helper-remap-async-to-generator

Package Overview
Dependencies
24
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10

11

lib/index.js

@@ -48,6 +48,2 @@ "use strict";

Function: function Function(path) {
if (path.isArrowFunctionExpression() && !path.node.async) {
path.arrowFunctionToShadowed();
return;
}
path.skip();

@@ -108,6 +104,7 @@ },

var container = t.functionExpression(null, [], t.blockStatement(body.body), true);
container.shadow = true;
body.body = [t.returnStatement(t.callExpression(t.callExpression(callId, [container]), []))];
node.generator = false;
path.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment();
}

@@ -122,3 +119,3 @@

if (path.isArrowFunctionExpression()) {
path.arrowFunctionToShadowed();
path.arrowFunctionToExpression();
} else if (!isDeclaration && asyncFnId) {

@@ -139,3 +136,3 @@ wrapper = namedBuildWrapper;

var container = wrapper({
NAME: asyncFnId,
NAME: asyncFnId || null,
REF: path.scope.generateUidIdentifier("ref"),

@@ -142,0 +139,0 @@ FUNCTION: built,

{
"name": "babel-helper-remap-async-to-generator",
"version": "7.0.0-alpha.9",
"version": "7.0.0-alpha.10",
"description": "Helper function to remap async functions to generators",

@@ -9,7 +9,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-remap-async-to-generator",

"dependencies": {
"babel-template": "7.0.0-alpha.9",
"babel-types": "7.0.0-alpha.9",
"babel-traverse": "7.0.0-alpha.9",
"babel-helper-function-name": "7.0.0-alpha.9"
"babel-template": "7.0.0-alpha.10",
"babel-types": "7.0.0-alpha.10",
"babel-traverse": "7.0.0-alpha.10",
"babel-helper-function-name": "7.0.0-alpha.10"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc