badmfck-api-server 3.9.88 → 3.9.89

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.
@@ -188,8 +188,10 @@ class Validator {
188
188
  if (!structureOptions.values.includes(object[i])) {
189
189
  let caseValue = null;
190
190
  for (let i of structureOptions.values) {
191
- const v = i.toLowerCase();
192
- if (v === (object[i] + "").toLowerCase()) {
191
+ if (i === null || i === undefined)
192
+ continue;
193
+ const v = (i + "").toLowerCase().trim();
194
+ if (v === (object[i] + "").toLowerCase().trim()) {
193
195
  caseValue = object[i];
194
196
  break;
195
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "3.9.88",
3
+ "version": "3.9.89",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",