![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@babel/plugin-transform-async-generator-functions
Advanced tools
Package description
The @babel/plugin-transform-async-generator-functions package is a Babel plugin that transforms async generator functions and for-await loops to ES2015/ES6-compatible code. This allows developers to use async generator functions in environments that do not support them natively.
Transformation of async generator functions
This feature allows developers to write async generator functions, which are then transformed into code that can be executed in environments that do not support async generators natively.
async function* asyncGenerator() {
var i = 0;
while (i < 3) {
yield i++;
}
}
Transformation of for-await loops
This feature enables the use of for-await loops to iterate over async iterable objects, which is transformed into a series of promise resolutions compatible with older JavaScript engines.
async function iterateAsyncGenerator() {
for await (const num of asyncGenerator()) {
console.log(num);
}
}
The regenerator-runtime package provides a runtime for Regenerator-compiled generator and async functions. It is similar to @babel/plugin-transform-async-generator-functions in that it allows the use of async functions in older environments, but it is a runtime rather than a compile-time plugin.
This plugin transforms async functions to generator functions. While it does not directly transform async generator functions, it serves a similar purpose in allowing async functions to run in environments that do not support them natively.
Changelog
v7.22.15 (2023-09-04)
babel-core
babel-cli
, babel-core
, babel-generator
, babel-helper-builder-binary-assignment-operator-visitor
, babel-helper-compilation-targets
, babel-helper-create-class-features-plugin
, babel-helper-create-regexp-features-plugin
, babel-helper-member-expression-to-functions
, babel-helper-module-imports
, babel-helper-module-transforms
, babel-helper-transform-fixture-test-runner
, babel-helper-validator-identifier
, babel-helper-validator-option
, babel-helpers
, babel-node
, babel-parser
, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-proposal-decorators
, babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-pipeline-operator
, babel-plugin-transform-async-generator-functions
, babel-plugin-transform-block-scoping
, babel-plugin-transform-classes
, babel-plugin-transform-destructuring
, babel-plugin-transform-for-of
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-object-rest-spread
, babel-plugin-transform-optional-chaining
, babel-plugin-transform-parameters
, babel-plugin-transform-property-mutators
, babel-plugin-transform-react-jsx
, babel-plugin-transform-runtime
, babel-plugin-transform-typescript
, babel-preset-env
, babel-preset-flow
, babel-preset-react
, babel-preset-typescript
, babel-register
, babel-standalone
, babel-template
, babel-traverse
, babel-types
.ts
/.js
extension to all imports in src
(@nicolo-ribaudo)Readme
Turn async generator functions into ES2015 generators
See our website @babel/plugin-transform-async-generator-functions for more information.
Using npm:
npm install --save-dev @babel/plugin-transform-async-generator-functions
or using yarn:
yarn add @babel/plugin-transform-async-generator-functions --dev
FAQs
Turn async generator functions into ES2015 generators
The npm package @babel/plugin-transform-async-generator-functions receives a total of 15,059,029 weekly downloads. As such, @babel/plugin-transform-async-generator-functions popularity was classified as popular.
We found that @babel/plugin-transform-async-generator-functions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.