:arrow-up: deps

closes #939
This commit is contained in:
jongleberry 2017-03-14 01:54:14 -07:00
parent f841418b10
commit 4816cd76f0
7 changed files with 21 additions and 20 deletions

View File

@ -4,6 +4,8 @@ next
* fix: drop `package.engines.node` requirement to >= 6.0.0 * fix: drop `package.engines.node` requirement to >= 6.0.0
* this fixes `yarn`, which errors when this semver range is not satisfied * this fixes `yarn`, which errors when this semver range is not satisfied
* bump `cookies@~0.7.0`
* bump `fresh@^0.5.0`
2.1.0 / 2017-03-07 2.1.0 / 2017-03-07
================== ==================

View File

@ -8,7 +8,7 @@ TESTS = test/application/* \
test/response/* test/response/*
lint: lint:
@./node_modules/.bin/eslint benchmarks lib test @./node_modules/.bin/eslint benchmarks lib test --fix
test: test:
@NODE_ENV=test node \ @NODE_ENV=test node \

View File

@ -30,7 +30,6 @@ const deprecate = require('depd')('koa');
*/ */
module.exports = class Application extends Emitter { module.exports = class Application extends Emitter {
/** /**
* Initialize a new `Application`. * Initialize a new `Application`.
* *
@ -185,7 +184,6 @@ module.exports = class Application extends Emitter {
console.error(msg.replace(/^/gm, ' ')); console.error(msg.replace(/^/gm, ' '));
console.error(); console.error();
} }
}; };
/** /**

View File

@ -21,14 +21,14 @@
"accepts": "^1.2.2", "accepts": "^1.2.2",
"content-disposition": "~0.5.0", "content-disposition": "~0.5.0",
"content-type": "^1.0.0", "content-type": "^1.0.0",
"cookies": "~0.6.1", "cookies": "~0.7.0",
"debug": "*", "debug": "*",
"delegates": "^1.0.0", "delegates": "^1.0.0",
"depd": "^1.1.0", "depd": "^1.1.0",
"destroy": "^1.0.3", "destroy": "^1.0.3",
"error-inject": "~1.0.0", "error-inject": "~1.0.0",
"escape-html": "~1.0.1", "escape-html": "~1.0.1",
"fresh": "^0.3.0", "fresh": "^0.5.0",
"http-assert": "^1.1.0", "http-assert": "^1.1.0",
"http-errors": "^1.2.8", "http-errors": "^1.2.8",
"is-generator-function": "^1.0.3", "is-generator-function": "^1.0.3",
@ -45,16 +45,16 @@
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^7.1.1", "babel-eslint": "^7.1.1",
"eslint": "^2.5.3", "eslint": "^3.17.1",
"eslint-config-standard": "^5.1.0", "eslint-config-standard": "^7.0.1",
"eslint-plugin-babel": "^3.1.0", "eslint-plugin-babel": "^4.1.1",
"eslint-plugin-promise": "^1.1.0", "eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^1.3.1", "eslint-plugin-standard": "^2.1.1",
"istanbul": "^0.4.0", "istanbul": "^0.4.0",
"mocha": "^3.2.0", "mocha": "^3.2.0",
"should": "^6.0.3", "should": "^6.0.3",
"should-http": "0.0.3", "should-http": "0.0.3",
"supertest": "^1.0.1", "supertest": "^3.0.0",
"test-console": "^0.7.1" "test-console": "^0.7.1"
}, },
"engines": { "engines": {

View File

@ -3,3 +3,4 @@ env:
rules: rules:
space-before-blocks: [2, {functions: never, keywords: always}] space-before-blocks: [2, {functions: never, keywords: always}]
no-unused-expressions: 0

View File

@ -73,7 +73,7 @@ describe('app.respond', () => {
if (err) return done(err); if (err) return done(err);
res.should.have.header('Content-Type', 'text/plain; charset=utf-8'); res.should.have.header('Content-Type', 'text/plain; charset=utf-8');
res.should.have.header('Content-Length', '5'); res.should.have.header('Content-Length', '5');
assert(0 == res.text.length); assert(!res.text);
done(); done();
}); });
}); });
@ -94,7 +94,7 @@ describe('app.respond', () => {
if (err) return done(err); if (err) return done(err);
res.should.have.header('Content-Type', 'application/json; charset=utf-8'); res.should.have.header('Content-Type', 'application/json; charset=utf-8');
res.should.have.header('Content-Length', '17'); res.should.have.header('Content-Length', '17');
assert(0 == res.text.length); assert(!res.text);
done(); done();
}); });
}); });
@ -115,7 +115,7 @@ describe('app.respond', () => {
if (err) return done(err); if (err) return done(err);
res.should.have.header('Content-Type', 'text/plain; charset=utf-8'); res.should.have.header('Content-Type', 'text/plain; charset=utf-8');
res.should.have.header('Content-Length', '11'); res.should.have.header('Content-Length', '11');
assert(0 == res.text.length); assert(!res.text);
done(); done();
}); });
}); });
@ -136,7 +136,7 @@ describe('app.respond', () => {
if (err) return done(err); if (err) return done(err);
res.should.have.header('Content-Type', 'application/octet-stream'); res.should.have.header('Content-Type', 'application/octet-stream');
res.should.have.header('Content-Length', '11'); res.should.have.header('Content-Length', '11');
assert(0 == res.text.length); assert(!res.text);
done(); done();
}); });
}); });
@ -265,7 +265,7 @@ describe('app.respond', () => {
request(server) request(server)
.get('/') .get('/')
.expect(400) .expect(400)
.expect('Content-Length', 11) .expect('Content-Length', '11')
.expect('Bad Request', done); .expect('Bad Request', done);
}); });
}); });
@ -509,7 +509,7 @@ describe('app.respond', () => {
}); });
describe('when .body is a Buffer', () => { describe('when .body is a Buffer', () => {
it('should respond', done => { it('should respond', () => {
const app = new Koa(); const app = new Koa();
app.use(ctx => { app.use(ctx => {
@ -518,9 +518,10 @@ describe('app.respond', () => {
const server = app.listen(); const server = app.listen();
request(server) return request(server)
.get('/') .get('/')
.expect('Hello', done); .expect(200)
.expect(new Buffer('Hello'));
}); });
}); });

View File

@ -190,4 +190,3 @@ describe('ctx.onerror(err)', () => {
}); });
}); });
}); });