(name: string)
| 436 | /** Slugify a header/query name into a stable variable identifier: |
| 437 | * `DD-API-KEY` → `dd_api_key`. */ |
| 438 | const slugifyVariable = (name: string): string => |
| 439 | name |
| 440 | .toLowerCase() |
| 441 | .replace(/[^a-z0-9]+/g, "_") |
| 442 | .replace(/^_+|_+$/g, ""); |
| 443 | |
| 444 | interface Placement { |
| 445 | readonly carrier: "header" | "query"; |
no test coverage detected