(body: string)
| 424 | } |
| 425 | |
| 426 | function optionBodyDeclaresSecret(body: string): boolean { |
| 427 | const properties = readTopLevelObjectProperties(body); |
| 428 | const type = properties.get("type"); |
| 429 | const secret = properties.get("secret"); |
| 430 | |
| 431 | return type === "secret" || ((type === "text" || type === "input") && secret === true); |
| 432 | } |
| 433 | |
| 434 | export function detectUserScriptSecretOptions( |
| 435 | source: string, |
no test coverage detected