From ef0fa675fa0f7722ddc79b419ab135409680be96 Mon Sep 17 00:00:00 2001 From: Thomas Boop <52323235+thboop@users.noreply.github.com> Date: Fri, 21 May 2021 09:19:40 -0400 Subject: [PATCH] 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 --- __tests__/download.test.ts | 2 +- src/internal/requestUtils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/download.test.ts b/__tests__/download.test.ts index 05e5707..3b6ee3e 100644 --- a/__tests__/download.test.ts +++ b/__tests__/download.test.ts @@ -357,7 +357,7 @@ describe('Download Tests', () => { plaintext: Buffer | string ): Promise { if (isGzip) { - return await promisify(gzip)(plaintext) + return await promisify(gzip)(plaintext) } else if (typeof plaintext === 'string') { return Buffer.from(plaintext, defaultEncoding) } else { diff --git a/src/internal/requestUtils.ts b/src/internal/requestUtils.ts index d11db03..65f40e7 100644 --- a/src/internal/requestUtils.ts +++ b/src/internal/requestUtils.ts @@ -69,7 +69,7 @@ export async function retry( throw Error(`${name} failed: ${errorMessage}`) } -export async function retryHttpClientRequest( +export async function retryHttpClientRequest( name: string, method: () => Promise, customErrorMessages: Map = new Map(),