Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
feat(fetch): bump make-fetch-happen for new restarts
Browse files Browse the repository at this point in the history
This make-fetch-happen bump effectively gives pacote an automatic
offline mode: since `default` will fall back to stale requests on error,
make-fetch-happen now skips the retry process on ENOTFOUND (getaddrinfo
failure), as well as other unrecognized errors.

`opts.offline` can still be used to force offline installations, though!
  • Loading branch information
zkat committed Apr 9, 2017
1 parent 92d2a9d commit cf90716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"cacache": "^7.0.3",
"glob": "^7.1.1",
"lru-cache": "^4.0.2",
"make-fetch-happen": "^1.7.0",
"make-fetch-happen": "^2.0.3",
"minimatch": "^3.0.3",
"mississippi": "^1.2.0",
"normalize-git-url": "^3.0.2",
Expand Down
7 changes: 1 addition & 6 deletions test/registry.tarball.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ npmlog.level = process.env.LOGLEVEL || 'silent'
const OPTS = {
log: npmlog,
registry: 'https://my.mock.registry/',
retry: {
retries: 1,
factor: 1,
minTimeout: 1,
maxTimeout: 10
}
retry: false
}

function BASE (tarData, registry) {
Expand Down

0 comments on commit cf90716

Please sign in to comment.