Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-helper-remap-async-to-generator

Package Overview
Dependencies
Maintainers
5
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helper-remap-async-to-generator - npm Package Compare versions

Comparing version 6.2.4 to 6.3.0

11

lib/index.js

@@ -63,2 +63,8 @@ /* @flow */

var isDeclaration = path.isFunctionDeclaration();
if (isDeclaration) {
node.type = "FunctionExpression";
}
var built = t.callExpression(callId, [node]);

@@ -74,7 +80,4 @@ var container = buildWrapper({

if (path.isFunctionDeclaration()) {
node.type = "FunctionExpression";
if (isDeclaration) {
var declar = t.variableDeclaration("let", [t.variableDeclarator(t.identifier(asyncFnId.name), t.callExpression(container, []))]);
declar._blockHoist = true;

@@ -81,0 +84,0 @@ retFunction.id = asyncFnId;

{
"name": "babel-helper-remap-async-to-generator",
"version": "6.2.4",
"version": "6.3.0",
"description": "",

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

"babel-runtime": "^5.0.0",
"babel-template": "^6.2.4",
"babel-types": "^6.2.4",
"babel-traverse": "^6.2.4",
"babel-helper-function-name": "^6.2.4"
"babel-template": "^6.3.0",
"babel-types": "^6.3.0",
"babel-traverse": "^6.1.18",
"babel-helper-function-name": "^6.1.18"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc