
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.
@nativescript-use/nativescript-orientation
Advanced tools
npm install @nativescript-use/nativescript-orientation
import { Orientation } from "@nativescript-use/nativescript-orientation"
const orientation = new Orientation();
// Get current orientation
const currentOrientation = orientation.getOrientation();
// Change orientation. values: 'landscape' | 'landscaperight' | 'landscapeleft' | 'portrait'
orientation.setOrientation('landscape');
// Enable rotation
orientation.enableRotation();
// Disable rotation
orientation.disableRotation();
// Add listener
orientation.onChangedOrientation((newValue: CoreTypes.DeviceOrientationType) =>{
console.log(newValue)
});
// Remove listener
orientation.offChangedOrientation();
Type declaration
export declare class Orientation {
getOrientation(): CoreTypes.DeviceOrientationType
onChangedOrientation(callback: (newValue: CoreTypes.DeviceOrientationType) => void): void
offChangedOrientation(): void
enableRotation(): void
disableRotation(): void
setOrientation(value: 'landscape' | 'landscaperight' | 'landscapeleft' | 'portrait', animation: false): void
}
Apache License Version 2.0
FAQs
Add a plugin description
We found that @nativescript-use/nativescript-orientation 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.