Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@github.com>2022-08-17 21:51:27 +0300
committerGitHub <noreply@github.com>2022-08-17 21:51:27 +0300
commit46e875306f551e3b89e2786d0fc8f0f3e4a8aa82 (patch)
tree9ace5b0faaf193fa66226bf517472798349b5986
parent4e08d71e76fb2355dc93fcd7695e1ae20d6446af (diff)
deps: npm-registry-fetch@13.3.1 (#5316)
-rw-r--r--node_modules/npm-registry-fetch/lib/check-response.js4
-rw-r--r--node_modules/npm-registry-fetch/lib/clean-url.js4
-rw-r--r--node_modules/npm-registry-fetch/package.json4
-rw-r--r--package-lock.json8
-rw-r--r--package.json2
5 files changed, 14 insertions, 8 deletions
diff --git a/node_modules/npm-registry-fetch/lib/check-response.js b/node_modules/npm-registry-fetch/lib/check-response.js
index 714513908..066ac3c32 100644
--- a/node_modules/npm-registry-fetch/lib/check-response.js
+++ b/node_modules/npm-registry-fetch/lib/check-response.js
@@ -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*/)
diff --git a/node_modules/npm-registry-fetch/lib/clean-url.js b/node_modules/npm-registry-fetch/lib/clean-url.js
index ba31dc462..a419b47d6 100644
--- a/node_modules/npm-registry-fetch/lib/clean-url.js
+++ b/node_modules/npm-registry-fetch/lib/clean-url.js
@@ -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}`)
diff --git a/node_modules/npm-registry-fetch/package.json b/node_modules/npm-registry-fetch/package.json
index 8a0189a9e..7a3885ae1 100644
--- a/node_modules/npm-registry-fetch/package.json
+++ b/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": [
@@ -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"
},
diff --git a/package-lock.json b/package-lock.json
index 3f7197488..6355a9efe 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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",
@@ -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",
diff --git a/package.json b/package.json
index f95332f26..49ddfa179 100644
--- a/package.json
+++ b/package.json
@@ -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",