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 1.1.0 to 2.0.0

.eslintrc.yml

17

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

@@ -8,5 +8,3 @@ "license": "BSD-2-Clause",

"scripts": {
"jscs": "jscs --config node_modules/bodylabs-javascript-style/jscs/jscsrc-shared *.js src --extract '*.js'",
"eslint": "eslint --config node_modules/bodylabs-javascript-style/eslint/eslintrc-shared.yml 'src/*.js'",
"lint": "npm run jscs && npm run eslint",
"lint": "eslint '**/*.js'",
"unittest": "mocha src/*.spec.js",

@@ -27,12 +25,11 @@ "test": "npm run unittest && npm run lint"

"peerDependencies": {
"rho-contracts": ">=1.2.0"
"rho-contracts-fork": ">=1.3.0"
},
"devDependencies": {
"body-parser": "~1.9.3",
"bodylabs-javascript-style": "~5.0.0",
"eslint": "~2.4.0",
"eslint": "~2.13.0",
"eslint-plugin-bodylabs": "~7.1.0",
"express": "~4.10.3",
"jscs": "^2.8.0",
"mocha": "^2.3.4",
"rho-contracts": "git+https://github.com/bodylabs/rho-contracts.js.git#1.2.0",
"mocha": "^2.4.3",
"rho-contracts-fork": "^1.3.0",
"should": "^8.3.1",

@@ -39,0 +36,0 @@ "supertest": "~0.15.0"

@@ -10,4 +10,11 @@ express-contracts

You must use the Body Labs package, `rho-contracts-fork`:
```js
var c = require('rho-contracts'),
"dependencies": {
"rho-contracts-fork": "^1.3.0"
}
```
```js
var c = require('rho-contracts-fork'),
ec = require('express-contracts');

@@ -70,3 +77,3 @@

```console
npm install rho-contracts express-contracts
npm install rho-contracts-fork express-contracts
```

@@ -73,0 +80,0 @@

@@ -1,2 +0,2 @@

var c = require('rho-contracts');
var c = require('rho-contracts-fork');

@@ -3,0 +3,0 @@ // Optional simple format for errors, used by `middleware.useContractsOrError`.

@@ -1,2 +0,2 @@

var c = require('rho-contracts');
var c = require('rho-contracts-fork');

@@ -3,0 +3,0 @@ var contracts = require('./contracts'),

@@ -1,2 +0,2 @@

var c = require('rho-contracts');
var c = require('rho-contracts-fork');

@@ -3,0 +3,0 @@ var cc = {};

var middleware = require('./middleware'),
errors = require('./errors'),
c = require('rho-contracts'),
c = require('rho-contracts-fork'),
express = require('express'),

@@ -5,0 +5,0 @@ request = require('supertest'),

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