Comparing version 2.8.0 to 2.8.1
2.8.1 / 2019-08-19 | ||
================== | ||
**fixes** | ||
* [[`287e589`](http://github.com/koajs/koa/commit/287e589ac773d3738b2aa7d40e0b6d43dde5261b)] - fix: make options more compatibility (dead-horse <<dead_horse@qq.com>>) | ||
2.8.0 / 2019-08-19 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -47,9 +47,10 @@ | ||
constructor(options = {}) { | ||
constructor(options) { | ||
super(); | ||
options = options || {}; | ||
this.proxy = options.proxy || false; | ||
this.middleware = []; | ||
this.subdomainOffset = options.subdomainOffset || 2; | ||
this.env = options.env || process.env.NODE_ENV || 'development'; | ||
this.keys = options.keys || undefined; | ||
if (options.keys) this.keys = options.keys; | ||
this.middleware = []; | ||
this.context = Object.create(context); | ||
@@ -56,0 +57,0 @@ this.request = Object.create(request); |
{ | ||
"name": "koa", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "Koa web app framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/application.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79334
1522