kopia lustrzana https://github.com/badgen/badgen.net
fix: use BadgenError from next handler (#712)
rodzic
5ee71cd668
commit
fcc4471b5d
|
@ -1,5 +1,5 @@
|
||||||
import got from './got'
|
import got from './got'
|
||||||
import { BadgenError } from './create-badgen-handler'
|
import { BadgenError } from './create-badgen-handler-next'
|
||||||
|
|
||||||
// request image specific DockerHub pull token
|
// request image specific DockerHub pull token
|
||||||
export function getDockerAuthToken<T = any>(scope: string, name: string) {
|
export function getDockerAuthToken<T = any>(scope: string, name: string) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import got from './got'
|
import got from './got'
|
||||||
import { BadgenError } from './create-badgen-handler'
|
import { BadgenError } from './create-badgen-handler-next'
|
||||||
|
|
||||||
const rand = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]
|
const rand = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import got from './got'
|
import got from './got'
|
||||||
import { BadgenError } from './create-badgen-handler'
|
import { BadgenError } from './create-badgen-handler-next'
|
||||||
|
|
||||||
const rand = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]
|
const rand = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue