
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.
@teamthunderfoot/mobile-height-adjust
Advanced tools
The Mobile Height Adjust
package adjusts the height of the mobile screen by subtracting the height of the navigation bar, ensuring that the content occupies the full viewport height.
Here's an example
npm install @teamthunderfoot/mobile-height-adjust
import MobileHeightAdjust from "@teamthunderfoot/mobile-height-adjust";
class Page {
constructor() {
this.init();
this.events();
}
init() {
const mobileHeightAdjust = new MobileHeightAdjust();
}
events() {}
}
export default Page;
new Page();
The mobile-height-adjust
package automatically sets the CSS variable --vh
to adjust the height of the mobile screen, excluding the height of the navigation bar. This ensures that the content fits within the visible viewport.
To make the adjustment work properly, you need to apply the following CSS rule to the component that should occupy the full viewport height:
.your-component {
height: calc(var(--vh, 1vh) * 100);
}
This rule calculates the height based on the adjusted --vh value, allowing the component to fill the entire viewport height.
To remove the functionality of the mobile-height-adjust
package, you can simply destroy the instance. Call the destroy
method on the instance of MobileHeightAdjust:
mobileHeightAdjust.destroy();
Calling the destroy method will remove the event listener and revert the CSS variable --vh
to its original value.
FAQs
Mobile Height Adjust package
The npm package @teamthunderfoot/mobile-height-adjust receives a total of 0 weekly downloads. As such, @teamthunderfoot/mobile-height-adjust popularity was classified as not popular.
We found that @teamthunderfoot/mobile-height-adjust demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.