
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
snabbdom-delayed-class
Advanced tools
Snabbdom class module with support for delayed/on-remove class updates
Replacement module for Snabbdom's core class
module. It is backwards-compatible with the existing module, but adds functionality for delaying class updates and updating classes before removing elements, similar to the core style
module. These capabilities are useful for constructing animations using CSS classes/stylesheets, instead of inline styles.
Install package: npm install --save snabbdom-delayed-class
Import/require snabbdom-delayed-class
and pass it to snabbdom.init()
instead of the core class
module:
import snabbdom from 'snabbdom';
import snabbDelayedClass from 'snabbdom-delayed-class';
const patch = snabbdom.init([
snabbDelayedClass,
// other modules
]);
Classes under delayed
are not changed until the next frame:
h('div', {class: {
fadedout: true,
delayed: {fadedout: false},
}, 'Fading in');
Class changes under remove
are applied when the element is about to be removed from the DOM. The delayRemove
property specifies the number of milliseconds to wait before removing the element (to permit any CSS transitions or animations to finish):
h('div', {class: {
fadedout: false,
remove: {fadedout: true, delayRemove: 300},
}, 'Fading out');
The destroy
property works similarly but has no delayRemove
property; it is assumed that removal delay will be managed by the ancestor node whose removal caused the destroy
call on descendents.
npm install
npm test
MIT
FAQs
Snabbdom class module with support for delayed/on-remove class updates
The npm package snabbdom-delayed-class receives a total of 6,726 weekly downloads. As such, snabbdom-delayed-class popularity was classified as popular.
We found that snabbdom-delayed-class 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.