
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.
@deleteagency/page-locker
Advanced tools
[Live Demo](https://delete-agency.github.io/page-locker/)
On opening a modal window you have to prevent your main page from scrolling, so generally you can just set "overflow: hidden" on document.documentElement, but it won't work with iOS devices, so there is a need for a little bit tricky way via using "position: fixed" and setting the scroll position. So we can just use two simple methods to lock and unlock a page.
Use the package manager npm for installation.
$ npm install @deleteagency/page-locker
html {
&.is-blocked {
overflow: hidden;
}
&.is-blocked-touch {
position: fixed;
overflow-y: scroll;
width: 100%;
height: auto;
}
}
import { PageLocker } from '@deleteagency/page-locker';
const pageLocker = new PageLocker();
pageLocker.lock('modal');
Required
Type: string
Required
Type: string
FAQs
[Live Demo](https://delete-agency.github.io/page-locker/)
We found that @deleteagency/page-locker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.