/
usr
/
local
/
lib
/
node_modules
/
npm
/
node_modules
/
make-fetch-happen
/
lib
/
cache
/
/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache
mkdir
upload
Name
Size
Mode
Actions
entry.js
16421
0644
edit
dl
rm
errors.js
284
0644
edit
dl
rm
index.js
1792
0644
edit
dl
rm
key.js
430
0644
edit
dl
rm
policy.js
4527
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/npm/node_modules/make-fetch-happen/lib/cache/key.js
(430B)
const { URL, format } = require('url') // options passed to url.format() when generating a key const formatOptions = { auth: false, fragment: false, search: true, unicode: false, } // returns a string to be used as the cache key for the Request const cacheKey = (request) => { const parsed = new URL(request.url) return `make-fetch-happen:request-cache:${format(parsed, formatOptions)}` } module.exports = cacheKey
Save
cmd:
run