@nxtedition/lib 23.3.10 → 23.3.12
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 +17 -17
- package/serializers.js +17 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/lib",
|
|
3
|
-
"version": "23.3.
|
|
3
|
+
"version": "23.3.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Robert Nagy <robert.nagy@boffins.se>",
|
|
6
6
|
"type": "module",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"singleQuote": true
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aws-sdk/client-s3": "^3.
|
|
65
|
-
"@elastic/elasticsearch": "^8.
|
|
64
|
+
"@aws-sdk/client-s3": "^3.758.0",
|
|
65
|
+
"@elastic/elasticsearch": "^8.17.1",
|
|
66
66
|
"@elastic/transport": "^8.9.3",
|
|
67
|
-
"@nxtedition/nxt-undici": "^6.
|
|
68
|
-
"@swc/wasm-web": "^1.
|
|
67
|
+
"@nxtedition/nxt-undici": "^6.2.2",
|
|
68
|
+
"@swc/wasm-web": "^1.11.8",
|
|
69
69
|
"content-type": "^1.0.5",
|
|
70
70
|
"date-fns": "^4.1.0",
|
|
71
71
|
"fast-querystring": "^1.1.1",
|
|
@@ -87,30 +87,30 @@
|
|
|
87
87
|
"request-target": "^1.0.2",
|
|
88
88
|
"smpte-timecode": "^1.3.6",
|
|
89
89
|
"split-string": "^6.0.0",
|
|
90
|
-
"undici": "^7.
|
|
90
|
+
"undici": "^7.4.0",
|
|
91
91
|
"url-join": "^5.0.0",
|
|
92
92
|
"xuid": "^4.1.5",
|
|
93
|
-
"yocto-queue": "^1.
|
|
93
|
+
"yocto-queue": "^1.2.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@nxtedition/deepstream.io-client-js": ">=28.1.
|
|
97
|
-
"@types/lodash": "^4.17.
|
|
98
|
-
"@types/node": "^22.13.
|
|
99
|
-
"eslint": "^9.
|
|
100
|
-
"eslint-config-prettier": "^10.
|
|
96
|
+
"@nxtedition/deepstream.io-client-js": ">=28.1.9",
|
|
97
|
+
"@types/lodash": "^4.17.16",
|
|
98
|
+
"@types/node": "^22.13.10",
|
|
99
|
+
"eslint": "^9.22.0",
|
|
100
|
+
"eslint-config-prettier": "^10.1.1",
|
|
101
101
|
"eslint-config-standard": "^17.0.0",
|
|
102
102
|
"eslint-plugin-import": "^2.31.0",
|
|
103
|
-
"eslint-plugin-n": "^17.
|
|
103
|
+
"eslint-plugin-n": "^17.16.2",
|
|
104
104
|
"eslint-plugin-node": "^11.1.0",
|
|
105
105
|
"eslint-plugin-promise": "^7.2.1",
|
|
106
106
|
"husky": "^9.1.7",
|
|
107
107
|
"lint-staged": "^15.3.0",
|
|
108
108
|
"pinst": "^3.0.0",
|
|
109
|
-
"prettier": "^3.5.
|
|
110
|
-
"rxjs": "^7.
|
|
109
|
+
"prettier": "^3.5.3",
|
|
110
|
+
"rxjs": "^7.8.2",
|
|
111
111
|
"send": "^1.1.0",
|
|
112
|
-
"tap": "^21.0
|
|
113
|
-
"typescript-eslint": "^8.
|
|
112
|
+
"tap": "^21.1.0",
|
|
113
|
+
"typescript-eslint": "^8.26.0"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"@elastic/elasticsearch": "^8.6.0",
|
package/serializers.js
CHANGED
|
@@ -248,6 +248,8 @@ function errSerializer(err) {
|
|
|
248
248
|
if (!Object.prototype.hasOwnProperty.call(val, seen)) {
|
|
249
249
|
_err[key] = errSerializer(val)
|
|
250
250
|
}
|
|
251
|
+
} else if (typeof val === 'bigint') {
|
|
252
|
+
_err[key] = `${val.toString()}`
|
|
251
253
|
} else if (val != null && !/^[A-Z0-9_]+$/.test(key)) {
|
|
252
254
|
_err[key] = val
|
|
253
255
|
}
|
|
@@ -255,15 +257,27 @@ function errSerializer(err) {
|
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
if (_err.data != null && typeof _err.data !== 'string') {
|
|
258
|
-
|
|
260
|
+
try {
|
|
261
|
+
_err.data = JSON.stringify(_err.data, undefined, 2)
|
|
262
|
+
} catch {
|
|
263
|
+
// Do nothing...
|
|
264
|
+
}
|
|
259
265
|
}
|
|
260
266
|
|
|
261
267
|
if (_err.body != null && typeof _err.body !== 'string') {
|
|
262
|
-
|
|
268
|
+
try {
|
|
269
|
+
_err.body = JSON.stringify(_err.body, undefined, 2)
|
|
270
|
+
} catch {
|
|
271
|
+
// Do nothing...
|
|
272
|
+
}
|
|
263
273
|
}
|
|
264
274
|
|
|
265
275
|
if (_err.meta != null && typeof _err.meta !== 'string') {
|
|
266
|
-
|
|
276
|
+
try {
|
|
277
|
+
_err.meta = JSON.stringify(_err.meta, undefined, 2)
|
|
278
|
+
} catch {
|
|
279
|
+
// Do nothing...
|
|
280
|
+
}
|
|
267
281
|
}
|
|
268
282
|
|
|
269
283
|
if (_err.code != null && typeof _err.code !== 'string') {
|