From 46fb6aad64d40f8aafe9b7a78609b007a13d5008 Mon Sep 17 00:00:00 2001 From: Ron Ilan Date: Fri, 28 Jun 2024 18:19:44 -0700 Subject: [PATCH] Fix CodeQL errors. --- lib/mock/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mock/http.js b/lib/mock/http.js index 7d4dd0b2..7d59c330 100644 --- a/lib/mock/http.js +++ b/lib/mock/http.js @@ -14,7 +14,7 @@ log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's function http_mock() { log.warn('mocking http requests to s3'); - const baseHostname = 's3.us-east-1.amazonaws.com'; + const baseHostname = 's3\.us-east-1\.amazonaws\.com'; const basePath = `${os.tmpdir()}/mock`; nock(new RegExp('^\.*' + baseHostname))