Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
babel-preset-modern-async
Advanced tools
Cutting edge Babel preset using 'fast-async' instead of generators for async/await. Also configurable for Electron.
Semi-opinionated preset for Babel based on babel-preset-latest
but
using fast-async
for async
/await
transpilation instead of
generators. Also includes configuration options for using Bluebird as the
Promise library, targeting Electron, and setting a stage ( ie. stage-0
)
npm i babel-preset-modern-async
Minimum configuration:
{
"presets": ["modern-async"]
}
You can also pass in a configuration object ( configuration intensifies ):
{
"presets": [["modern-async", {
"fast-async": {
"env": {
"augmentObject": false,
"dontMapStackTraces": true,
"dontInstallRequireHook": true
},
"compiler": {
"promises": true,
"generators": false
},
"runtimePattern": "directive",
"useRuntimeModule": false
},
"electron": false,
"promise": "bluebird",
"stage": 0
}]]
}
The above are the default options, the bulk of which come from
fast-async
. The rest:
electron
When set to true, many plugins will be excluded that the
Electron environment natively supports. Similar to the babel-preset-electron
preset.
promise
Determines the Promise implementation, which is left native
(or whatever you use at runtime) when this option is anything but 'bluebird'
(currently the only option with any affect). When set to 'bluebird'
,
the bluebird
library is automatically inserted and all Promise references
use it without further configuration.
NOTE: The bluebird
library is not a dependency of this preset.
If you intend to use this option, you must install it yourself.
stage
A number representing the ES feature stage to use in addition
to the latest
preset. These correspond to the Babel -stage-*
presets.
More advanced configuration notes are in progress.
MIT © Bo Lingen / citycide
See LICENSE
FAQs
Cutting edge Babel preset using 'fast-async' instead of generators for async/await. Also configurable for Electron.
The npm package babel-preset-modern-async receives a total of 1 weekly downloads. As such, babel-preset-modern-async popularity was classified as not popular.
We found that babel-preset-modern-async demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.