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
5
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.5.0 to 7.7.0

50

lib/index.js

@@ -8,45 +8,13 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var _helperPluginUtils = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
return data;
};
var _helperRemapAsyncToGenerator = _interopRequireDefault(require("@babel/helper-remap-async-to-generator"));
return data;
}
var _helperModuleImports = require("@babel/helper-module-imports");
function _helperRemapAsyncToGenerator() {
const data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator"));
var _core = require("@babel/core");
_helperRemapAsyncToGenerator = function () {
return data;
};
return data;
}
function _helperModuleImports() {
const data = require("@babel/helper-module-imports");
_helperModuleImports = function () {
return data;
};
return data;
}
function _core() {
const data = require("@babel/core");
_core = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = (0, _helperPluginUtils().declare)((api, options) => {
var _default = (0, _helperPluginUtils.declare)((api, options) => {
api.assertVersion(7);

@@ -67,8 +35,8 @@ const {

if (wrapAsync) {
wrapAsync = _core().types.cloneNode(wrapAsync);
wrapAsync = _core.types.cloneNode(wrapAsync);
} else {
wrapAsync = state.methodWrapper = (0, _helperModuleImports().addNamed)(path, method, module);
wrapAsync = state.methodWrapper = (0, _helperModuleImports.addNamed)(path, method, module);
}
(0, _helperRemapAsyncToGenerator().default)(path, {
(0, _helperRemapAsyncToGenerator.default)(path, {
wrapAsync

@@ -87,3 +55,3 @@ });

if (!path.node.async || path.node.generator) return;
(0, _helperRemapAsyncToGenerator().default)(path, {
(0, _helperRemapAsyncToGenerator.default)(path, {
wrapAsync: state.addHelper("asyncToGenerator")

@@ -90,0 +58,0 @@ });

10

package.json
{
"name": "@babel/plugin-transform-async-to-generator",
"version": "7.5.0",
"version": "7.7.0",
"description": "Turn async functions into ES2015 generators",

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

"dependencies": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/helper-module-imports": "^7.7.0",
"@babel/helper-plugin-utils": "^7.0.0",
"@babel/helper-remap-async-to-generator": "^7.1.0"
"@babel/helper-remap-async-to-generator": "^7.7.0"
},

@@ -24,6 +24,6 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.5.0",
"@babel/core": "^7.7.0",
"@babel/helper-plugin-test-runner": "^7.0.0"
},
"gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4"
"gitHead": "97faa83953cb87e332554fa559a4956d202343ea"
}
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