@sprucelabs/error 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,7 @@ class AbstractSpruceError extends Error {
30
30
  const optionsWithoutCode = Object.assign({}, options);
31
31
  //@ts-ignore
32
32
  delete optionsWithoutCode.code;
33
+ delete optionsWithoutCode.originalError;
33
34
  this.stack =
34
35
  'Options: ' +
35
36
  JSON.stringify(optionsWithoutCode, null, 2) +
@@ -28,6 +28,7 @@ export default class AbstractSpruceError extends Error {
28
28
  const optionsWithoutCode = Object.assign({}, options);
29
29
  //@ts-ignore
30
30
  delete optionsWithoutCode.code;
31
+ delete optionsWithoutCode.originalError;
31
32
  this.stack =
32
33
  'Options: ' +
33
34
  JSON.stringify(optionsWithoutCode, null, 2) +
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "5.1.0",
6
+ "version": "5.1.1",
7
7
  "skill": {
8
8
  "namespace": "spruce-error",
9
9
  "upgradeIgnoreList": [