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.6.0 to 0.7.0

4

package.json

@@ -10,3 +10,3 @@ {

],
"version": "0.6.0",
"version": "0.7.0",
"homepage": "https://github.com/ctavan/express-validator",

@@ -25,3 +25,3 @@ "repository": {

"dependencies": {
"validator": "1.2.0"
"validator": "1.2.1"
},

@@ -28,0 +28,0 @@ "devDependencies": {

@@ -39,3 +39,3 @@ # express-validator

if (errors) {
res.send('There have been validation errors: ' + util.inspect(errors), 500);
res.send('There have been validation errors: ' + util.inspect(errors), 400);
return;

@@ -77,3 +77,3 @@ }

The `errorFormatter` option can be used to specify a function that can be used to formate the objects that populate the error arrow that is returned in `req.validationErrors()`. It should return an `Object` that has `param`, `msg`, and `value` keys defined.
The `errorFormatter` option can be used to specify a function that can be used to format the objects that populate the error array that is returned in `req.validationErrors()`. It should return an `Object` that has `param`, `msg`, and `value` keys defined.

@@ -80,0 +80,0 @@ ```javascript

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