
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
@mtth/stl-errors
Advanced tools
Good error handling is a prerequisite for good telemetry. To help with this,
@mtth/stl-errors provides a simple StandardError interface which exposes
powerful building blocks:
Standard errors are best created via errorFactories which provides type-safe
error creation functions along with their codes:
import {errorFactories} from '@mtth/stl-errors';
const [errors, codes] = errorFactories({
definitions: {
invalidFoo: (foo: string) => ({
message: `The input foo ${foo} was invalid`,
tags: {foo},
}),
missingBar: 'The bar was missing',
},
});
// Error with code `ERR_INVALID_FOO` (`codes.InvalidFoo`).
const err1 = errors.invalidFoo('fff');
// Error with code `ERR_MISSING_BAR` (`codes.MissingBar`).
const err2 = errors.missingBar();
FAQs
Standard errors
We found that @mtth/stl-errors 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.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.