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

@babel/plugin-transform-async-to-generator

Package Overview
Dependencies
Maintainers
6
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-async-to-generator - npm Package Compare versions

Comparing version 7.0.0-beta.43 to 7.0.0-beta.44

34

lib/index.js

@@ -9,5 +9,5 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var data = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
_helperPluginUtils = function _helperPluginUtils() {
return data;

@@ -20,5 +20,5 @@ };

function _helperRemapAsyncToGenerator() {
const data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator"));
var data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator"));
_helperRemapAsyncToGenerator = function () {
_helperRemapAsyncToGenerator = function _helperRemapAsyncToGenerator() {
return data;

@@ -31,5 +31,5 @@ };

function _helperModuleImports() {
const data = require("@babel/helper-module-imports");
var data = require("@babel/helper-module-imports");
_helperModuleImports = function () {
_helperModuleImports = function _helperModuleImports() {
return data;

@@ -42,5 +42,5 @@ };

function _core() {
const data = require("@babel/core");
var data = require("@babel/core");
_core = function () {
_core = function _core() {
return data;

@@ -54,8 +54,6 @@ };

var _default = (0, _helperPluginUtils().declare)((api, options) => {
var _default = (0, _helperPluginUtils().declare)(function (api, options) {
api.assertVersion(7);
const {
method,
module
} = options;
var method = options.method,
module = options.module;

@@ -65,5 +63,5 @@ if (method && module) {

visitor: {
Function(path, state) {
Function: function Function(path, state) {
if (!path.node.async || path.node.generator) return;
let wrapAsync = state.methodWrapper;
var wrapAsync = state.methodWrapper;

@@ -77,6 +75,5 @@ if (wrapAsync) {

(0, _helperRemapAsyncToGenerator().default)(path, {
wrapAsync
wrapAsync: wrapAsync
});
}
}

@@ -88,3 +85,3 @@ };

visitor: {
Function(path, state) {
Function: function Function(path, state) {
if (!path.node.async || path.node.generator) return;

@@ -95,3 +92,2 @@ (0, _helperRemapAsyncToGenerator().default)(path, {

}
}

@@ -98,0 +94,0 @@ };

{
"name": "@babel/plugin-transform-async-to-generator",
"version": "7.0.0-beta.43",
"version": "7.0.0-beta.44",
"description": "Turn async functions into ES2015 generators",

@@ -12,13 +12,13 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-generator",

"dependencies": {
"@babel/helper-module-imports": "7.0.0-beta.43",
"@babel/helper-plugin-utils": "7.0.0-beta.43",
"@babel/helper-remap-async-to-generator": "7.0.0-beta.43"
"@babel/helper-module-imports": "7.0.0-beta.44",
"@babel/helper-plugin-utils": "7.0.0-beta.44",
"@babel/helper-remap-async-to-generator": "7.0.0-beta.44"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.43"
"@babel/core": "7.0.0-beta.44"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.43",
"@babel/helper-plugin-test-runner": "7.0.0-beta.43"
"@babel/core": "7.0.0-beta.44",
"@babel/helper-plugin-test-runner": "7.0.0-beta.44"
}
}
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