Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
chore(baseConfig): add deprecatiion warning for (longer) outdated .cu…
Browse files Browse the repository at this point in the history
…rrent and ._current
  • Loading branch information
doktordirk committed Jun 7, 2016
1 parent 2d0676d commit 6e13ab3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/baseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,22 @@ export class BaseConfig {
get tokenPrefix() {
return this._tokenPrefix || 'aurelia';
}

get current() {
LogManager.getLogger('authentication').warn('Getter BaseConfig.current is deprecated. Use BaseConfig directly instead.');
return this;
}
set current(_) {
throw new Error('Setter BaseConfig.current is obsolete. Use BaseConfig directly instead.');
}

get _current() {
LogManager.getLogger('authentication').warn('Getter BaseConfig._current is deprecated. Use BaseConfig directly instead.');
return this;
}
set _current(_) {
throw new Error('Setter BaseConfig._current is obsolete. Use BaseConfig directly instead.');
}
}

function randomState() {
Expand Down

0 comments on commit 6e13ab3

Please sign in to comment.