Skip to content

Commit

Permalink
:arrow-up: deps
Browse files Browse the repository at this point in the history
closes #939
  • Loading branch information
jonathanong committed Mar 14, 2017
1 parent f841418 commit 4816cd7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
2 changes: 2 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
==================
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 0 additions & 2 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const deprecate = require('depd')('koa');
*/

module.exports = class Application extends Emitter {

/**
* Initialize a new `Application`.
*
Expand Down Expand Up @@ -185,7 +184,6 @@ module.exports = class Application extends Emitter {
console.error(msg.replace(/^/gm, ' '));
console.error();
}

};

/**
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ env:

rules:
space-before-blocks: [2, {functions: never, keywords: always}]
no-unused-expressions: 0
17 changes: 9 additions & 8 deletions test/application/respond.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand All @@ -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();
});
});
Expand All @@ -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();
});
});
Expand All @@ -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();
});
});
Expand Down Expand Up @@ -265,7 +265,7 @@ describe('app.respond', () => {
request(server)
.get('/')
.expect(400)
.expect('Content-Length', 11)
.expect('Content-Length', '11')
.expect('Bad Request', done);
});
});
Expand Down Expand Up @@ -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 => {
Expand All @@ -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'));
});
});

Expand Down
1 change: 0 additions & 1 deletion test/context/onerror.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,3 @@ describe('ctx.onerror(err)', () => {
});
});
});

0 comments on commit 4816cd7

Please sign in to comment.