
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.
@types/setimmediate
Advanced tools
TypeScript definitions for setimmediate
npm install --save @types/setimmediate
This package contains type definitions for setimmediate (https://github.com/yuzujs/setImmediate#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/setimmediate.
/**
* Schedules a macrotask to run after the current events have been processed.
*
* Unlike microtasks (scheduled using the Node 0.10+ `process.nextTick` API),
* where scheduling additional microtasks inside a microtask will cause them
* to be run inside the same microtask checkpoint, any macrotasks scheduled
* inside a macrotask will not be executed until the next iteration
* of the event loop.
*
* @param callback The macrotask to schedule.
* @param args The arguments to pass to the macrotask callback.
*
* @return The ID of the macrotask, which can be used to abort
* the macrotask with `clearImmediate`.
*/
declare function setImmediate<T extends unknown[]>(callback: (...args: T) => void, ...args: T): number;
/**
* Aborts the specified macrotask before it's run.
*
* @param handle The ID of the macrotask to remove from the macrotask queue.
*/
declare function clearImmediate(handle: number): void;
These definitions were written by ExE Boss.
FAQs
TypeScript definitions for setimmediate
The npm package @types/setimmediate receives a total of 36,623 weekly downloads. As such, @types/setimmediate popularity was classified as popular.
We found that @types/setimmediate 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.