Skip to content

Commit 2472205

Browse files
committedApr 17, 2023
deps: npm-registry-fetch@14.0.4
1 parent 2780714 commit 2472205

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed
 

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const cleanUrl = (str) => {
1212
try {
1313
const url = new URL(str)
1414
if (url.password) {
15-
str = str.replace(url.password, replace)
15+
url.password = replace
16+
str = url.toString()
1617
}
1718
} catch {
1819
// ignore errors

‎node_modules/npm-registry-fetch/package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-registry-fetch",
3-
"version": "14.0.3",
3+
"version": "14.0.4",
44
"description": "Fetch-based http client for use with npm registry APIs",
55
"main": "lib",
66
"files": [
@@ -41,12 +41,10 @@
4141
},
4242
"devDependencies": {
4343
"@npmcli/eslint-config": "^4.0.0",
44-
"@npmcli/template-oss": "4.10.0",
44+
"@npmcli/template-oss": "4.13.0",
4545
"cacache": "^17.0.0",
46-
"mkdirp": "^1.0.4",
4746
"nock": "^13.2.4",
4847
"require-inject": "^1.4.4",
49-
"rimraf": "^3.0.2",
5048
"ssri": "^10.0.0",
5149
"tap": "^16.0.1"
5250
},
@@ -63,6 +61,7 @@
6361
},
6462
"templateOSS": {
6563
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
66-
"version": "4.10.0"
64+
"version": "4.13.0",
65+
"publish": "true"
6766
}
6867
}

‎package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"npm-package-arg": "^10.1.0",
130130
"npm-pick-manifest": "^8.0.1",
131131
"npm-profile": "^7.0.1",
132-
"npm-registry-fetch": "^14.0.3",
132+
"npm-registry-fetch": "^14.0.4",
133133
"npm-user-validate": "^2.0.0",
134134
"npmlog": "^7.0.1",
135135
"p-map": "^4.0.0",
@@ -9341,9 +9341,9 @@
93419341
}
93429342
},
93439343
"node_modules/npm-registry-fetch": {
9344-
"version": "14.0.3",
9345-
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.3.tgz",
9346-
"integrity": "sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA==",
9344+
"version": "14.0.4",
9345+
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.4.tgz",
9346+
"integrity": "sha512-pMS2DRkwg+M44ct65zrN/Cr9IHK1+n6weuefAo6Er4lc+/8YBCU0Czq04H3ZiSigluh7pb2rMM5JpgcytctB+Q==",
93479347
"inBundle": true,
93489348
"dependencies": {
93499349
"make-fetch-happen": "^11.0.0",

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"npm-package-arg": "^10.1.0",
9999
"npm-pick-manifest": "^8.0.1",
100100
"npm-profile": "^7.0.1",
101-
"npm-registry-fetch": "^14.0.3",
101+
"npm-registry-fetch": "^14.0.4",
102102
"npm-user-validate": "^2.0.0",
103103
"npmlog": "^7.0.1",
104104
"p-map": "^4.0.0",

‎tap-snapshots/test/lib/utils/error-message.js.test.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Object {
190190
"r",
191191
"g",
192192
"s",
193-
"https://evil:***@npmjs.org",
193+
"https://evil:***@npmjs.org/",
194194
],
195195
Array [
196196
"",

‎test/lib/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ t.test('logged argv is sanitized with equals', async t => {
9898
})
9999
await cli(process)
100100

101-
t.match(logsBy('argv'), [['"version" "--registry" "https://u:***@npmjs.org"']])
101+
t.match(logsBy('argv'), [['"version" "--registry" "https://u:***@npmjs.org/"']])
102102
})
103103

104104
t.test('print usage if no params provided', async t => {

‎test/lib/utils/exit-handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ t.test('uses all err special properties', async t => {
549549
t.test('verbose logs replace info on err props', async t => {
550550
const { exitHandler, logs } = await mockExitHandler(t)
551551

552-
const keys = ['type', 'stack', 'statusCode', 'pkgid']
552+
const keys = ['type', 'stack', 'pkgid']
553553
const properties = keys.reduce((acc, k) => {
554554
acc[k] = `${k}-https://user:pass@registry.npmjs.org/`
555555
return acc

‎test/lib/utils/replace-info.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ t.equal(
5757

5858
t.equal(
5959
replaceInfo('https://user:pass@registry.npmjs.org/ http://a:b@reg.github.com'),
60-
'https://user:***@registry.npmjs.org/ http://a:***@reg.github.com',
60+
'https://user:***@registry.npmjs.org/ http://a:***@reg.github.com/',
6161
'should replace multiple items on a string'
6262
)
6363

@@ -81,7 +81,7 @@ t.same(
8181
]),
8282
[
8383
'Something https://user:***@registry.npmjs.org/ foo bar',
84-
'http://foo:***@registry.npmjs.org',
84+
'http://foo:***@registry.npmjs.org/',
8585
'http://example.npmjs.org',
8686
],
8787
'should replace items in an array'
@@ -95,7 +95,7 @@ t.same(
9595
]),
9696
[
9797
'Something --x=https://user:***@registry.npmjs.org/ foo bar',
98-
'--url=http://foo:***@registry.npmjs.org',
98+
'--url=http://foo:***@registry.npmjs.org/',
9999
'--url=http://example.npmjs.org',
100100
],
101101
'should replace items in an array with equals'

0 commit comments

Comments
 (0)
Please sign in to comment.