From 7cf207a090914199d9630241f348467e488c1c81 Mon Sep 17 00:00:00 2001 From: paraschi Date: Thu, 5 Sep 2024 21:42:52 +0300 Subject: [PATCH] fix: declare const at the beginning --- src/support/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/support/utils.js b/src/support/utils.js index 098723e0..531c988d 100644 --- a/src/support/utils.js +++ b/src/support/utils.js @@ -19,6 +19,7 @@ import { JSDOM } from 'jsdom'; import { GetSecretValueCommand, SecretsManagerClient } from '@aws-sdk/client-secrets-manager'; URI.preventInvalidHostname = true; +const TIMEOUT = 3000; /* c8 ignore next 3 */ export const { fetch } = process.env.HELIX_FETCH_FORCE_HTTP1 @@ -34,8 +35,6 @@ export async function getRUMUrl(url) { return finalUrl.endsWith('/') ? finalUrl.slice(0, -1) : /* c8 ignore next */ finalUrl; } -const TIMEOUT = 3000; - /** * Fetches a URL with a specified timeout. *