@azteam/express 1.2.471 → 1.2.472

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
@@ -339,7 +339,7 @@ var Server = /*#__PURE__*/function () {
339
339
  app.use(function () {
340
340
  throw new _error.ErrorException(_error.NOT_FOUND);
341
341
  });
342
- app.use(function (err, req, res) {
342
+ app.use(function (err, req, res, next) {
343
343
  var error = (0, _error.errorCatch)(err);
344
344
  if (process.env.NODE_ENV === 'development') {
345
345
  console.log(error.errors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.471",
3
+ "version": "1.2.472",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
package/src/Server.js CHANGED
@@ -312,7 +312,7 @@ class Server {
312
312
  throw new ErrorException(NOT_FOUND);
313
313
  });
314
314
 
315
- app.use((err, req, res) => {
315
+ app.use((err, req, res, next) => {
316
316
  const error = errorCatch(err);
317
317
  if (process.env.NODE_ENV === 'development') {
318
318
  console.log(error.errors);