Skip to content

Commit 46e8753

Browse files
authored
deps: npm-registry-fetch@13.3.1 (#5316)
1 parent 4e08d71 commit 46e8753

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ function checkErrors (method, res, startTime, opts) {
6161
let parsed = body
6262
try {
6363
parsed = JSON.parse(body.toString('utf8'))
64-
} catch (e) {}
64+
} catch {
65+
// ignore errors
66+
}
6567
if (res.status === 401 && res.headers.get('www-authenticate')) {
6668
const auth = res.headers.get('www-authenticate')
6769
.split(/,\s*/)

node_modules/npm-registry-fetch/lib/clean-url.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const cleanUrl = (str) => {
1414
if (url.password) {
1515
str = str.replace(url.password, replace)
1616
}
17-
} catch {}
17+
} catch {
18+
// ignore errors
19+
}
1820

1921
return str
2022
.replace(tokenRegex, `npm_${replace}`)

node_modules/npm-registry-fetch/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-registry-fetch",
3-
"version": "13.3.0",
3+
"version": "13.3.1",
44
"description": "Fetch-based http client for use with npm registry APIs",
55
"main": "lib",
66
"files": [
@@ -46,8 +46,10 @@
4646
"@npmcli/eslint-config": "^3.0.1",
4747
"@npmcli/template-oss": "3.5.0",
4848
"cacache": "^16.0.2",
49+
"mkdirp": "^1.0.4",
4950
"nock": "^13.2.4",
5051
"require-inject": "^1.4.4",
52+
"rimraf": "^3.0.2",
5153
"ssri": "^9.0.0",
5254
"tap": "^16.0.1"
5355
},

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"npm-package-arg": "^9.1.0",
136136
"npm-pick-manifest": "^7.0.1",
137137
"npm-profile": "^6.2.0",
138-
"npm-registry-fetch": "^13.3.0",
138+
"npm-registry-fetch": "^13.3.1",
139139
"npm-user-validate": "^1.0.1",
140140
"npmlog": "^6.0.2",
141141
"opener": "^1.5.2",
@@ -5230,9 +5230,9 @@
52305230
}
52315231
},
52325232
"node_modules/npm-registry-fetch": {
5233-
"version": "13.3.0",
5234-
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.3.0.tgz",
5235-
"integrity": "sha512-10LJQ/1+VhKrZjIuY9I/+gQTvumqqlgnsCufoXETHAPFTS3+M+Z5CFhZRDHGavmJ6rOye3UvNga88vl8n1r6gg==",
5233+
"version": "13.3.1",
5234+
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.3.1.tgz",
5235+
"integrity": "sha512-eukJPi++DKRTjSBRcDZSDDsGqRK3ehbxfFUcgaRd0Yp6kRwOwh2WVn0r+8rMB4nnuzvAk6rQVzl6K5CkYOmnvw==",
52365236
"inBundle": true,
52375237
"dependencies": {
52385238
"make-fetch-happen": "^10.0.6",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"npm-package-arg": "^9.1.0",
104104
"npm-pick-manifest": "^7.0.1",
105105
"npm-profile": "^6.2.0",
106-
"npm-registry-fetch": "^13.3.0",
106+
"npm-registry-fetch": "^13.3.1",
107107
"npm-user-validate": "^1.0.1",
108108
"npmlog": "^6.0.2",
109109
"opener": "^1.5.2",

0 commit comments

Comments
 (0)