New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.7 to 1.6.8

4

index.js

@@ -20,3 +20,3 @@ "use strict"

// 递归验证
let output = recursion(data, options, undefined, data)
let output = recursion(data, options, '', data)

@@ -56,3 +56,3 @@ if (output.error) {

*/
function recursion(data, options, key = '', input) {
function recursion(data, options, key, input) {

@@ -59,0 +59,0 @@ // 选项为对象

@@ -42,2 +42,6 @@ "use strict"

},
// 使用指定值或覆盖默认值
value({ option: value }) {
return { data: value }
},
}

@@ -44,0 +48,0 @@

{
"name": "check-data",
"version": "1.6.7",
"version": "1.6.8",
"description": "JS数据验证器",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,3 +6,3 @@ "use strict"

let query = {
// "tenderName": "测试",
"tenderName": "测试",
"tenderNum": "123456789987",

@@ -44,3 +44,3 @@ "tenderEndTime": "2017-07-07T09:53:30.000Z",

"default": "updatedAt",
"and" (value) {
"and"(value) {
if (value === 'updatedAt') {

@@ -51,3 +51,6 @@ return ["tenderNum", "tenderEndTime"]

},
"tenderNum": Number,
"tenderNum": {
"type": Number,
"value": "xxxxxx",
},
"tenderEndTime": {

@@ -54,0 +57,0 @@ "type": Date,

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