
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.
babel-plugin-auto-constant
Advanced tools
This space aged babel plugin allows you to create constants whose value is the
named expression by simply writing the expression without const
or assigning a value:
E.g. instead of:
const FOO_UPDATE_IN_FLIGHT = 'FOO_UPDATE_IN_FLIGHT';
simply write:
FOO_UPDATE_IN_FLIGHT;
... which compiles the same to:
var FOO_UPDATE_IN_FLIGHT = 'FOO_UPDATE_IN_FLIGHT';
If you want to export, add two underscores to the end of your expression:
FOO_LOADED__
...which will compile to
var FOO_LOADED = exports.FOO_LOADED = 'FOO_LOADED';
Note if you are only exporting constants, make sure to export a default or any value so that Babel will define the __esModule property on exports
FAQs
Shortcut for constant definitions
The npm package babel-plugin-auto-constant receives a total of 0 weekly downloads. As such, babel-plugin-auto-constant popularity was classified as not popular.
We found that babel-plugin-auto-constant 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.