badmfck-api-server 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ class Validator {
21
21
  return true;
22
22
  }
23
23
  static validateValue(value, opt) {
24
- if (!value)
24
+ if (value === undefined || value === null)
25
25
  return ValidationReport.VALUE_IS_NULL;
26
26
  if (!opt)
27
27
  return ValidationReport.OK;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",