xzwebx-httpfilter 1.3.0 → 1.3.1
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.
- package/HttpFilter.js +16 -16
- package/package.json +1 -1
package/HttpFilter.js
CHANGED
|
@@ -187,10 +187,10 @@ function IsStringOk(fCfgItem, paramValue) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
if (fCfgItem.ifMust == 'NO' && (
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
paramValue == undefined ||
|
|
191
|
+
paramValue == null ||
|
|
192
|
+
paramValue == '' ||
|
|
193
|
+
(typeof paramValue === 'object' && !paramValue.length && !Object.keys(paramValue).length))
|
|
194
194
|
) {
|
|
195
195
|
return null
|
|
196
196
|
}
|
|
@@ -307,10 +307,10 @@ function IsIntOk(fCfgItem, paramValue) {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
if (fCfgItem.ifMust == 'NO' && (
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
(typeof
|
|
310
|
+
paramValue == undefined ||
|
|
311
|
+
paramValue == null ||
|
|
312
|
+
paramValue == '' ||
|
|
313
|
+
(typeof paramValue === 'object' && !paramValue.length && !Object.keys(paramValue).length))
|
|
314
314
|
) {
|
|
315
315
|
return null
|
|
316
316
|
}
|
|
@@ -399,10 +399,10 @@ function IsObjOk(fCfgItem, paramValue) {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
if (fCfgItem.ifMust == 'NO' && (
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
(typeof
|
|
402
|
+
paramValue == undefined ||
|
|
403
|
+
paramValue == null ||
|
|
404
|
+
paramValue == '' ||
|
|
405
|
+
(typeof paramValue === 'object' && !paramValue.length && !Object.keys(paramValue).length))
|
|
406
406
|
) {
|
|
407
407
|
return null
|
|
408
408
|
}
|
|
@@ -427,10 +427,10 @@ function IsListOk(fCfgItem, paramValue) {
|
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
if (fCfgItem.ifMust == 'NO' && (
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
(typeof
|
|
430
|
+
paramValue == undefined ||
|
|
431
|
+
paramValue == null ||
|
|
432
|
+
paramValue == '' ||
|
|
433
|
+
(typeof paramValue === 'object' && !paramValue.length && !Object.keys(paramValue).length))
|
|
434
434
|
) {
|
|
435
435
|
return null
|
|
436
436
|
}
|