
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@corpuscule/babel-preset
Advanced tools
🛠 Status: In Development
@corpuscule/babel-preset is currently under development. Feedback is always welcome, but be careful with using it in production.
Babel plugins preset that allows working with the Corpuscule project while decorator specification is in development.
The earlier versions of Corpuscule used the second decorator proposal. However, in January 2019, this proposal was deprecated due to the complexity and potential performance penalty, and work on the third proposal was started.
Due to the beginning state of the new specification, the absence of the Babel implementation of it, it was decided to rewrite Corpuscule to the emulation of the new decorator proposal.
Emulation means that Corpuscule does not follow the specification yet. It respects basic ideas, but the implementation is based on the first decorator proposal (stage 1, also Typescript decorators or legacy decorator proposal) supplemented with the particular Babel plugin that adds missing functionality to it.
This decision is made because the new proposal changes syntax a lot and until Typescript implements this syntax in the compiler they will be incompatible. Implementation of the new syntax requires decorators to be on stage 3 which means that Corpuscule will also wait until it happens.
babel-plugin-inject-decorator-initializer
. Description see below.@babel/plugin-proposal-decorators
(in a legacy
mode).@babel/plugin-proposal-class-properties
(in a
loose
mode).babel-plugin-inject-decorator-initializer
The supplementing Babel plugin that adds missing functionality for the legacy decorator implementation works in the following way:
@initializer
implementation). The second array contains registrations (@register
implementation) that
will run after the class is created.__initializers
and __registrations
arrays. They
will work in the order decorators execute.First of all, preset contains all necessary decorators to work, because the legacy proposal requires a couple of
settings (e.g. @babel/plugin-proposal-class-properties
in loose
mode).
Then, when decorators become a standard, and the tweaks for legacy implementation are not necessary anymore, this package could be used for other goals like removing property guards in production.
$ npm install --save-dev @corpuscule/babel-preset
.babelrc
{
"presets": ["@corpuscule/babel-preset", "@babel/preset-typescript"]
}
FAQs
Babel preset for compiling Corpuscule projects
We found that @corpuscule/babel-preset 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.