@babel/plugin-proposal-async-do-expressions
Advanced tools
Comparing version 7.18.6 to 7.21.4-esm
@@ -7,9 +7,5 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _pluginSyntaxAsyncDoExpressions = require("@babel/plugin-syntax-async-do-expressions"); | ||
var _helperHoistVariables = require("@babel/helper-hoist-variables"); | ||
var _default = (0, _helperPluginUtils.declare)(({ | ||
@@ -29,3 +25,2 @@ types: t, | ||
} | ||
const { | ||
@@ -41,3 +36,2 @@ scope | ||
const completionRecords = bodyPath.getCompletionRecords(); | ||
for (const p of completionRecords) { | ||
@@ -48,6 +42,4 @@ if (p.isExpressionStatement()) { | ||
} | ||
path.replaceWith(t.callExpression(t.arrowFunctionExpression([], bodyPath.node, true), [])); | ||
} | ||
} | ||
@@ -57,3 +49,4 @@ } | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-proposal-async-do-expressions", | ||
"version": "7.18.6", | ||
"version": "7.21.4-esm", | ||
"description": "Transform async do expressions to ES2021", | ||
@@ -23,14 +23,14 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-hoist-variables": "^7.18.6", | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/plugin-syntax-async-do-expressions": "^7.18.6" | ||
"@babel/helper-hoist-variables": "^7.21.4-esm", | ||
"@babel/helper-plugin-utils": "^7.21.4-esm", | ||
"@babel/plugin-syntax-async-do-expressions": "^7.21.4-esm" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.13.0" | ||
"@babel/core": "^7.13.0 || 7.21.4-esm" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/traverse": "^7.18.6", | ||
"@babel/types": "^7.18.6" | ||
"@babel/core": "^7.21.4-esm", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm", | ||
"@babel/traverse": "^7.21.4-esm", | ||
"@babel/types": "^7.21.4-esm" | ||
}, | ||
@@ -37,0 +37,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-async-do-expressions", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7437
6
45
1