We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f505160 commit 2752856Copy full SHA for 2752856
lib/mock/http.js
@@ -14,10 +14,9 @@ log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
14
function http_mock() {
15
log.warn('mocking http requests to s3');
16
17
- const baseHostname = 's3.us-east-1.amazonaws.com';
18
const basePath = `${os.tmpdir()}/mock`;
19
20
- nock(new RegExp('^\.*' + baseHostname))
+ nock(new RegExp('([a-z0-9]+[.])*s3[.]us-east-1[.]amazonaws[.]com'))
21
.persist()
22
.get(() => true) //a function that always returns true is a catch all for nock
23
.reply(
0 commit comments