
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
svelte-actions-mutation
Advanced tools
MutationObserver action plugin for Svelte 3. Demo
Install with npm or yarn:
npm install --save svelte-actions-mutation
<button bind:this={btn} use:mutation={options} on:click={mutate}>
Mutate
</button>
<script>
import mutation from 'svelte-actions-mutation';
let btn;
function mutate() {
btn.classList.add(Math.random().toString(36).substring(7));
}
const options = {
attributeOldValue: true,
attributeFilter: [ 'class' ],
attributes(mutation) {
console.log(`Attribute ${mutation.attributeName} mutated. Old value: ${mutation.oldValue}`);
}
};
</script>
Name | Type | Description |
---|---|---|
attributes | Function | Callback to watch for changes to the value of attributes on the node or nodes being monitored. |
characterData | Function | Callback to monitor the specified target node or subtree for changes to the character data contained within the node or nodes. |
childList | Function | Callback to monitor the target node (and, if subtree is true , its descendants) for the addition of new child nodes or removal of existing child nodes. |
attributeFilter | Array | An array of specific attribute names to be monitored. If this property isn't included, changes to all attributes cause mutation notifications. |
attributeOldValue | Boolean | Set to true to record the previous value of any attribute that changes when monitoring the node or nodes for attribute changes. |
subtree | Boolean | Set to true to extend monitoring to the entire subtree of nodes rooted at target. |
characterDataOldValue | Boolean | Set to true to record the previous value of a node's text whenever the text changes on nodes being monitored. |
MIT © PaulMaly
1.0.0
FAQs
MutationObserver action plugin for Svelte 3
The npm package svelte-actions-mutation receives a total of 4 weekly downloads. As such, svelte-actions-mutation popularity was classified as not popular.
We found that svelte-actions-mutation 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.