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 /node_modules/npm-registry-fetch
parent4e08d71e76fb2355dc93fcd7695e1ae20d6446af (diff)
deps: npm-registry-fetch@13.3.1 (#5316)
Diffstat (limited to 'node_modules/npm-registry-fetch')
-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
3 files changed, 9 insertions, 3 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"
},