(url, config)
| 76 | const timeoutConfiguration = { response: 1500 } |
| 77 | |
| 78 | async function getRemoteJSON(url, config) { |
| 79 | if (_getRemoteJSONCache.has(url)) { |
| 80 | return _getRemoteJSONCache.get(url) |
| 81 | } |
| 82 | const body = await got(url, config).json() |
| 83 | _getRemoteJSONCache.set(url, body) |
| 84 | return body |
| 85 | } |
| 86 | const _getRemoteJSONCache = new Map() |
| 87 | |
| 88 | // This module handles requests for deprecated GitHub Enterprise versions |
no outgoing calls
no test coverage detected