(paths: string[])
| 11 | import type { SecureStorage, SecureStorageData } from './types.js' |
| 12 | |
| 13 | function dedupePaths(paths: string[]): string[] { |
| 14 | const seen = new Set<string>() |
| 15 | const deduped: string[] = [] |
| 16 | for (const path of paths) { |
| 17 | if (seen.has(path)) { |
| 18 | continue |
| 19 | } |
| 20 | seen.add(path) |
| 21 | deduped.push(path) |
| 22 | } |
| 23 | return deduped |
| 24 | } |
| 25 | |
| 26 | function getStoragePath(): { storageDir: string; storagePath: string } { |
| 27 | const storageDir = getCanonicalNcodeConfigHomeDir() |
no test coverage detected