Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleaner-node - npm Package Compare versions

Comparing version 0.8.16 to 0.8.17

12

package.json
{
"name": "cleaner-node",
"version": "0.8.16",
"version": "0.8.17",
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.",

@@ -45,3 +45,3 @@ "main": "index.js",

"semver": "^7.1.3",
"uuid": "^7.0.2",
"uuid": "^7.0.3",
"uuid-validate": "0.0.3"

@@ -51,6 +51,6 @@ },

"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",

@@ -57,0 +57,0 @@ "eslint-plugin-react": "^7.19.0",

@@ -37,1 +37,2 @@ # cleaner-node

| 0.8.14 | 2020/03/11 | All `remove` to `objects`. |
| 0.8.17 | 2020/04/02 | Extend `errors.init` to separate error details from the message. |

@@ -6,7 +6,8 @@ const { isNumber } = require('./numbers');

class ApiError extends Error {
constructor (message, number = null, status = INTERNAL_SERVER_ERROR) {
constructor (message, number = null, status = INTERNAL_SERVER_ERROR, details) {
super(message);
this.name = this.constructor.name;
this.number = number;
this.status = status;
this.name = this.constructor.name;
this.number = number;
this.status = status;
this.details = details || '';

@@ -17,4 +18,4 @@ Error.captureStackTrace(this, this.constructor);

const init = (status, number, message) => {
return new ApiError(message, number, status);
const init = (status, number, message, details) => {
return new ApiError(message, number, status, details);
};

@@ -21,0 +22,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