badmfck-api-server 4.0.71 → 4.0.73

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
  }
96
96
  exports.Initializer = Initializer;
97
97
  class APIService extends BaseService_1.BaseService {
98
- version = "4.0.7";
98
+ version = "4.0.72";
99
99
  options;
100
100
  monitor = null;
101
101
  started = new Date();
@@ -155,7 +155,7 @@ class Validator {
155
155
  }
156
156
  if (typeof structure[i] === "number" && typeof object[i] === "string") {
157
157
  let num = parseInt(object[i]);
158
- if (object[i].includes(","))
158
+ if (object[i].includes("."))
159
159
  num = parseFloat(object[i]);
160
160
  if (isNaN(num))
161
161
  errors.push("wrong value for field '" + parentPath + i + "', expected number got " + object[i]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "4.0.71",
3
+ "version": "4.0.73",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",