
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
Safely use and dispose resources, even without the
usingdeclaration
npm install using-safe
import usingSafe from 'using-safe';
const result = await usingSafe(resource, async (r) => {
return await r.doWork();
});
// Resource is automatically disposed
Runs function_ with resource, then disposes resource in a finally block.
Disposal order: Symbol.asyncDispose -> Symbol.dispose -> .close() -> .destroy()
Returns the result of function_.
Synchronous version.
Disposal order: Symbol.dispose -> .close() -> .destroy()
Returns the result of function_.
MIT
FAQs
Safely use and dispose resources, even without the `using` declaration
The npm package using-safe receives a total of 6 weekly downloads. As such, using-safe popularity was classified as not popular.
We found that using-safe 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.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.