express-contracts
Advanced tools
Comparing version 1.1.0 to 2.0.0
{ | ||
"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'), |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8
12
99
0
14056