Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-data

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-data - npm Package Compare versions

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc