![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
Advanced tools
Package description
@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly is a Babel plugin designed to address a specific bug in V8 (the JavaScript engine used in Chrome and Node.js) related to static class fields. This plugin ensures that static class fields are correctly redefined as readonly, preventing unexpected behavior in JavaScript code.
Fix V8 static class fields bug
This feature ensures that static class fields in JavaScript are correctly treated as readonly, preventing them from being reassigned. The plugin modifies the behavior of static class fields to align with the expected behavior in V8.
class MyClass {
static myField = 42;
}
MyClass.myField = 100; // This will not change the value of myField due to the plugin
This Babel plugin allows you to use class properties in your JavaScript code. While it does not specifically address the V8 bug related to static class fields, it provides a broader set of features for working with class properties, both static and instance.
This plugin transforms ES6 classes to ES5, ensuring compatibility with older JavaScript environments. It does not specifically address the V8 static class fields bug but provides a comprehensive solution for transforming modern class syntax.
Changelog
v7.23.7 (2023-12-29)
babel-traverse
Program
(@liuxingbaoyu)babel-helpers
, babel-plugin-proposal-decorators
ctx.kind
is wrong (@liuxingbaoyu)babel-plugin-proposal-decorators
babel-core
unhandledRejection
events (@nicolo-ribaudo)babel-helper-create-class-features-plugin
babel-helper-create-class-features-plugin
, babel-plugin-proposal-decorators
Readme
Transform static class fields assignments that are affected by https://crbug.com/v8/12421
See our website @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly for more information.
Using npm:
npm install --save-dev @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
or using yarn:
yarn add @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly --dev
FAQs
Unknown package
The npm package @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly receives a total of 7,550,123 weekly downloads. As such, @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly popularity was classified as popular.
We found that @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly 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.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
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.