Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
extendo-error
Advanced tools
Safely and simply extend native Error with prototype chaining support
Safely and simply extend native Error with prototype chaining support
Allows you to extend the native Error type whilst keeping the ability to have a setable message through constructor and resolving the name correctly.
It also gives the right typings and extends all children in the chain correctly (i.e. instanceof works correctly and all functions, properties and fields are accessible).
In TypeScript 2.1 a breaking change makes it more challenging to extend the Error type and also means you need to do work in every class that extends Error (Exten See this
Install it
npm instal extendo-error --save
Import it and extend it
import ExtendoError from "extendo-error";
class YourCustomError extends ExtendoError {
// add whatever you like here
}
All done! :)
FAQs
Safely and simply extend native Error with prototype chaining support
The npm package extendo-error receives a total of 1,689 weekly downloads. As such, extendo-error popularity was classified as popular.
We found that extendo-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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.