Socket
Socket
Sign inDemoInstall

@babel/helper-remap-async-to-generator

Package Overview
Dependencies
Maintainers
6
Versions
80
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 7.16.7 to 7.16.8

4

lib/index.js

@@ -35,3 +35,3 @@ "use strict";

function _default(path, helpers, noNewArrows) {
function _default(path, helpers, noNewArrows, ignoreFunctionLength) {
path.traverse(awaitVisitor, {

@@ -43,3 +43,3 @@ wrapAwait: helpers.wrapAwait

path.node.generator = true;
(0, _helperWrapFunction.default)(path, cloneNode(helpers.wrapAsync), noNewArrows);
(0, _helperWrapFunction.default)(path, cloneNode(helpers.wrapAsync), noNewArrows, ignoreFunctionLength);
const isProperty = path.isObjectMethod() || path.isClassMethod() || path.parentPath.isObjectProperty() || path.parentPath.isClassProperty();

@@ -46,0 +46,0 @@

{
"name": "@babel/helper-remap-async-to-generator",
"version": "7.16.7",
"version": "7.16.8",
"description": "Helper function to remap async functions to generators",

@@ -18,7 +18,7 @@ "repository": {

"@babel/helper-annotate-as-pure": "^7.16.7",
"@babel/helper-wrap-function": "^7.16.7",
"@babel/types": "^7.16.7"
"@babel/helper-wrap-function": "^7.16.8",
"@babel/types": "^7.16.8"
},
"devDependencies": {
"@babel/traverse": "^7.16.7"
"@babel/traverse": "^7.16.8"
},

@@ -25,0 +25,0 @@ "engines": {

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