File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ const path = require('path');
77const nock = require ( 'nock' ) ;
88const 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' ) ;
1211log . heading = 'node-pre-gyp' ; // differentiate node-pre-gyp's logs from npm's
1312
1413function 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 ) => {
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ module.exports = exports = s3_mock;
55const AWSMock = require ( 'mock-aws-s3' ) ;
66const 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' ) ;
109log . heading = 'node-pre-gyp' ; // differentiate node-pre-gyp's logs from npm's
1110
1211function s3_mock ( ) {
You can’t perform that action at this time.
0 commit comments