MCPcopy
hub / github.com/caprover/caprover / request

Function request

dev-scripts/validate-build-version-docker-hub.js:13–29  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

11const fs = require('fs-extra')
12
13function request(url) {
14 return new Promise(function (resolve, reject) {
15 requestOriginal(url, function (error, response, body) {
16 if (body) {
17 body = JSON.parse(body)
18 }
19
20 if (error || !body) {
21 console.log('Error while fetching tags from Docker Hub!')
22 reject(error)
23 return
24 }
25
26 resolve(body)
27 })
28 })
29}
30
31let publishedNameOnDockerHub = ''
32let version = ''

Callers 8

getTagsForImageFunction · 0.85
checkPortOrThrowFunction · 0.85
getInfoMethod · 0.85
checkCaptainHealthMethod · 0.85
getCaptainImageTagsMethod · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected