(hostData: HostData[], config: UpdateConfig)
| 183 | } |
| 184 | |
| 185 | async function saveHosts(hostData: HostData[], config: UpdateConfig) { |
| 186 | try { |
| 187 | updateMd(tpl.replace('{content}', buildHosts(hostData)) |
| 188 | .trim(), config); |
| 189 | } catch (err) { |
| 190 | console.error(err.message); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | const speedConfig = { |
| 195 | interval: 0, |
no test coverage detected