@azteam/express 1.2.414 → 1.2.416

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 CHANGED
@@ -332,7 +332,7 @@ var Server = /*#__PURE__*/function () {
332
332
  app.use(function () {
333
333
  throw new _error.ErrorException(_error.NOT_FOUND);
334
334
  });
335
- app.use(function (err, req, res) {
335
+ app.use(function (err, req, res, next) {
336
336
  var error = (0, _error.errorCatch)(err);
337
337
  if (process.env.NODE_ENV === 'development') {
338
338
  console.log(error.errors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.414",
3
+ "version": "1.2.416",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -13,7 +13,7 @@
13
13
  "@azteam/crypto": "1.0.35",
14
14
  "@azteam/error": "1.0.34",
15
15
  "@azteam/http-client": "1.0.113",
16
- "@azteam/util": "1.0.40",
16
+ "@azteam/util": "1.0.41",
17
17
  "@azteam/validator": "1.0.21",
18
18
  "@grpc/grpc-js": "1.6.7",
19
19
  "@grpc/proto-loader": "0.6.12",
package/src/Server.js CHANGED
@@ -300,7 +300,7 @@ class Server {
300
300
  throw new ErrorException(NOT_FOUND);
301
301
  });
302
302
 
303
- app.use((err, req, res) => {
303
+ app.use((err, req, res, next) => {
304
304
  const error = errorCatch(err);
305
305
 
306
306
  if (process.env.NODE_ENV === 'development') {