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.7.4 to 1.7.5

6

index.js

@@ -105,9 +105,9 @@ "use strict"

if (data === undefined || data === '') {
if (allowNull) {
if (allowNull === false) {
return {
data: undefined
error: `${key}数组不能为空`
}
} else {
return {
error: `${key}数组不能为空`
data: undefined
}

@@ -114,0 +114,0 @@ }

{
"name": "check-data",
"version": "1.7.4",
"version": "1.7.5",
"description": "JS对象验证器",

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

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

"tenderEndTime": "2017-07-07T09:53:30.000Z",
"files": ["abc.js", "334", "null", "666", "12"],
// "files": ["abc.js", "334", "null", "666", "12"],
"user": {

@@ -13,0 +13,0 @@ "username": "莉莉",

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