(os: OperatingSytem)
| 286 | } |
| 287 | |
| 288 | const operatingSystemToString = (os: OperatingSytem): string => { |
| 289 | let osString = [] |
| 290 | |
| 291 | if (os.vendor) { |
| 292 | osString.push(os.vendor) |
| 293 | } |
| 294 | |
| 295 | if (options.showOperatingSystemArchitecture && os.architecture) { |
| 296 | osString.push(os.architecture) |
| 297 | } |
| 298 | |
| 299 | return osString.join('-') |
| 300 | } |
| 301 | |
| 302 | const cache = { |
| 303 | clients: SortedMap<string, number>((a, b) => b[1] - a[1]), |