INNER CODE UNIT · TypeScript

handleSecret

Serverless-Devs/Serverless-Devs · src/command/config/utils/index.ts:3

export const handleSecret = (credential: Record<string, string>) => {
  const show = {};
  for (const key in credential) {
    const value = credential[key];
    if (key.startsWith('__')) {
      show[key] = value;
    } else {
      show[key] = fieldEncryption(value);
    }
  }
  return show;
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…