Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

muxrpc-validation

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

muxrpc-validation - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

index.js

@@ -29,2 +29,6 @@ var zerr = require('zerr')

return 'type'
},
array: function (param, n) {
if (!Array.isArray(param))
return 'type'
}

@@ -59,5 +63,6 @@ }

var args = Array.prototype.slice.call(arguments)
var hasCb = (typeof args[args.length - 1] == 'function')
// get cb
var cb = (typeof args[args.length - 1] == 'function')
var cb = (hasCb)
? args[args.length - 1]

@@ -67,3 +72,3 @@ : function (err) { if (err) { throw err; } }

// run validation
var err = validate(args, spec)
var err = validate((hasCb) ? args.slice(0,args.length-1) : args, spec)
if (err) return cb(err)

@@ -70,0 +75,0 @@

{
"name": "muxrpc-validation",
"version": "1.0.0",
"version": "1.0.1",
"description": "Validation library for muxrpc apis",

@@ -22,3 +22,7 @@ "main": "index.js",

},
"homepage": "https://github.com/pfraze/muxrpc-validation#readme"
"homepage": "https://github.com/pfraze/muxrpc-validation#readme",
"dependencies": {
"pull-stream": "^2.28.3",
"zerr": "^1.0.1"
}
}
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