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.6.3 to 1.6.4

28

options.js

@@ -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": [{

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