check-data
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -50,3 +50,3 @@ "use strict" | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -58,3 +58,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -66,3 +66,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -76,3 +76,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -90,6 +90,6 @@ }, | ||
min({ data, option: min }) { | ||
if (data < options.min) { | ||
if (data < min) { | ||
return { err: `不能小于${min}` } | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -101,3 +101,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data} | ||
} | ||
@@ -111,3 +111,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -131,3 +131,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -141,3 +141,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -151,3 +151,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -161,3 +161,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -172,3 +172,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -183,3 +183,3 @@ }, | ||
} else { | ||
return { data: data } | ||
return { data } | ||
} | ||
@@ -186,0 +186,0 @@ }, |
{ | ||
"name": "check-data", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "JS数据验证器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ "use strict" | ||
let query = { | ||
"tenderName": "测试", | ||
// "tenderName": "测试", | ||
"tenderNum": "123456789987", | ||
@@ -33,3 +33,3 @@ "tenderEndTime": "2017-07-07T09:53:30.000Z", | ||
d: 4, | ||
} | ||
}, | ||
} | ||
@@ -44,2 +44,3 @@ | ||
"allowNull": false, | ||
"default": "updatedAt", | ||
// "and": ["tenderNum", "tenderEndTime"], | ||
@@ -63,3 +64,4 @@ }, | ||
"type": Number, | ||
"in": [1, 2], | ||
// "min": 15, | ||
// "in": [1, 2], | ||
}, | ||
@@ -66,0 +68,0 @@ "files": [{ |
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
629
25496