Skip to content

Commit

Permalink
fix: Ensure to support deprecation settings at early stage of processing
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jun 21, 2021
1 parent 91c934b commit 011e0ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/classes/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ class Service {
// Below comments provide usage feedback helfpul for future refactor process.

// ## Properties currently accessed at "initialization" phase
//

this.disabledDeprecations = configurationInput.disabledDeprecations;
this.deprecationNotificationMode = configurationInput.deprecationNotificationMode;

// `provider` (`provder.name` by many plugin constructs, and few other core properties as
// `provider.stage` are read by dashboard plugin)
if (!_.isObject(configurationInput.provider)) {
Expand Down Expand Up @@ -149,8 +152,6 @@ class Service {
this.org = configurationInput.org;

this.plugins = configurationInput.plugins;
this.disabledDeprecations = configurationInput.disabledDeprecations;
this.deprecationNotificationMode = configurationInput.deprecationNotificationMode;

// `package.path` is read by few core plugins at initialization
if (configurationInput.package) {
Expand Down

0 comments on commit 011e0ce

Please sign in to comment.