@effection/core
Advanced tools
Comparing version 2.2.0 to 2.2.1
# @effection/core | ||
## \[2.2.1] | ||
- delegate `error` and `name` properties to underlying `Error`. fixes https://github.com/thefrontside/effection/issues/675) | ||
- [84a66d7](https://github.com/thefrontside/effection/commit/84a66d799060ba2292fff2482d87bf6abafa7937) Delegate error properties to original error on 2022-10-05 | ||
## \[2.2.0] | ||
@@ -4,0 +9,0 @@ |
@@ -12,2 +12,10 @@ "use strict"; | ||
return Object.create(error, { | ||
name: { | ||
get: () => error.name, | ||
enumerable: true, | ||
}, | ||
message: { | ||
get: () => error.message, | ||
enumerable: true, | ||
}, | ||
effectionTrace: { | ||
@@ -14,0 +22,0 @@ value: [...(error.effectionTrace || []), info], |
@@ -9,2 +9,10 @@ export function addTrace(error, task) { | ||
return Object.create(error, { | ||
name: { | ||
get: () => error.name, | ||
enumerable: true, | ||
}, | ||
message: { | ||
get: () => error.message, | ||
enumerable: true, | ||
}, | ||
effectionTrace: { | ||
@@ -11,0 +19,0 @@ value: [...(error.effectionTrace || []), info], |
{ | ||
"name": "@effection/core", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"main": "dist-cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist-esm/index.js", |
@@ -19,2 +19,10 @@ import type { Task, TaskInfo } from './task'; | ||
return Object.create(error, { | ||
name: { | ||
get: () => error.name, | ||
enumerable: true, | ||
}, | ||
message: { | ||
get: () => error.message, | ||
enumerable: true, | ||
}, | ||
effectionTrace: { | ||
@@ -21,0 +29,0 @@ value: [...(error.effectionTrace || []), info], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
329361
6274