@injectivelabs/exceptions
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -89,3 +89,3 @@ "use strict"; | ||
toCompactError() { | ||
const error = new Error(JSON.stringify({ | ||
const error = new Error(`${this.message} | ${JSON.stringify({ | ||
message: this.message, | ||
@@ -96,3 +96,3 @@ code: this.code, | ||
contextCode: this.contextCode, | ||
})); | ||
})}`); | ||
error.stack = this.stack; | ||
@@ -99,0 +99,0 @@ error.name = this.name || ''; |
{ | ||
"name": "@injectivelabs/exceptions", | ||
"description": "List of exceptions that can be reused throughout Injective's projects.", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"license": "MIT", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "6e687561a4a17a758976f1a357df7a9a6ef944f6" | ||
"gitHead": "169c01352d855eaa4cf60368c9bdb0da3d93e3f3" | ||
} |
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
141767