@lskjs/err
Advanced tools
Comparing version 2.8.0 to 2.12.0
@@ -71,3 +71,8 @@ "use strict"; | ||
}); | ||
if (!_this.code) _this.code = (0, _utils.getCode)(err); | ||
if (!_this.code) _this.code = (0, _utils.getCode)(err); // if (typeof Error.captureStackTrace === 'function') { | ||
// Error.captureStackTrace(this, this.constructor); | ||
// } else { | ||
// this.stack = new Error(message).stack; | ||
// } | ||
return _this; | ||
@@ -74,0 +79,0 @@ } |
{ | ||
"name": "@lskjs/err", | ||
"version": "2.8.0", | ||
"version": "2.12.0", | ||
"description": "LSK.js – err – Error class and utils for custom code and message extracting", | ||
@@ -33,3 +33,3 @@ "keywords": [], | ||
"_type": "module", | ||
"gitHead": "154cab089ac3ee71eb541f26fbb42f10a9f315b4" | ||
"gitHead": "6b9af35da8d382d07ef889c3167cf69e8b606e3f" | ||
} |
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
105573
359