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.4 to 1.6.5

10

index.js

@@ -14,5 +14,6 @@ "use strict"

* @param {*} options 验证表达式
* @param {*} handler 导出数据自定义处理方法
* @param {Object} handler 导出数据自定义处理方法
* @param {Function} callback 附加回调函数(用于全局参数注入)
*/
function Validator(data, options, handler = {}) {
function Validator(data, options, handler = {}, callback) {

@@ -39,2 +40,7 @@ // 递归验证

// 附加回调函数
if (callback) {
callback(output.data)
}
return output

@@ -41,0 +47,0 @@

2

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

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

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