
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
extendable-error
Advanced tools
A simple abstract extendable error class that extends Error, which handles the error name, message and stack property.
npm install extendable-error --save
import ExtendableError from 'extendable-error';
class SomeError extends ExtendableError {
constructor(
message: string,
public code: number
) {
super(message);
}
}
let someError = new SomeError('Some error', 0x0001);
MIT License.
The custom-error-generator package provides a way to create custom error classes with additional properties and methods. It is similar to extendable-error but offers more flexibility in defining custom error properties.
The es6-error package is another library for creating custom error classes by extending the built-in Error class. It is similar to extendable-error but focuses on providing a minimal and straightforward approach to creating custom errors.
The verror package allows for the creation of custom error classes with support for error wrapping and nested errors. It provides more advanced features compared to extendable-error, making it suitable for complex error handling scenarios.
FAQs
A simple extendable error class that extends Error.
The npm package extendable-error receives a total of 2,174,898 weekly downloads. As such, extendable-error popularity was classified as popular.
We found that extendable-error 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.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.