(auth: AuthFile)
| 645 | }; |
| 646 | |
| 647 | const flatAuthEntries = (auth: AuthFile): Record<string, string> => { |
| 648 | const out: Record<string, string> = {}; |
| 649 | for (const [key, value] of Object.entries(auth)) { |
| 650 | if (typeof value === "string") out[key] = value; |
| 651 | } |
| 652 | return out; |
| 653 | }; |
| 654 | |
| 655 | const writeFlatAuthFile = (path: string, values: Record<string, string>): void => { |
| 656 | if (Object.keys(values).length === 0) return; |
no outgoing calls
no test coverage detected