@dotcom-reliability-kit/errors
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27976
239