Skip to content

Commit 4166608

Browse files
everett1992wraithgar
authored andcommitted
chore: change deprecated cacheManager to cachePath
`cacheManager` is deprecated in favor of `cachePath`. `cacheManager` is not documented so I was confused how npm-fetch-registry was caching without setting `cachePath`. Searching for `cacheManager` in make-fetch-happen explains it: https://github.com/npm/make-fetch-happen/blob/4d7b9c7e9f243258bff8329eba0beae448304af8/lib/options.js#L36-L42 This update should be safe because m-f-h is already copying the option to cachePath.
1 parent 939b34e commit 4166608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function regFetch (uri, /* istanbul ignore next */ opts_ = {}) {
110110
algorithms: opts.algorithms,
111111
body,
112112
cache: getCacheMode(opts),
113-
cacheManager: opts.cache,
113+
cachePath: opts.cache,
114114
ca: opts.ca,
115115
cert: opts.cert,
116116
headers,

0 commit comments

Comments
 (0)