From 9eec677757ddbde6f7ddcff2c6a698087e07b70e Mon Sep 17 00:00:00 2001 From: Yiyu He Date: Tue, 7 Nov 2017 23:41:30 -0600 Subject: [PATCH] fix: use this.options instead of this._options (#1625) --- lib/egg.js | 2 +- package.json | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/egg.js b/lib/egg.js index 361d97c79..905af1435 100644 --- a/lib/egg.js +++ b/lib/egg.js @@ -89,7 +89,7 @@ class EggApplication extends EggCore { this.cluster = (clientClass, options) => { options = Object.assign({}, this.config.clusterClient, options, { // cluster need a port that can't conflict on the environment - port: this._options.clusterPort, + port: this.options.clusterPort, // agent worker is leader, app workers are follower isLeader: this.type === 'agent', logger: this.coreLogger, diff --git a/package.json b/package.json index 11f9b4aad..13088f446 100644 --- a/package.json +++ b/package.json @@ -20,19 +20,19 @@ "agentkeepalive": "^3.3.0", "cluster-client": "^1.7.1", "co": "^4.6.0", - "debug": "^3.0.1", + "debug": "^3.1.0", "delegates": "^1.0.0", - "egg-cluster": "^1.12.1", + "egg-cluster": "^1.12.4", "egg-cookies": "^2.2.1", - "egg-core": "^3.13.1", - "egg-development": "^1.3.1", + "egg-core": "^3.18.0", + "egg-development": "^1.3.2", "egg-i18n": "^1.2.0", - "egg-jsonp": "^1.1.2", + "egg-jsonp": "^1.2.1", "egg-logger": "^1.6.0", - "egg-logrotator": "^2.2.3", - "egg-multipart": "^1.5.0", + "egg-logrotator": "^2.3.0", + "egg-multipart": "^1.5.1", "egg-onerror": "^1.5.0", - "egg-schedule": "^2.4.1", + "egg-schedule": "^2.6.0", "egg-security": "^1.12.1", "egg-session": "^2.1.1", "egg-static": "^1.4.1", @@ -47,23 +47,23 @@ "koa-override": "^2.0.0", "mime-types": "^2.1.17", "sendmessage": "^1.1.0", - "urllib": "^2.25.0", - "utility": "^1.12.0", + "urllib": "^2.25.1", + "utility": "^1.13.1", "ylru": "^1.2.0" }, "devDependencies": { "address": "^1.0.3", - "autod": "^2.9.0", + "autod": "^2.10.1", "autod-egg": "^1.0.0", "coffee": "^4.1.0", "egg-alinode": "^1.0.3", - "egg-bin": "^4.3.3", + "egg-bin": "^4.3.5", "egg-doctools": "^2.1.0", - "egg-mock": "^3.12.2", + "egg-mock": "^3.13.1", "egg-plugin-puml": "^2.4.0", "egg-tracer": "^1.1.0", "egg-view-nunjucks": "^2.1.4", - "eslint": "^4.7.2", + "eslint": "^4.10.0", "eslint-config-egg": "^5.1.1", "findlinks": "^1.1.0", "formstream": "^1.1.0",