@nxtedition/lib 23.5.1 → 23.5.3

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/package.json +1 -1
  2. package/serializers.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.5.1",
3
+ "version": "23.5.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
package/serializers.js CHANGED
@@ -247,7 +247,11 @@ function errSerializer(err) {
247
247
  _err.aggregateErrors = errors
248
248
  }
249
249
 
250
- if (isErrorLike(err.cause) && !Object.prototype.hasOwnProperty.call(err.cause, seen)) {
250
+ if (
251
+ typeof err.cause === 'object' &&
252
+ err.cause != null &&
253
+ !Object.prototype.hasOwnProperty.call(err.cause, seen)
254
+ ) {
251
255
  _err.cause = errSerializer(err.cause)
252
256
  }
253
257