( knownHubsPath: string, )
| 66 | } |
| 67 | |
| 68 | export const getKnownHubs = async ( |
| 69 | knownHubsPath: string, |
| 70 | ): Promise<Partial<Record<string, KnownHub>>> => { |
| 71 | try { |
| 72 | return JSON.parse(await fs.readFile(knownHubsPath, 'utf-8')) |
| 73 | } catch (error) { |
| 74 | if (error.code !== 'ENOENT') { throw error } |
| 75 | } |
| 76 | return {} |
| 77 | } |
| 78 | |
| 79 | export const checkServerIdentity = async ( |
| 80 | command: SmartThingsCommand, |
no outgoing calls
no test coverage detected