badmfck-api-server 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,9 @@ class ErrorUtils {
12
12
  const isFieldsExists = Validator_1.Validator.validateObject(['code', 'message'], obj);
13
13
  if (!isFieldsExists)
14
14
  return false;
15
- if (Validator_1.Validator.validateValue("code", { type: "number" }) !== Validator_1.ValidationReport.OK)
15
+ if (Validator_1.Validator.validateValue(obj.code, { type: "number" }) !== Validator_1.ValidationReport.OK)
16
16
  return false;
17
- if (Validator_1.Validator.validateValue("message", { type: "string" }) !== Validator_1.ValidationReport.OK)
17
+ if (Validator_1.Validator.validateValue(obj.message, { type: "string" }) !== Validator_1.ValidationReport.OK)
18
18
  return false;
19
19
  return true;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",