deps: connect@2.20.2
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 9db1367 · Browse files · 5 files·+22 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+22 added−2 removed
- tests:+4 added−0 removed
- other:+18 added−2 removed
Provenance
- Commit
5a4e912- Tree
37dbf8b- Author
Douglas Christopher Wilson <doug@somethingdoug.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent
9db1367
5 files changed+22 added−2 removed
modified:examples/mvc/index.js+1 added-1 removed
33 unmodified lines3435363738383940414251 unmodified lines33 unmodified linesapp.use(express.cookieParser('some secret here'));app.use(express.session());
// parse request bodies (req.body)app.use(express.bodyParser());app.use(express.urlencoded({ extended: true }));
// support _method (PUT in forms etc)app.use(express.methodOverride());
51 unmodified linesmodified:test/acceptance/mvc.js+3 added
31 unmodified lines32 describe('PUT /pet/2', function(){33 it('should update the pet', function(done){34 request(app)35 .put('/pet/3')36+ .set('Content-Type', 'application/x-www-form-urlencoded')37 .send({ pet: { name: 'Boots' } })38 .end(function(err, res){39 if (err) return done(err);40 request(app)54 unmodified lines95 describe('PUT /user/:id', function(){96 it('should update the user', function(done){97 request(app)98 .put('/user/1')99+ .set('Content-Type', 'application/x-www-form-urlencoded')100 .send({ user: { name: 'Tobo' }})101 .end(function(err, res){102 if (err) return done(err);103 request(app)6 unmodified lines110 describe('POST /user/:id/pet', function(){111 it('should create a pet for user', function(done){112 request(app)113 .post('/user/2/pet')114+ .set('Content-Type', 'application/x-www-form-urlencoded')115 .send({ pet: { name: 'Snickers' }})116 .expect('Location', '/user/2')117 .expect(302, function(err, res){118 if (err) return done(err)7 unmodified linesmodified:test/support/env.js+1 added
123
process.env.NODE_ENV = 'test';process.env.NO_DEPRECATION = 'connect';modified:History.md+16 added
1 unreleased2 ==========3 4 * deps: buffer-crc32@0.2.35+ * deps: connect@2.20.26+ - deprecate `verify` option to `json` -- use `body-parser` module directly7+ - deprecate `verify` option to `urlencoded` -- use `body-parser` module directly8+ - deprecate things with `depd` module9+ - use `finalhandler` for final response handling10+ - use `media-typer` to parse `content-type` for charset11+ - deps: body-parser@1.4.312+ - deps: connect-timeout@1.1.113+ - deps: cookie-parser@1.3.114+ - deps: csurf@1.2.215+ - deps: errorhandler@1.1.016+ - deps: express-session@1.4.017+ - deps: multiparty@3.2.918+ - deps: serve-index@1.1.219+ - deps: type-is@1.3.120+ - deps: vhost@2.0.021 22 3.10.5 / 2014-06-1123 ===================24 1444 unmodified linesmodified:package.json+1 added-1 removed
24 unmodified lines2526272829293031323335 unmodified lines24 unmodified lines "repository": "visionmedia/express", "license": "MIT", "dependencies": { "buffer-crc32": "0.2.3", "connect": "2.19.6", "connect": "2.20.2", "commander": "1.3.2", "debug": "1.0.2", "escape-html": "1.0.1", "methods": "1.0.1",35 unmodified lines