Re-enable the audit tools step and update dependencies (#815)
* update package versions * run audit * fix eslint config * linter updates * re-enable audit * update timeouts test * pass done into callback * fix format
This commit is contained in:
1 parent
cb22c5e7ce
commit
ef0fa675fa
2 files changed
+2
-2
No files matched your search
@@ -357,7 +357,7 @@ describe('Download Tests', () => {
|
|||||||
plaintext: Buffer | string
|
plaintext: Buffer | string
|
||||||
): Promise<Buffer> {
|
): Promise<Buffer> {
|
||||||
if (isGzip) {
|
if (isGzip) {
|
||||||
return <Buffer>await promisify(gzip)(plaintext)
|
return await promisify(gzip)(plaintext)
|
||||||
} else if (typeof plaintext === 'string') {
|
} else if (typeof plaintext === 'string') {
|
||||||
return Buffer.from(plaintext, defaultEncoding)
|
return Buffer.from(plaintext, defaultEncoding)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export async function retry(
|
|||||||
throw Error(`${name} failed: ${errorMessage}`)
|
throw Error(`${name} failed: ${errorMessage}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function retryHttpClientRequest<T>(
|
export async function retryHttpClientRequest(
|
||||||
name: string,
|
name: string,
|
||||||
method: () => Promise<IHttpClientResponse>,
|
method: () => Promise<IHttpClientResponse>,
|
||||||
customErrorMessages: Map<number, string> = new Map(),
|
customErrorMessages: Map<number, string> = new Map(),
|
||||||
|
|||||||
Reference in new issue
Block a user