
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.
@cagov/anchor-events
Advanced tools
A component that looks for ids within selectors and fires events if a link to those ids is executed either via click on an in page anchor or on new page load
A component that looks for ids within selectors and fires events if a link to those ids is executed either via click on an in page anchor or on new page load
We have accordions on our pages which initialize in a closed state. We may want to link directly to the contents of one of these accordions from another page or with an in page anchor link. Clicking on this link will scroll the page to the desired location already but this module adds the ability for the accordion to automatically open as the user arrives at it.
<cagov-anchor-events
data-selector="cagov-accordion"
data-event="click"
data-event-target-selector="button.card-header.accordion-alpha"
data-cancel-selector="open"
/>
Example above shows the custom element passing in the default values for all data set attributes. These attributes are optional and if the above default values are preferred that data attribute can be skipped:
<cagov-anchor-events />
Arguments are passed in as data attributes
This will only fire the event if the user clicked a link or loaded a page with an anchor hash targeting an id inside the selector
FAQs
A component that looks for ids within selectors and fires events if a link to those ids is executed either via click on an in page anchor or on new page load
We found that @cagov/anchor-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.