badmfck-api-server 3.3.5 → 3.3.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.3.5";
98
+ version = "3.3.6";
99
99
  options;
100
100
  monitor = null;
101
101
  started = new Date();
@@ -197,7 +197,8 @@ class Validator {
197
197
  }
198
198
  if (key.startsWith("$__"))
199
199
  delete object[key];
200
- this.filterStructure(structure[key], object[key]);
200
+ if (typeof object[key] === "object")
201
+ this.filterStructure(structure[key], object[key]);
201
202
  }
202
203
  }
203
204
  static syncStructure(structure, object) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",