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))