@nxtedition/lib 20.2.2 → 20.2.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 +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "20.2.2",
3
+ "version": "20.2.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
package/serializers.js CHANGED
@@ -181,6 +181,10 @@ function errSerializer(err) {
181
181
  _err.data = JSON.stringify(_err.data, undefined, 2)
182
182
  }
183
183
 
184
+ if (_err.body != null && typeof _err.body !== 'string') {
185
+ _err.body = JSON.stringify(_err.body, undefined, 2)
186
+ }
187
+
184
188
  if (_err.code != null && typeof _err.code !== 'string') {
185
189
  _err.code = String(_err.code)
186
190
  }