Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@babel/plugin-syntax-logical-assignment-operators
Advanced tools
Package description
The @babel/plugin-syntax-logical-assignment-operators package allows Babel to parse code that uses logical assignment operators. These operators combine logical operations with assignment expressions. This plugin only enables the syntax, and does not transform it. To transform the code, you would need to use another plugin or set of plugins that handle the transformation.
Logical AND Assignment (&&=)
The logical AND assignment (&&=) operator only assigns the value of the right operand to the left operand if the left operand is truthy.
a &&= b;
Logical OR Assignment (||=)
The logical OR assignment (||=) operator assigns the value of the right operand to the left operand if the left operand is falsy.
a ||= b;
Logical Nullish Assignment (??=)
The logical nullish assignment (??=) operator assigns the value of the right operand to the left operand if the left operand is null or undefined.
a ??= b;
This package is a proposal plugin that not only allows Babel to parse logical assignment operators but also transforms them. It is similar to @babel/plugin-syntax-logical-assignment-operators but includes the transformation step.
While not exclusively focused on logical assignment operators, @babel/preset-env includes the necessary plugins to both parse and transform modern JavaScript syntax, including logical assignment operators, based on the target environment.
Readme
Allow parsing of the logical assignment operators
See our website @babel/plugin-syntax-logical-assignment-operators for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-logical-assignment-operators
or using yarn:
yarn add @babel/plugin-syntax-logical-assignment-operators --dev
FAQs
Allow parsing of the logical assignment operators
We found that @babel/plugin-syntax-logical-assignment-operators demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.