@akkadu/error
Advanced tools
Comparing version 1.6.0 to 2.0.0-alpha.1
@@ -14,3 +14,3 @@ /** | ||
if (err instanceof Error) { | ||
const newError = new Error(`${message}=>${err.message}`); | ||
const newError = new Error(`${message}:${err.message}`); | ||
newError.stack = err.stack; | ||
@@ -21,3 +21,3 @@ newError.code = err.code; | ||
} | ||
return new Error(`${message}=>${JSON.stringify(err)}`) | ||
return new Error(`${message}:${JSON.stringify(err)}`) | ||
} | ||
@@ -40,3 +40,3 @@ catch (error) { | ||
try { | ||
return `${header}=>${JSON.stringify(message)}` | ||
return `${header}:${JSON.stringify(message)}` | ||
} | ||
@@ -43,0 +43,0 @@ catch (error) { |
@@ -14,3 +14,3 @@ /** | ||
if (err instanceof Error) { | ||
const newError = new Error(`${message}=>${err.message}`) | ||
const newError = new Error(`${message}:${err.message}`) | ||
newError.stack = err.stack | ||
@@ -21,3 +21,3 @@ newError.code = err.code | ||
} | ||
return new Error(`${message}=>${JSON.stringify(err)}`) | ||
return new Error(`${message}:${JSON.stringify(err)}`) | ||
} | ||
@@ -40,3 +40,3 @@ catch (error) { | ||
try { | ||
return `${header}=>${JSON.stringify(message)}` | ||
return `${header}:${JSON.stringify(message)}` | ||
} | ||
@@ -43,0 +43,0 @@ catch (error) { |
{ | ||
"name": "@akkadu/error", | ||
"version": "1.6.0", | ||
"version": "2.0.0-alpha.1", | ||
"module": "dist/index.js", | ||
@@ -25,3 +25,3 @@ "license": "ISC", | ||
"description": "", | ||
"gitHead": "0de0736bf31b037efa87519eaa60c7edac19d5e3" | ||
"gitHead": "f9375dd9f898a51052bef325699f87c5781adafa" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
8138
2