check-data
Advanced tools
Comparing version 1.7.4 to 1.7.5
@@ -105,9 +105,9 @@ "use strict" | ||
if (data === undefined || data === '') { | ||
if (allowNull) { | ||
if (allowNull === false) { | ||
return { | ||
data: undefined | ||
error: `${key}数组不能为空` | ||
} | ||
} else { | ||
return { | ||
error: `${key}数组不能为空` | ||
data: undefined | ||
} | ||
@@ -114,0 +114,0 @@ } |
{ | ||
"name": "check-data", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "JS对象验证器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ "use strict" | ||
"tenderEndTime": "2017-07-07T09:53:30.000Z", | ||
"files": ["abc.js", "334", "null", "666", "12"], | ||
// "files": ["abc.js", "334", "null", "666", "12"], | ||
"user": { | ||
@@ -13,0 +13,0 @@ "username": "莉莉", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27097