Comparing version 2.1.12 to 2.1.13
@@ -143,3 +143,3 @@ "use strict"; | ||
formatMessage(...args) { | ||
this.message = sprintf_js_1.vsprintf(this.message, args); | ||
this.message = (0, sprintf_js_1.vsprintf)(this.message, args); | ||
this.appendCausedByMessage(); | ||
@@ -168,3 +168,3 @@ return this; | ||
this.message + | ||
sprintf_js_1.vsprintf(this._config.appendWithErrorMessageFormat, this._causedBy.message); | ||
(0, sprintf_js_1.vsprintf)(this._config.appendWithErrorMessageFormat, this._causedBy.message); | ||
this._appendedWithErrorMsg = true; | ||
@@ -302,4 +302,4 @@ } | ||
convert() { | ||
if (this._onConvert) { | ||
return this._onConvert(this); | ||
if (this.hasOnConvertDefined()) { | ||
return this._onConvert.bind(this)(this); | ||
} | ||
@@ -306,0 +306,0 @@ return this; |
@@ -0,1 +1,7 @@ | ||
## 2.1.13 - Fri Jan 28 2022 22:41:55 | ||
**Contributor:** Theo Gravity | ||
- Fix onConvert() failing in certain situations (#23) | ||
## 2.1.12 - Fri Oct 29 2021 19:39:32 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "new-error", | ||
"version": "2.1.12", | ||
"version": "2.1.13", | ||
"description": "A production-grade error creation and serialization library designed for Typescript", | ||
@@ -69,20 +69,20 @@ "main": "build/index.js", | ||
"@theo.gravity/version-bump": "2.0.14", | ||
"@types/jest": "27.0.1", | ||
"@types/node": "^16.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.29.1", | ||
"@typescript-eslint/parser": "^4.29.1", | ||
"eslint": "7.32.0", | ||
"@types/jest": "27.4.0", | ||
"@types/node": "^17.0.13", | ||
"@typescript-eslint/eslint-plugin": "^5.10.1", | ||
"@typescript-eslint/parser": "^5.10.1", | ||
"eslint": "8.8.0", | ||
"git-commit-stamper": "^1.0.10", | ||
"jest": "^27.0.6", | ||
"jest-cli": "27.0.6", | ||
"jest": "^27.4.7", | ||
"jest-cli": "27.4.7", | ||
"jest-junit-reporter": "1.1.0", | ||
"lint-staged": "11.1.2", | ||
"lint-staged": "12.3.2", | ||
"pre-commit": "1.2.2", | ||
"prettier-standard": "^16.4.1", | ||
"standardx": "^7.0.0", | ||
"toc-md-alt": "^0.4.2", | ||
"ts-jest": "27.0.4", | ||
"ts-node": "10.2.0", | ||
"toc-md-alt": "^0.4.6", | ||
"ts-jest": "27.1.3", | ||
"ts-node": "10.4.0", | ||
"ts-node-dev": "^1.1.8", | ||
"typescript": "4.3.5" | ||
"typescript": "4.5.5" | ||
}, | ||
@@ -89,0 +89,0 @@ "eslintConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120308