(filename)
| 3 | const apiUrl = (path) => path |
| 4 | |
| 5 | const addYamlSuffix = (filename) => { |
| 6 | const trimmed = (filename || '').trim() |
| 7 | if (!trimmed) { |
| 8 | return '' |
| 9 | } |
| 10 | if (trimmed.endsWith('.yaml') || trimmed.endsWith('.yml')) { |
| 11 | return trimmed |
| 12 | } |
| 13 | return `${trimmed}.yaml` |
| 14 | } |
| 15 | |
| 16 | // Upload a YAML file |
| 17 | export async function postYaml(filename, content) { |
no outgoing calls
no test coverage detected