badmfck-api-server 3.4.5 → 3.4.6

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.
@@ -95,7 +95,7 @@ async function Initializer(services) {
95
95
  exports.Initializer = Initializer;
96
96
  class APIService extends BaseService_1.BaseService {
97
97
  static nextLogID = 0;
98
- version = "3.4.5";
98
+ version = "3.4.6";
99
99
  options;
100
100
  monitor = null;
101
101
  started = new Date();
@@ -38,6 +38,7 @@ class Validator {
38
38
  let regex = structure['$__' + i + '_regex'] || undefined;
39
39
  let min = structure['$__' + i + "_min"] || undefined;
40
40
  let max = structure['$__' + i + "_max"] || undefined;
41
+ let values = structure['$__' + i + "_values"] || undefined;
41
42
  if (optional === undefined)
42
43
  optional = structure[i] === null || structure[i] === undefined;
43
44
  if (type === "object" && Array.isArray(structure[i]))
@@ -53,6 +54,7 @@ class Validator {
53
54
  regex: regex,
54
55
  min: min,
55
56
  max: max,
57
+ values: values,
56
58
  childs: childs
57
59
  };
58
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "3.4.5",
3
+ "version": "3.4.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",