Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@advertol/control-element-classes
Advanced tools
Add HTML classes to zone elements based on zone state.
Add HTML classes to zone DOM elements based on zone state.
npm install @advertol/control-element-classes --save
import advertol from '@advertol/core';
import ElementClassesControl from '@advertol/control-element-classes';
const instance = advertol({
// …
control: [
new ElementClassesControl({
isHidden: 'is-hidden',
isLoaded: 'is-loaded',
isEmpty: 'is-empty'
})
]
});
instance.resolve();
Type: Object
HTML classes to apply on zone DOM element based on current state.
Property | Type | Description |
---|---|---|
isHidden | string | HTML class when zone is hidden. |
isLoaded | string | HTML class when zone is loaded. |
isEmpty | string | HTML class when zone is empty. |
Tested in IE9+ and all modern browsers, assuming Element.prototype.classList
is available.
For automated tests, run npm run test:automated
(append :watch
for watcher support).
MIT © Ivan Nikolić
[1.0.0][] - 2019-04-01
FAQs
Add HTML classes to zone elements based on zone state.
The npm package @advertol/control-element-classes receives a total of 516 weekly downloads. As such, @advertol/control-element-classes popularity was classified as not popular.
We found that @advertol/control-element-classes 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.