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

express-contracts

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-contracts - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

package.json
{
"name": "express-contracts",
"version": "2.0.0",
"version": "2.1.0",
"description": "Express.js plugin for checking request and response with rho-contracts",

@@ -5,0 +5,0 @@ "license": "BSD-2-Clause",

@@ -41,5 +41,9 @@ var c = require('rho-contracts-fork');

var validateRequest = function (req, requestContract, next) {
// Check each field (body, query, etc) individually so that we don't
// Check each field (body, query, params) individually so that we don't
// dump the *entire* express req object into the error message.
var relevantKeyDescriptions = { body: 'request body', query: 'query string' };
var relevantKeyDescriptions = {
body: 'request body',
query: 'query string',
params: 'request params',
};
var key;

@@ -46,0 +50,0 @@ try {

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