@azteam/express 1.2.330 → 1.2.331

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.
@@ -23,7 +23,7 @@ function _default(secretKey) {
23
23
  _context.next = 2;
24
24
  break;
25
25
  }
26
- throw new _error.ErrorException(_error.MISSING_PARAM);
26
+ throw new _error.ErrorException(_error.MISSING_PARAM, "field captcha is missing");
27
27
  case 2:
28
28
  client = new _httpClient["default"]();
29
29
  _context.next = 5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.330",
3
+ "version": "1.2.331",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./src/index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ import {ErrorException, MISSING_PARAM, RECAPTCHA} from '@azteam/error';
4
4
  export default function (secretKey) {
5
5
  return async function (req, res, next) {
6
6
  if (!req.body.captcha) {
7
- throw new ErrorException(MISSING_PARAM);
7
+ throw new ErrorException(MISSING_PARAM, `field captcha is missing`);
8
8
  }
9
9
 
10
10
  const client = new HttpClient();