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.3.0 to 1.3.1

12

index.js

@@ -360,13 +360,21 @@ "use strict";

// 自定义方法
// 自定义构造方法
else {
// 空值过滤
let result = options.call(input, output)
if (typeof result === 'object') {
let start = true
for (let key in result) {
if (!result[key]) {
if (result[key]) {
start = false
} else {
delete result[key]
}
}
if (start) {
return
}
}
data = result

@@ -373,0 +381,0 @@

2

package.json
{
"name": "check-data",
"version": "1.3.0",
"version": "1.3.1",
"description": "JS数据验证器",

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

@@ -74,3 +74,3 @@ let Verify = require('../index')

return {
"a": 565,
"a": 666,
"b": undefined,

@@ -77,0 +77,0 @@ }

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