( value: unknown )
| 136 | } |
| 137 | |
| 138 | function getUserScriptSettings( |
| 139 | value: unknown |
| 140 | ): Record<string, unknown> | undefined { |
| 141 | if (!isUserScriptObjectExport(value)) return undefined; |
| 142 | const { settings } = value; |
| 143 | return isRecord(settings) ? settings : undefined; |
| 144 | } |
| 145 | |
| 146 | function getConditionalScriptCacheKey(condition: ScriptCondition): string { |
| 147 | return `${condition.scriptPath}::${condition.exportName ?? "default"}`; |
no test coverage detected