
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.
makeup-switch
Advanced tools
A JavaScript class that represents an ARIA switch.
Available in CommonJS and ES Module format.
The following markup is required. Classnames are configurable (see config section below).
<span id="label1">switch 1</span>
<span class="switch">
<span class="switch__control" role="switch" tabindex="0" aria-checked="false" aria-labelledby="label1"></span>
<span class="switch__button"></span>
</span>
No CSS is provided. However, the class is fully compatible with eBay Skin.
// Consuming as CommonJS (note use of 'default()')
// const MakeupSwitch = require('makeup-switch').default();
// Consuming as ESM (recommended)
import MakeupSwitch from "makeup-switch";
document.querySelectorAll(".switch").forEach(function (el, i) {
const widget = new MakeupSwitch(el, config);
el.addEventListener("makeup-switch-toggle", function (e) {
console.log(e.type, e.detail);
});
});
The constructor takes a configuration object as its second parameter.
Set to true if using the class as the model for a custom element (aka Web Component)
Use this object to specify your custom classnames (i.e. if you don't wish to use the default switch
prefixes).
bem.control
: classname for the focusable element (default: switch__control
)Fired when the switch is toggled.
detail.on
: true or falseFAQs
A JavaScript class representing an ARIA switch
The npm package makeup-switch receives a total of 42 weekly downloads. As such, makeup-switch popularity was classified as not popular.
We found that makeup-switch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.