koa 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/History.md CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+ 2.5.1 / 2018-04-27
3
+ ==================
4
+
5
+ * test: node v10 on travis (#1182)
6
+ * fix tests: remove unnecessary assert doesNotThrow and api calls (#1170)
7
+ * use this.response insteadof this.ctx.response (#1163)
8
+ * deps: remove istanbul (#1151)
9
+ * Update guide.md (#1150)
10
+
2
11
  2.5.0 / 2018-02-11
3
12
  ==================
4
13
 
package/lib/request.js CHANGED
@@ -309,7 +309,7 @@ module.exports = {
309
309
 
310
310
  // 2xx or 304 as per rfc2616 14.26
311
311
  if ((s >= 200 && s < 300) || 304 == s) {
312
- return fresh(this.header, this.ctx.response.header);
312
+ return fresh(this.header, this.response.header);
313
313
  }
314
314
 
315
315
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koa",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Koa web app framework",
5
5
  "main": "lib/application.js",
6
6
  "scripts": {
@@ -53,7 +53,6 @@
53
53
  "eslint-config-standard": "^7.0.1",
54
54
  "eslint-plugin-promise": "^3.5.0",
55
55
  "eslint-plugin-standard": "^2.1.1",
56
- "istanbul": "^0.4.0",
57
56
  "jest": "^20.0.0",
58
57
  "supertest": "^3.0.0"
59
58
  },