trace-error
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "trace-error", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Chained errors for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,2 +16,5 @@ # TraceError | ||
#### Compatibility | ||
Node 0.11 -> 5.X; not tested on browsers | ||
## Output | ||
@@ -42,3 +45,3 @@ | ||
#### `static TraceError@globalStackProperty` | ||
Attribute used to aggregate the long stack. Can further customized via. inheritance and/or prototype modification | ||
Attribute used to aggregate the long stack. Can be further customized via. inheritance and/or prototype modification | ||
@@ -45,0 +48,0 @@ #### `static TraceError@indent` |
@@ -20,3 +20,3 @@ export default class Exception { | ||
const error = new Error(...args); | ||
Object.defineProperty(this, '___base_exception___', {configurable: false, value: error}); | ||
Object.defineProperty(this, '___base_exception___', {configurable: false, value: error, enumerable: false}); | ||
} | ||
@@ -23,0 +23,0 @@ } |
@@ -43,7 +43,7 @@ import Exception from './Exception'; | ||
} | ||
Object.defineProperty(this, '___trace_error_use_base___', {value: true, configurable: true}); | ||
Object.defineProperty(this, '___trace_error_use_base___', {value: true, configurable: true, enumerable: false}); | ||
const stack = this.getLongStack(); | ||
Object.defineProperty(this, '___trace_error_use_base___', {value: false, configurable: true}); | ||
Object.defineProperty(this, '___trace_error_use_base___', {value: false, configurable: true, enumerable: false}); | ||
@@ -92,4 +92,4 @@ return stack; | ||
Object.defineProperty(this, '___trace_error_causes__', {value: causes}); | ||
Object.defineProperty(this, '___trace_error_causes__', {value: causes, enumerable: false, configurable: false}); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17421
51
0