(fullMemberPath: string)
| 6 | import { extractScriptFromMarkdown } from "./extractScriptFromMarkdown"; |
| 7 | |
| 8 | export function getUserScriptMemberAccess(fullMemberPath: string): { |
| 9 | basename: string | undefined; |
| 10 | memberAccess: string[] | undefined; |
| 11 | } { |
| 12 | // Use "::" exclusively to separate macro/script from member path |
| 13 | const parts = fullMemberPath |
| 14 | .split("::") |
| 15 | .map(p => p.trim()) |
| 16 | .filter(Boolean); |
| 17 | |
| 18 | return { |
| 19 | basename: parts[0], |
| 20 | memberAccess: parts.slice(1) |
| 21 | }; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Cache key for a preloaded user-script module (the map shared between the |
no outgoing calls
no test coverage detected