Skip to content

Commit 4ff29f6

Browse files
committedNov 20, 2024
deps: npm-registry-fetch@18.0.2
1 parent fd6f4fb commit 4ff29f6

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed
 

Diff for: ‎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) {

Diff for: ‎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
}

Diff for: ‎package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"npm-package-arg": "^12.0.0",
136136
"npm-pick-manifest": "^10.0.0",
137137
"npm-profile": "^11.0.1",
138-
"npm-registry-fetch": "^18.0.1",
138+
"npm-registry-fetch": "^18.0.2",
139139
"npm-user-validate": "^3.0.0",
140140
"p-map": "^4.0.0",
141141
"pacote": "^19.0.0",
@@ -11454,9 +11454,9 @@
1145411454
}
1145511455
},
1145611456
"node_modules/npm-registry-fetch": {
11457-
"version": "18.0.1",
11458-
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-18.0.1.tgz",
11459-
"integrity": "sha512-5XKlWmVtfTTmnU6rKBjjQDMdnFOVAH9t7D4DG1ZcsIDwkGYBTUl0fMnbzsVSM0t/HZRpyE1VMLZv9O0Bvkj3UA==",
11457+
"version": "18.0.2",
11458+
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-18.0.2.tgz",
11459+
"integrity": "sha512-LeVMZBBVy+oQb5R6FDV9OlJCcWDU+al10oKpe+nsvcHnG24Z3uM3SvJYKfGJlfGjVU8v9liejCrUR/M5HO5NEQ==",
1146011460
"inBundle": true,
1146111461
"license": "ISC",
1146211462
"dependencies": {

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"npm-package-arg": "^12.0.0",
101101
"npm-pick-manifest": "^10.0.0",
102102
"npm-profile": "^11.0.1",
103-
"npm-registry-fetch": "^18.0.1",
103+
"npm-registry-fetch": "^18.0.2",
104104
"npm-user-validate": "^3.0.0",
105105
"p-map": "^4.0.0",
106106
"pacote": "^19.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.