egg 3.3.1 → 3.3.3

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.
Files changed (2) hide show
  1. package/lib/egg.js +2 -1
  2. package/package.json +2 -2
package/lib/egg.js CHANGED
@@ -52,6 +52,7 @@ class EggApplication extends EggCore {
52
52
  this.ContextLogger = ContextLogger;
53
53
  this.ContextHttpClient = ContextHttpClient;
54
54
  this.HttpClient = HttpClient;
55
+ this.HttpClientNext = HttpClientNext;
55
56
 
56
57
  this.loader.loadConfig();
57
58
 
@@ -293,7 +294,7 @@ class EggApplication extends EggCore {
293
294
  get httpclient() {
294
295
  if (!this[HTTPCLIENT]) {
295
296
  if (this.config.httpclient.useHttpClientNext) {
296
- this[HTTPCLIENT] = new HttpClientNext(this);
297
+ this[HTTPCLIENT] = new this.HttpClientNext(this);
297
298
  } else if (this.config.httpclient.enableDNSCache) {
298
299
  this[HTTPCLIENT] = new DNSCacheHttpClient(this);
299
300
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egg",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "A web framework's framework for Node.js",
5
5
  "keywords": [
6
6
  "web",
@@ -32,7 +32,7 @@
32
32
  "egg-jsonp": "^2.0.0",
33
33
  "egg-logger": "^2.9.0",
34
34
  "egg-logrotator": "^3.1.0",
35
- "egg-multipart": "^2.13.1",
35
+ "egg-multipart": "^3.1.0",
36
36
  "egg-onerror": "^2.1.1",
37
37
  "egg-schedule": "^3.7.0",
38
38
  "egg-security": "^2.11.0",