Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
race-as-promised
Advanced tools
Readme
This module implements Promise.race()
in a way that does not leak
memory.
The V8 Promise implementation does leak memory in many common
Promise.race([...])
call cases; see
e.g. https://github.com/nodejs/node/issues/17469.
The V8 Promise implementation is likely not going to be fixed.
See also: https://bugs.chromium.org/p/v8/issues/detail?id=9858
npm install race-as-promised
const race = require ("race-as-promised");
// Use race([...]) instead of Promise.race([...])
The source code and test core have been made available under The Unlicense by Brian Kim, to whom we owe our gratitude.
An additional issue in the original code has been found and fixed by Dan Bornstein, whose efforts are likewise appreciated.
FAQs
Alternate Promise.race() implementation which doesn't leak memory, courtesy Brian Kim (https://github.com/brainkim)
We found that race-as-promised demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.