Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dotcom-reliability-kit/errors

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotcom-reliability-kit/errors - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

2

lib/base-error.d.ts

@@ -22,3 +22,2 @@ export = BaseError;

}
type ErrorData = ErrorStrictData & Record<string, any>;
declare namespace exports {

@@ -32,2 +31,3 @@ export { exports as default, ErrorStrictData, ErrorData };

};
type ErrorData = ErrorStrictData & Record<string, any>;
//# sourceMappingURL=base-error.d.ts.map

@@ -19,3 +19,2 @@ export = HttpError;

import OperationalError = require("./operational-error");
type HttpErrorData = HttpErrorStrictData & OperationalError.OperationalErrorData;
declare namespace exports {

@@ -27,2 +26,3 @@ export { exports as default, HttpErrorStrictData, HttpErrorData };

};
type HttpErrorData = HttpErrorStrictData & OperationalError.OperationalErrorData;
//# sourceMappingURL=http-error.d.ts.map

@@ -109,3 +109,3 @@ const OperationalError = require('./operational-error');

: // @ts-ignore TypeScript does not properly infer the constructor
this.constructor.defaultStatusCode;
this.constructor.defaultStatusCode;
this.statusMessage = HttpError.getMessageForStatusCode(this.statusCode);

@@ -112,0 +112,0 @@

@@ -12,3 +12,2 @@ export = OperationalError;

import BaseError = require("./base-error");
type OperationalErrorData = OperationalErrorStrictData & BaseError.ErrorData;
declare namespace exports {

@@ -20,2 +19,3 @@ export { exports as default, OperationalErrorStrictData, OperationalErrorData };

};
type OperationalErrorData = OperationalErrorStrictData & BaseError.ErrorData;
//# sourceMappingURL=operational-error.d.ts.map
{
"name": "@dotcom-reliability-kit/errors",
"version": "2.2.0",
"version": "3.0.0",
"description": "A suite of error classes which help you throw the most appropriate error in any situation",

@@ -14,6 +14,6 @@ "repository": {

"engines": {
"node": "16.x || 18.x || 20.x",
"npm": "7.x || 8.x || 9.x"
"node": "18.x || 20.x",
"npm": "8.x || 9.x"
},
"main": "lib"
}

@@ -17,2 +17,3 @@

* [`BaseError`](#baseerror)
* [Migrating](#migrating)
* [Contributing](#contributing)

@@ -224,2 +225,8 @@ * [License](#license)

## Migrating
Consult the [Migration Guide](./docs/migration.md) if you're trying to migrate to a later major version of this package.
## Contributing

@@ -226,0 +233,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc