@trenskow/api-error 2.5.41 → 2.5.42

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.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -118,6 +118,7 @@ class ApiError extends Error {
118
118
  }
119
119
 
120
120
  get stacked() {
121
+ if (this.actual._stacked) return this.actual._stacked;
121
122
  return ApiError.stackToJSON(this.actual.stack);
122
123
  }
123
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/api-error",
3
- "version": "2.5.41",
3
+ "version": "2.5.42",
4
4
  "description": "A small collection of error objects that can be used for REST APIs.",
5
5
  "main": "index.js",
6
6
  "type": "module",