kopia lustrzana https://github.com/badgen/badgen.net
Remove unnecessary BadgenError import
rodzic
d0d2514d8a
commit
7a42dd03f8
|
@ -1,5 +1,4 @@
|
|||
import got from './got'
|
||||
import { BadgenError } from './create-badgen-handler'
|
||||
|
||||
// request image specific DockerHub pull token
|
||||
export function getDockerAuthToken<T = any>(scope: string, name: string) {
|
||||
|
@ -32,4 +31,4 @@ export function getDockerImageManifest<T = any>(scope: string, name: string, dig
|
|||
const prefixUrl = process.env.DOCKER_REGISTRY_API || 'https://registry.hub.docker.com/'
|
||||
const path = `v2/${scope}/${name}/manifests/${digest}`
|
||||
return got.get(path, { prefixUrl, headers }).json<T>()
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue