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
3
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 1.1.1 to 1.1.2

6

lib/http-error.js

@@ -19,6 +19,2 @@ /**

* @typedef {object} HttpErrorData
* @property {string} [code]
* A machine-readable error code which identifies the specific type of error.
* @property {string} [message]
* A human readable message which describes the error.
* @property {number} [statusCode]

@@ -65,3 +61,3 @@ * An HTTP status code.

*
* @param {(string | number | HttpErrorData & Record<string, any>)} [data = {}]
* @param {(string | number | HttpErrorData & OperationalError.OperationalErrorData & Record<string, any>)} [data = {}]
* The error message if it's a string, the HTTP status code if it's a number, or full error

@@ -68,0 +64,0 @@ * information if an object.

4

package.json
{
"name": "@dotcom-reliability-kit/errors",
"version": "1.1.1",
"version": "1.1.2",
"description": "A suite of error classes which help you throw the most appropriate error in any situation",

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

"engines": {
"node": "14.x || 16.x",
"node": "14.x || 16.x || 18.x",
"npm": "7.x || 8.x"

@@ -17,0 +17,0 @@ },

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