(workspace: Workspace, inputPath: string)
| 119 | } |
| 120 | |
| 121 | resolvePath(workspace: Workspace, inputPath: string): string { |
| 122 | const absolutePath = resolveAllowedPath(inputPath, workspace.root, [workspace.root]); |
| 123 | if (!isPathInsideRoot(absolutePath, workspace.root)) { |
| 124 | throw new Error(`Path is outside workspace root: ${inputPath}`); |
| 125 | } |
| 126 | |
| 127 | return absolutePath; |
| 128 | } |
| 129 | |
| 130 | resolveReadPath(workspace: Workspace, inputPath: string): WorkspaceReadPath { |
| 131 | try { |
no test coverage detected