: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
* 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
==================

View file

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

View file

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

View file

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

View file

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

View file

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