union
Advanced tools
Comparing version 0.3.8 to 0.4.0
{ | ||
"name": "union", | ||
"description": "A hybrid buffered / streaming middleware kernel backwards compatible with connect.", | ||
"version": "0.3.8", | ||
"version": "0.4.0", | ||
"author": "Nodejitsu Inc. <info@nodejitsu.com>", | ||
@@ -23,3 +23,3 @@ "maintainers": [ | ||
"vows": "0.7.x", | ||
"connect": "2.3.x" | ||
"connect": "2.13.x" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
@@ -10,3 +10,3 @@ /* | ||
var assert = require('assert'), | ||
bodyParser = require('connect').bodyParser, | ||
connect = require('connect'), | ||
request = require('request'), | ||
@@ -17,3 +17,3 @@ vows = require('vows'), | ||
vows.describe('union/body-parser').addBatch({ | ||
"When using union with connect bodyParser()": { | ||
"When using union with connect body parsing via urlencoded() or json()": { | ||
topic: function () { | ||
@@ -23,3 +23,4 @@ union.createServer({ | ||
before: [ | ||
bodyParser(), | ||
connect.urlencoded(), | ||
connect.json(), | ||
function (req, res) { | ||
@@ -26,0 +27,0 @@ res.end(JSON.stringify(req.body, true, 2)); |
Sorry, the diff of this file is not supported yet
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
59278
1277
7