Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@solana/promises
Advanced tools
This package contains helpers for using JavaScript promises.
getAbortablePromise(promise, abortSignal?)
Rejects if the abortSignal
is aborted before the promise settles. Resolves or rejects with the value of the promise otherwise.
const result = await getAbortablePromise(
// Resolves or rejects when `fetch` settles.
fetch('https://example.com/json').then(r => r.json()),
// ...unless it takes longer than 5 seconds, after which the `AbortSignal` is triggered.
AbortSignal.timeout(5000),
);
safeRace(...promises)
An implementation of Promise.race
that causes all of the losing promises to settle. This allows them to be released and garbage collected, preventing memory leaks.
Read more here: https://github.com/nodejs/node/issues/17469
FAQs
Helpers for using JavaScript promises
The npm package @solana/promises receives a total of 12,065 weekly downloads. As such, @solana/promises popularity was classified as popular.
We found that @solana/promises demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.