@azteam/express 1.2.356 → 1.2.358

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.
@@ -58,7 +58,9 @@ function _default() {
58
58
  _context.next = 18;
59
59
  break;
60
60
  case 17:
61
- throw new _error.ErrorException(_error.TOKEN_FAILED);
61
+ throw new _error.ErrorException(_error.TOKEN_FAILED, [{
62
+ url: apiURL
63
+ }]);
62
64
  case 18:
63
65
  _context.next = 21;
64
66
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.356",
3
+ "version": "1.2.358",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -27,7 +27,11 @@ export default function (systemURL = process.env.SYSTEM_URL) {
27
27
  if (response.success) {
28
28
  req.user = response.data;
29
29
  } else {
30
- throw new ErrorException(TOKEN_FAILED);
30
+ throw new ErrorException(TOKEN_FAILED, [
31
+ {
32
+ url: apiURL,
33
+ },
34
+ ]);
31
35
  }
32
36
  } else {
33
37
  throw new ErrorException(UNAUTHORIZED);