Skip to content

Commit

Permalink
Added new unary addSecrets() function (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Feb 24, 2019
1 parent 74d113b commit fbc1a06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions signale.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ class Signale {
return str + ' '.repeat(targetLength);
}

addSecrets(secrets) {
if (!Array.isArray(secrets)) {
throw new TypeError('Argument must be an array.');
}

this._secrets.push(...secrets);
}

config(configObj) {
this.configuration = configObj;
}
Expand Down

0 comments on commit fbc1a06

Please sign in to comment.