@azteam/express 1.2.472 → 1.2.474
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/lib/Server.js +4 -7
- package/package.json +2 -2
- package/src/Server.js +5 -7
package/lib/Server.js
CHANGED
|
@@ -345,13 +345,10 @@ var Server = /*#__PURE__*/function () {
|
|
|
345
345
|
console.log(error.errors);
|
|
346
346
|
}
|
|
347
347
|
if (_this4.callbackError) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
body: req.body
|
|
353
|
-
});
|
|
354
|
-
}
|
|
348
|
+
_this4.callbackError(error, req.originalUrl);
|
|
349
|
+
}
|
|
350
|
+
if (req.callbackError) {
|
|
351
|
+
req.callbackError(error);
|
|
355
352
|
}
|
|
356
353
|
if (error.errors[0].code === _error.UNKNOWN) {
|
|
357
354
|
error.errors[0].message = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azteam/express",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.474",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "toda <sp.azsolution.net@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@azteam/constant": "1.0.13",
|
|
13
13
|
"@azteam/crypto": "1.0.42",
|
|
14
14
|
"@azteam/error": "1.0.40",
|
|
15
|
-
"@azteam/http-client": "1.0.
|
|
15
|
+
"@azteam/http-client": "1.0.205",
|
|
16
16
|
"@azteam/util": "1.0.52",
|
|
17
17
|
"@azteam/validator": "1.0.30",
|
|
18
18
|
"@grpc/grpc-js": "1.6.7",
|
package/src/Server.js
CHANGED
|
@@ -318,14 +318,12 @@ class Server {
|
|
|
318
318
|
console.log(error.errors);
|
|
319
319
|
}
|
|
320
320
|
if (this.callbackError) {
|
|
321
|
-
|
|
322
|
-
this.callbackError(error, {
|
|
323
|
-
method: req.method,
|
|
324
|
-
path: req.originalUrl,
|
|
325
|
-
body: req.body,
|
|
326
|
-
});
|
|
327
|
-
}
|
|
321
|
+
this.callbackError(error, req.originalUrl);
|
|
328
322
|
}
|
|
323
|
+
if (req.callbackError) {
|
|
324
|
+
req.callbackError(error);
|
|
325
|
+
}
|
|
326
|
+
|
|
329
327
|
if (error.errors[0].code === UNKNOWN) {
|
|
330
328
|
error.errors[0].message = '';
|
|
331
329
|
}
|