Skip to content

Commit 92e6f07

Browse files
committed
1 parent e32284a commit 92e6f07

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

node_modules/npm-registry-fetch/lib/check-response.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,18 @@ function logRequest (method, res, startTime) {
4848
const cacheStr = cacheStatus ? ` (cache ${cacheStatus})` : ''
4949
const urlStr = cleanUrl(res.url)
5050

51-
log.http(
52-
'fetch',
53-
`${method.toUpperCase()} ${res.status} ${urlStr} ${elapsedTime}ms${attemptStr}${cacheStr}`
54-
)
51+
// If make-fetch-happen reports a cache hit, then there was no fetch
52+
if (cacheStatus === 'hit') {
53+
log.http(
54+
'cache',
55+
`${urlStr} ${elapsedTime}ms${attemptStr}${cacheStr}`
56+
)
57+
} else {
58+
log.http(
59+
'fetch',
60+
`${method.toUpperCase()} ${res.status} ${urlStr} ${elapsedTime}ms${attemptStr}${cacheStr}`
61+
)
62+
}
5563
}
5664

5765
function checkErrors (method, res, startTime, opts) {

node_modules/npm-registry-fetch/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-registry-fetch",
3-
"version": "18.0.1",
3+
"version": "18.0.2",
44
"description": "Fetch-based http client for use with npm registry APIs",
55
"main": "lib",
66
"files": [
@@ -42,8 +42,8 @@
4242
},
4343
"devDependencies": {
4444
"@npmcli/eslint-config": "^5.0.0",
45-
"@npmcli/template-oss": "4.23.3",
46-
"cacache": "^18.0.0",
45+
"@npmcli/template-oss": "4.23.4",
46+
"cacache": "^19.0.1",
4747
"nock": "^13.2.4",
4848
"require-inject": "^1.4.4",
4949
"ssri": "^12.0.0",
@@ -62,7 +62,7 @@
6262
},
6363
"templateOSS": {
6464
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
65-
"version": "4.23.3",
65+
"version": "4.23.4",
6666
"publish": "true"
6767
}
6868
}

package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"npm-package-arg": "^12.0.0",
133133
"npm-pick-manifest": "^10.0.0",
134134
"npm-profile": "^11.0.1",
135-
"npm-registry-fetch": "^18.0.1",
135+
"npm-registry-fetch": "^18.0.2",
136136
"npm-user-validate": "^3.0.0",
137137
"p-map": "^4.0.0",
138138
"pacote": "^20.0.0",
@@ -12249,9 +12249,9 @@
1224912249
}
1225012250
},
1225112251
"node_modules/npm-registry-fetch": {
12252-
"version": "18.0.1",
12253-
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-18.0.1.tgz",
12254-
"integrity": "sha512-5XKlWmVtfTTmnU6rKBjjQDMdnFOVAH9t7D4DG1ZcsIDwkGYBTUl0fMnbzsVSM0t/HZRpyE1VMLZv9O0Bvkj3UA==",
12252+
"version": "18.0.2",
12253+
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-18.0.2.tgz",
12254+
"integrity": "sha512-LeVMZBBVy+oQb5R6FDV9OlJCcWDU+al10oKpe+nsvcHnG24Z3uM3SvJYKfGJlfGjVU8v9liejCrUR/M5HO5NEQ==",
1225512255
"inBundle": true,
1225612256
"license": "ISC",
1225712257
"dependencies": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"npm-package-arg": "^12.0.0",
100100
"npm-pick-manifest": "^10.0.0",
101101
"npm-profile": "^11.0.1",
102-
"npm-registry-fetch": "^18.0.1",
102+
"npm-registry-fetch": "^18.0.2",
103103
"npm-user-validate": "^3.0.0",
104104
"p-map": "^4.0.0",
105105
"pacote": "^20.0.0",

0 commit comments

Comments
 (0)