MCPcopy
hub / github.com/github/docs / getRemoteJSON

Function getRemoteJSON

middleware/archived-enterprise-versions.js:78–85  ·  view source on GitHub ↗
(url, config)

Source from the content-addressed store, hash-verified

76const timeoutConfiguration = { response: 1500 }
77
78async 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}
86const _getRemoteJSONCache = new Map()
87
88// This module handles requests for deprecated GitHub Enterprise versions

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected