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

express-validator

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-validator - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

test.js

2

lib/express_validator.js

@@ -83,1 +83,3 @@ /*

module.exports = expressValidator;
module.exports.Validator = Validator;
module.exports.Filter = Filter;

2

package.json

@@ -8,3 +8,3 @@ {

],
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/ctavan/express-validator",

@@ -11,0 +11,0 @@ "repository": {

@@ -30,5 +30,6 @@ # express-validator

errors.push(msg);
return this;
});
req.assert('postparam', 'Invalid postparam').isInt();
req.assert('postparam', 'Invalid postparam').notEmpty().isInt();
req.assert('getparam', 'Invalid getparam').isInt();

@@ -35,0 +36,0 @@ req.assert('urlparam', 'Invalid urlparam').isAlpha();

@@ -13,5 +13,6 @@ var express = require('express'),

errors.push(msg);
return this;
});
req.assert('postparam', 'Invalid postparam').isInt();
req.assert('postparam', 'Invalid postparam').notEmpty().isInt();
req.assert('getparam', 'Invalid getparam').isInt();

@@ -18,0 +19,0 @@ req.assert('urlparam', 'Invalid urlparam').isAlpha();

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