Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 7x 7x 7x 39x 39x 4x 39x | import { CustomerVariables } from './customer-variables'
import { CustomerVariableName } from './types'
export const OBFUSCATED_VALUE = '********'
export async function maybeObfuscateVariable(customerVariables: CustomerVariables, variable: CustomerVariableName) {
const result = await customerVariables.getVariable(variable)
if (variable === CustomerVariableName.PreSharedSecret && result.value) {
result.value = OBFUSCATED_VALUE
}
return result
}
|