
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Like Scheme's boxes but for TypeScript.
unbox(box(myObj)) === myObj
Why do you need this? You probably don't. If you've ever wanted JS to have pointers to pointers or out parameters, boxes can help.
npm i ts-boxed
Boxes are mutable references to a single value.
import { box, unbox, setBox$ } from 'ts-boxed';
// Unboxing gets the original value (reference equality)...
const myObj = {};
unbox(box(myObj)) === myObj;
// without mutating the box.
const myBox = box('contents');
unbox(myBox) === 'contents';
unbox(myBox) === 'contents'; // still true
// Like Scheme, the setter has scary punctuation (too bad `set-box!` isn't a valid JS identifier).
setBox$(myBox, '2');
unbox(myBox) === '2';
setBox$(myBox, '3');
unbox(myBox) === '3';
isBox is a runtime check but also provides type information
to TypeScript.
function f(maybeBox: unknown) {
if (isBox(maybeBox)) {
// maybeBox now has type `Box<unknown>`
unbox(maybeBox);
} else {
// @ts-ignore maybeBox still has type `unknown`
unbox(maybeBox);
}
}
FAQs
Like Scheme boxes but for TypeScript
We found that ts-boxed 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.