From 76d6b21dabd094ca05260a71f5696692c216d925 Mon Sep 17 00:00:00 2001 From: Pieter Wigboldus Date: Tue, 20 Dec 2022 11:09:39 +0100 Subject: [PATCH] Set some fields to optional --- package-lock.json | 4 ++-- package.json | 2 +- src/app-error.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5584af1..4863906 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hckrnews/error", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@hckrnews/error", - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "dependencies": { "@hckrnews/validator": "^8.0.4" diff --git a/package.json b/package.json index b4f056d..f41c4a7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@hckrnews/error", "description": "Extended Errors", - "version": "1.0.2", + "version": "1.0.3", "author": { "name": "Pieter Wigboldus", "url": "https://hckr.news/" diff --git a/src/app-error.js b/src/app-error.js index e77454a..7686ce6 100644 --- a/src/app-error.js +++ b/src/app-error.js @@ -21,10 +21,10 @@ export default (error = Error) => * Set the error values * * @param {object} error - * @param {any} error.value - * @param {object} error.type + * @param {any?} error.value + * @param {object?} error.type * @param {string} error.message - * @param {object} error.me + * @param {object?} error.me */ constructor({ value = null, type = null, message, me = null }) { super(message);