New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rest-api-errors

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-api-errors - npm Package Compare versions

Comparing version
1.2.3
to
1.2.4
+6
-3
index.js

@@ -1,2 +0,2 @@

class ApiError {
class APIError {
constructor(status, code, message) {

@@ -64,3 +64,3 @@ this.status = status;

map[`${name}Error`] = map[name] = class extends ApiError {
map[`${name}Error`] = map[name] = class extends APIError {
constructor(code, message) {

@@ -73,2 +73,5 @@ super(status, code, message);

module.exports = apiErrors;
module.exports = {
...apiErrors,
APIError
};
{
"name": "rest-api-errors",
"version": "1.2.3",
"version": "1.2.4",
"description": "Common errors that can be thrown to simplify promise based api implementations",

@@ -5,0 +5,0 @@ "main": "index.js",