Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
Maintainers
4
Versions
80
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.18.6 to 7.20.7

lib/index.js.map

15

lib/index.js

@@ -7,14 +7,8 @@ "use strict";

exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _helperRemapAsyncToGenerator = require("@babel/helper-remap-async-to-generator");
var _helperModuleImports = require("@babel/helper-module-imports");
var _core = require("@babel/core");
var _default = (0, _helperPluginUtils.declare)((api, options) => {
var _api$assumption, _api$assumption2;
api.assertVersion(7);

@@ -27,3 +21,2 @@ const {

const ignoreFunctionLength = (_api$assumption2 = api.assumption("ignoreFunctionLength")) != null ? _api$assumption2 : false;
if (method && module) {

@@ -36,3 +29,2 @@ return {

let wrapAsync = state.methodWrapper;
if (wrapAsync) {

@@ -43,3 +35,2 @@ wrapAsync = _core.types.cloneNode(wrapAsync);

}
(0, _helperRemapAsyncToGenerator.default)(path, {

@@ -49,7 +40,5 @@ wrapAsync

}
}
};
}
return {

@@ -64,7 +53,7 @@ name: "transform-async-to-generator",

}
}
};
});
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/plugin-transform-async-to-generator",
"version": "7.18.6",
"version": "7.20.7",
"description": "Turn async functions into ES2015 generators",

@@ -21,4 +21,4 @@ "repository": {

"@babel/helper-module-imports": "^7.18.6",
"@babel/helper-plugin-utils": "^7.18.6",
"@babel/helper-remap-async-to-generator": "^7.18.6"
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/helper-remap-async-to-generator": "^7.18.9"
},

@@ -29,3 +29,3 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/core": "^7.20.7",
"@babel/helper-plugin-test-runner": "^7.18.6"

@@ -32,0 +32,0 @@ },

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