(prompt: string)
| 463 | |
| 464 | // Vercel decrypts encrypted values one record at a time (the list endpoint does |
| 465 | // not), and never returns sensitive values. |
| 466 | export async function decryptedEnvValues( |
| 467 | context: VercelContext, |
| 468 | recordIds: readonly string[] |
| 469 | ): Promise<Map<string, string>> { |
| 470 | const values = new Map<string, string>(); |
| 471 | const pending = [...new Set(recordIds)]; |
| 472 | const operation = `Read a ${context.project} environment variable`; |
| 473 | const worker = async () => { |
| 474 | for (let id = pending.pop(); id !== undefined; id = pending.pop()) { |
| 475 | const endpoint = `/v1/projects/${encodeURIComponent(context.project)}/env/${encodeURIComponent(id)}`; |
| 476 | const response = apiResponse( |
no test coverage detected