MCPcopy Create free account
hub / github.com/EndBug/version-check / request

Function request

src/main.ts:182–196  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

180}
181
182async function request(url: string) {
183 const headers = token
184 ? {
185 Authorization: `Bearer ${token}`
186 }
187 : {}
188 return (
189 await got({
190 url,
191 method: 'GET',
192 headers,
193 responseType: 'json'
194 })
195 ).body
196}
197
198async function processDirectory(
199 dir: string,

Callers 2

mainFunction · 0.70
getCommitFunction · 0.70

Calls 1

gotFunction · 0.85

Tested by

no test coverage detected