@nxtedition/lib 23.3.15 → 23.3.16
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.
- package/package.json +1 -1
- package/serializers.js +7 -1
package/package.json
CHANGED
package/serializers.js
CHANGED
|
@@ -308,5 +308,11 @@ function errSerializer(err) {
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
const isErrorLike = (err) => {
|
|
311
|
-
return
|
|
311
|
+
return (
|
|
312
|
+
err &&
|
|
313
|
+
(typeof err.message === 'string' ||
|
|
314
|
+
typeof err.status === 'number' ||
|
|
315
|
+
typeof err.statusCode === 'number' ||
|
|
316
|
+
typeof err.code === 'string')
|
|
317
|
+
)
|
|
312
318
|
}
|