Skip to content

Commit d7d3717

Browse files
committed
Fixed errors that were created when a three year old pull request (mapbox#652) was rebased over multiple configuration changes.
1 parent c0258ab commit d7d3717

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

lib/mock/http.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const path = require('path');
77
const nock = require('nock');
88
const os = require('os');
99

10-
const log = require('npmlog');
11-
log.disableProgress(); // disable the display of a progress bar
10+
const log = require('../util/log.js');
1211
log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
1312

1413
function http_mock() {
@@ -17,6 +16,7 @@ function http_mock() {
1716
const basePath = `${os.tmpdir()}/mock`;
1817

1918
nock(new RegExp('([a-z0-9]+[.])*s3[.]us-east-1[.]amazonaws[.]com'))
19+
.persist()
2020
.get(() => true) //a function that always returns true is a catch all for nock
2121
.reply(
2222
(uri) => {

lib/mock/s3.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ module.exports = exports = s3_mock;
55
const AWSMock = require('mock-aws-s3');
66
const os = require('os');
77

8-
const log = require('npmlog');
9-
log.disableProgress(); // disable the display of a progress bar
8+
const log = require('../util/log.js');
109
log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
1110

1211
function s3_mock() {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)