Skip to content

Commit

Permalink
deps: npm-registry-fetch@13.3.1 (#5316)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy committed Aug 17, 2022
1 parent 4e08d71 commit 46e8753
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 3 additions & 1 deletion node_modules/npm-registry-fetch/lib/check-response.js
Expand Up @@ -61,7 +61,9 @@ function checkErrors (method, res, startTime, opts) {
let parsed = body
try {
parsed = JSON.parse(body.toString('utf8'))
} catch (e) {}
} catch {
// ignore errors
}
if (res.status === 401 && res.headers.get('www-authenticate')) {
const auth = res.headers.get('www-authenticate')
.split(/,\s*/)
Expand Down
4 changes: 3 additions & 1 deletion node_modules/npm-registry-fetch/lib/clean-url.js
Expand Up @@ -14,7 +14,9 @@ const cleanUrl = (str) => {
if (url.password) {
str = str.replace(url.password, replace)
}
} catch {}
} catch {
// ignore errors
}

return str
.replace(tokenRegex, `npm_${replace}`)
Expand Down
4 changes: 3 additions & 1 deletion node_modules/npm-registry-fetch/package.json
@@ -1,6 +1,6 @@
{
"name": "npm-registry-fetch",
"version": "13.3.0",
"version": "13.3.1",
"description": "Fetch-based http client for use with npm registry APIs",
"main": "lib",
"files": [
Expand Down Expand Up @@ -46,8 +46,10 @@
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.5.0",
"cacache": "^16.0.2",
"mkdirp": "^1.0.4",
"nock": "^13.2.4",
"require-inject": "^1.4.4",
"rimraf": "^3.0.2",
"ssri": "^9.0.0",
"tap": "^16.0.1"
},
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json
Expand Up @@ -135,7 +135,7 @@
"npm-package-arg": "^9.1.0",
"npm-pick-manifest": "^7.0.1",
"npm-profile": "^6.2.0",
"npm-registry-fetch": "^13.3.0",
"npm-registry-fetch": "^13.3.1",
"npm-user-validate": "^1.0.1",
"npmlog": "^6.0.2",
"opener": "^1.5.2",
Expand Down Expand Up @@ -5230,9 +5230,9 @@
}
},
"node_modules/npm-registry-fetch": {
"version": "13.3.0",
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.3.0.tgz",
"integrity": "sha512-10LJQ/1+VhKrZjIuY9I/+gQTvumqqlgnsCufoXETHAPFTS3+M+Z5CFhZRDHGavmJ6rOye3UvNga88vl8n1r6gg==",
"version": "13.3.1",
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.3.1.tgz",
"integrity": "sha512-eukJPi++DKRTjSBRcDZSDDsGqRK3ehbxfFUcgaRd0Yp6kRwOwh2WVn0r+8rMB4nnuzvAk6rQVzl6K5CkYOmnvw==",
"inBundle": true,
"dependencies": {
"make-fetch-happen": "^10.0.6",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -103,7 +103,7 @@
"npm-package-arg": "^9.1.0",
"npm-pick-manifest": "^7.0.1",
"npm-profile": "^6.2.0",
"npm-registry-fetch": "^13.3.0",
"npm-registry-fetch": "^13.3.1",
"npm-user-validate": "^1.0.1",
"npmlog": "^6.0.2",
"opener": "^1.5.2",
Expand Down

0 comments on commit 46e8753

Please sign in to comment.