+21
-13
lines changedFilter options
+21
-13
lines changed Original file line number Diff line number Diff line change
@@ -48,10 +48,18 @@ function logRequest (method, res, startTime) {
48
48
const cacheStr = cacheStatus ? ` (cache ${cacheStatus})` : ''
49
49
const urlStr = cleanUrl(res.url)
50
50
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
+
}
55
63
}
56
64
57
65
function checkErrors (method, res, startTime, opts) {
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "npm-registry-fetch",
3
-
"version": "18.0.1",
3
+
"version": "18.0.2",
4
4
"description": "Fetch-based http client for use with npm registry APIs",
5
5
"main": "lib",
6
6
"files": [
@@ -42,8 +42,8 @@
42
42
},
43
43
"devDependencies": {
44
44
"@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",
47
47
"nock": "^13.2.4",
48
48
"require-inject": "^1.4.4",
49
49
"ssri": "^12.0.0",
@@ -62,7 +62,7 @@
62
62
},
63
63
"templateOSS": {
64
64
"//@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",
66
66
"publish": "true"
67
67
}
68
68
}
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@
135
135
"npm-package-arg": "^12.0.0",
136
136
"npm-pick-manifest": "^10.0.0",
137
137
"npm-profile": "^11.0.1",
138
-
"npm-registry-fetch": "^18.0.1",
138
+
"npm-registry-fetch": "^18.0.2",
139
139
"npm-user-validate": "^3.0.0",
140
140
"p-map": "^4.0.0",
141
141
"pacote": "^19.0.0",
@@ -11454,9 +11454,9 @@
11454
11454
}
11455
11455
},
11456
11456
"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==",
11460
11460
"inBundle": true,
11461
11461
"license": "ISC",
11462
11462
"dependencies": {
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@
100
100
"npm-package-arg": "^12.0.0",
101
101
"npm-pick-manifest": "^10.0.0",
102
102
"npm-profile": "^11.0.1",
103
-
"npm-registry-fetch": "^18.0.1",
103
+
"npm-registry-fetch": "^18.0.2",
104
104
"npm-user-validate": "^3.0.0",
105
105
"p-map": "^4.0.0",
106
106
"pacote": "^19.0.0",
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4