Socket
Socket
Sign inDemoInstall

babel-helper-remap-async-to-generator

Package Overview
Dependencies
27
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.8.0 to 6.11.2

29

lib/index.js

@@ -1,2 +0,2 @@

/*istanbul ignore next*/"use strict";
"use strict";

@@ -18,18 +18,14 @@ exports.__esModule = true;

var /*istanbul ignore next*/_babelHelperFunctionName = require("babel-helper-function-name");
var _babelHelperFunctionName = require("babel-helper-function-name");
/*istanbul ignore next*/
var _babelHelperFunctionName2 = _interopRequireDefault(_babelHelperFunctionName);
var /*istanbul ignore next*/_babelTemplate = require("babel-template");
var _babelTemplate = require("babel-template");
/*istanbul ignore next*/
var _babelTemplate2 = _interopRequireDefault(_babelTemplate);
var /*istanbul ignore next*/_babelTypes = require("babel-types");
var _babelTypes = require("babel-types");
/*istanbul ignore next*/
var t = _interopRequireWildcard(_babelTypes);
/*istanbul ignore next*/
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -41,7 +37,7 @@

var buildWrapper = /*istanbul ignore next*/(0, _babelTemplate2.default)( /*istanbul ignore next*/"\n (() => {\n var ref = FUNCTION;\n return function NAME(PARAMS) {\n return ref.apply(this, arguments);\n };\n })\n");
var buildWrapper = (0, _babelTemplate2.default)("\n (() => {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })\n");
var namedBuildWrapper = /*istanbul ignore next*/(0, _babelTemplate2.default)( /*istanbul ignore next*/"\n (() => {\n var ref = FUNCTION;\n function NAME(PARAMS) {\n return ref.apply(this, arguments);\n }\n return NAME;\n })\n");
var namedBuildWrapper = (0, _babelTemplate2.default)("\n (() => {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })\n");
var awaitVisitor = { /*istanbul ignore next*/
var awaitVisitor = {
ArrowFunctionExpression: function ArrowFunctionExpression(path) {

@@ -52,4 +48,4 @@ if (!path.node.async) {

},
/*istanbul ignore next*/AwaitExpression: function AwaitExpression(_ref) {
/*istanbul ignore next*/var node = _ref.node;
AwaitExpression: function AwaitExpression(_ref) {
var node = _ref.node;

@@ -95,4 +91,5 @@ node.type = "YieldExpression";

NAME: asyncFnId,
REF: path.scope.generateUidIdentifier("ref"),
FUNCTION: built,
PARAMS: node.params.map(function () /*istanbul ignore next*/{
PARAMS: node.params.map(function () {
return path.scope.generateUidIdentifier("x");

@@ -110,3 +107,3 @@ })

if (!asyncFnId) {
/*istanbul ignore next*/(0, _babelHelperFunctionName2.default)({
(0, _babelHelperFunctionName2.default)({
node: retFunction,

@@ -128,2 +125,2 @@ parent: path.parent,

/*istanbul ignore next*/module.exports = exports["default"];
module.exports = exports["default"];
{
"name": "babel-helper-remap-async-to-generator",
"version": "6.8.0",
"version": "6.11.2",
"description": "",

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

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