check-data
Advanced tools
Comparing version 1.2.4 to 1.2.5
16
index.js
@@ -381,14 +381,10 @@ let validator = require('validator') | ||
error: null,//错误信息 | ||
data: {},//验证数据 | ||
data: {},//验证结果 | ||
query: {},//查询条件(预定义) | ||
filter: {},//过滤条件(预定义) | ||
insert: {},//插入数据(预定义) | ||
update: {},//更新数据(预定义) | ||
options: {},//选项(预定义) | ||
} | ||
// 预定义变量 | ||
if (handler.define) { | ||
for (let name of handler.define) { | ||
if (!output[name]) { | ||
output[name] = {} | ||
} | ||
} | ||
} | ||
// 递归验证 | ||
@@ -395,0 +391,0 @@ let result = recursionVerify(null, data, options, output.data, data, output) |
{ | ||
"name": "check-data", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "JS数据验证器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -62,4 +62,3 @@ let Verify = require('../index') | ||
{ | ||
"define": ["filter", "uu"], | ||
"method": { | ||
"methods": { | ||
"addressee": function (value) { | ||
@@ -66,0 +65,0 @@ this.data.xxx = value |
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
19021
467