@nxtedition/lib 19.0.25 → 19.0.26

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/errors.js +1 -1
  2. package/package.json +1 -1
package/errors.js CHANGED
@@ -67,7 +67,7 @@ export function serializeError(error) {
67
67
  error[kSeen] = undefined
68
68
 
69
69
  const type =
70
- typeof error?.type === 'string'
70
+ typeof error?.type === 'string' && fp.isPlainObject(error)
71
71
  ? error.type
72
72
  : toString.call(error.constructor) === '[object Function]'
73
73
  ? error.constructor.name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.0.25",
3
+ "version": "19.0.26",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",