(resp: Response, msg: string)
| 45 | `${id}@${version}/variable/${subset}-${axes}-${style}.woff2`; |
| 46 | |
| 47 | const handleBucketError = (resp: Response, msg: string) => { |
| 48 | if (resp.status === 401) { |
| 49 | throw new StatusError( |
| 50 | 401, |
| 51 | 'Unauthorized. Please check your UPLOAD_KEY environment variable.', |
| 52 | ); |
| 53 | } |
| 54 | |
| 55 | throw new StatusError(500, `Internal Server Error. ${msg}`); |
| 56 | }; |
| 57 | |
| 58 | export const listBucket = async (prefix: string) => { |
| 59 | keepAwake(SLEEP_MINUTES); |
no outgoing calls
no test coverage detected