Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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 4,206 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.