From 78801a8a31d3b288b465cae78e00448a1dd719e1 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 21 Sep 2023 16:19:55 +0100 Subject: [PATCH 1/2] build(deps-dev): bump dev dependencies --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3ecc99e..cb269a4 100644 --- a/package.json +++ b/package.json @@ -73,22 +73,22 @@ "@commitlint/cli": "^17.7.1", "@commitlint/config-conventional": "^17.7.0", "@types/jest": "^29.5.5", - "eslint": "^8.47.0", + "eslint": "^8.49.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.0.0", - "eslint-plugin-import": "^2.28.0", - "eslint-plugin-jest": "^27.2.3", - "eslint-plugin-jsdoc": "^46.4.6", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-jest": "^27.4.0", + "eslint-plugin-jsdoc": "^46.8.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-regexp": "^1.15.0", "eslint-plugin-security": "^1.7.1", "eslint-plugin-security-node": "^1.1.1", "husky": "^8.0.3", "is-html": "^2.0.0", - "jest": "^29.6.2", + "jest": "^29.7.0", "jsdoc-to-markdown": "^8.0.0", "license-checker": "^25.0.1", - "prettier": "^3.0.2", + "prettier": "^3.0.3", "spdx-copyleft": "^1.0.0", "typescript": "^5.2.2" }, From a925c05de96df0034d00180388dc6c6a387c287e Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 21 Sep 2023 16:28:14 +0100 Subject: [PATCH 2/2] docs(readme): update chaining example with `.catch()` --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a1c3ebe..1b71df1 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,16 @@ const options = { outputHtml: true, }; -unRTF.convert(file, options).then((res) => { - console.log(res); -}); +unRTF + .convert(file, options) + .then((res) => { + console.log(res); + return res; + }) + .catch((err) => { + console.error(err); + throw err; + }); ``` ## Contributing