Skip to content

Commit

Permalink
cacache@12.0.0, infer uid from cache folder
Browse files Browse the repository at this point in the history
BREAKING CHANGE: uid and gid are inferred from cache folder, rather than
being passed in as options.
  • Loading branch information
isaacs committed Jul 15, 2019
1 parent 4b62980 commit 0c4f060
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 34 deletions.
2 changes: 0 additions & 2 deletions config.js
Expand Up @@ -19,7 +19,6 @@ module.exports = figgyPudding({
'fetch-retry-mintimeout': {},
'force-auth': {},
forceAuth: 'force-auth',
'gid': {},
'gzip': {},
'headers': {},
'https-proxy': {},
Expand Down Expand Up @@ -77,7 +76,6 @@ module.exports = figgyPudding({
'spec': {},
'strict-ssl': {},
'timeout': {},
'uid': {},
'user-agent': {
default: `${
pkg.name
Expand Down
4 changes: 1 addition & 3 deletions index.js
Expand Up @@ -99,9 +99,7 @@ function regFetch (uri, opts) {
maxTimeout: opts['fetch-retry-maxtimeout']
},
strictSSL: !!opts['strict-ssl'],
timeout: opts.timeout,
uid: opts.uid,
gid: opts.gid
timeout: opts.timeout
}).then(res => checkResponse(
opts.method || 'GET', res, registry, startTime, opts
)))
Expand Down
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -33,11 +33,11 @@
"bluebird": "^3.5.1",
"figgy-pudding": "^3.4.1",
"lru-cache": "^5.1.1",
"make-fetch-happen": "^4.0.2",
"make-fetch-happen": "^5.0.0",
"npm-package-arg": "^6.1.0"
},
"devDependencies": {
"cacache": "^11.3.3",
"cacache": "^12.0.0",
"get-stream": "^4.0.0",
"mkdirp": "^0.5.1",
"nock": "^9.4.3",
Expand Down

0 comments on commit 0c4f060

Please sign in to comment.