(script)
| 12 | * @returns {string | undefined} |
| 13 | */ |
| 14 | export function getScriptHome(script) { |
| 15 | let custom, meta; |
| 16 | return (custom = script.custom)[HOMEPAGE_URL] |
| 17 | || (meta = script.meta)[HOMEPAGE_URL] |
| 18 | || script[INFERRED]?.[HOMEPAGE_URL] |
| 19 | || meta.homepage |
| 20 | || meta.website |
| 21 | || meta.source |
| 22 | || custom.from; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @param {VMScript} script |
no outgoing calls
no test coverage detected