UNPKG

927 BJavaScriptView Raw
1"use strict";
2/*
3 * Copyright (c) 2022, salesforce.com, inc.
4 * All rights reserved.
5 * Licensed under the BSD 3-Clause license.
6 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7 */
8/* eslint-disable class-methods-use-this */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.TokensConfig = void 0;
11const configFile_1 = require("./configFile");
12class TokensConfig extends configFile_1.ConfigFile {
13 static getDefaultOptions() {
14 return {
15 isGlobal: true,
16 isState: true,
17 filename: 'tokens.json',
18 };
19 }
20 getMethod(contents, key) {
21 return contents[key];
22 }
23 setMethod(contents, key, value) {
24 contents[key] = value;
25 }
26}
27exports.TokensConfig = TokensConfig;
28TokensConfig.encryptedKeys = [/token/i, /password/i, /secret/i];
29//# sourceMappingURL=tokensConfig.js.map
\No newline at end of file