Skip to content

Commit

Permalink
deps: npm-registry-fetch@14.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Apr 17, 2023
1 parent 2780714 commit 2472205
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
3 changes: 2 additions & 1 deletion node_modules/npm-registry-fetch/lib/clean-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const cleanUrl = (str) => {
try {
const url = new URL(str)
if (url.password) {
str = str.replace(url.password, replace)
url.password = replace
str = url.toString()
}
} catch {
// ignore errors
Expand Down
9 changes: 4 additions & 5 deletions node_modules/npm-registry-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npm-registry-fetch",
"version": "14.0.3",
"version": "14.0.4",
"description": "Fetch-based http client for use with npm registry APIs",
"main": "lib",
"files": [
Expand Down Expand Up @@ -41,12 +41,10 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.10.0",
"@npmcli/template-oss": "4.13.0",
"cacache": "^17.0.0",
"mkdirp": "^1.0.4",
"nock": "^13.2.4",
"require-inject": "^1.4.4",
"rimraf": "^3.0.2",
"ssri": "^10.0.0",
"tap": "^16.0.1"
},
Expand All @@ -63,6 +61,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.10.0"
"version": "4.13.0",
"publish": "true"
}
}
8 changes: 4 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"npm-package-arg": "^10.1.0",
"npm-pick-manifest": "^8.0.1",
"npm-profile": "^7.0.1",
"npm-registry-fetch": "^14.0.3",
"npm-registry-fetch": "^14.0.4",
"npm-user-validate": "^2.0.0",
"npmlog": "^7.0.1",
"p-map": "^4.0.0",
Expand Down Expand Up @@ -9341,9 +9341,9 @@
}
},
"node_modules/npm-registry-fetch": {
"version": "14.0.3",
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.3.tgz",
"integrity": "sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA==",
"version": "14.0.4",
"resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.4.tgz",
"integrity": "sha512-pMS2DRkwg+M44ct65zrN/Cr9IHK1+n6weuefAo6Er4lc+/8YBCU0Czq04H3ZiSigluh7pb2rMM5JpgcytctB+Q==",
"inBundle": true,
"dependencies": {
"make-fetch-happen": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"npm-package-arg": "^10.1.0",
"npm-pick-manifest": "^8.0.1",
"npm-profile": "^7.0.1",
"npm-registry-fetch": "^14.0.3",
"npm-registry-fetch": "^14.0.4",
"npm-user-validate": "^2.0.0",
"npmlog": "^7.0.1",
"p-map": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tap-snapshots/test/lib/utils/error-message.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Object {
"r",
"g",
"s",
"https://evil:***@npmjs.org",
"https://evil:***@npmjs.org/",
],
Array [
"",
Expand Down
2 changes: 1 addition & 1 deletion test/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ t.test('logged argv is sanitized with equals', async t => {
})
await cli(process)

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

t.test('print usage if no params provided', async t => {
Expand Down
2 changes: 1 addition & 1 deletion test/lib/utils/exit-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ t.test('uses all err special properties', async t => {
t.test('verbose logs replace info on err props', async t => {
const { exitHandler, logs } = await mockExitHandler(t)

const keys = ['type', 'stack', 'statusCode', 'pkgid']
const keys = ['type', 'stack', 'pkgid']
const properties = keys.reduce((acc, k) => {
acc[k] = `${k}-https://user:pass@registry.npmjs.org/`
return acc
Expand Down
6 changes: 3 additions & 3 deletions test/lib/utils/replace-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ t.equal(

t.equal(
replaceInfo('https://user:pass@registry.npmjs.org/ http://a:b@reg.github.com'),
'https://user:***@registry.npmjs.org/ http://a:***@reg.github.com',
'https://user:***@registry.npmjs.org/ http://a:***@reg.github.com/',
'should replace multiple items on a string'
)

Expand All @@ -81,7 +81,7 @@ t.same(
]),
[
'Something https://user:***@registry.npmjs.org/ foo bar',
'http://foo:***@registry.npmjs.org',
'http://foo:***@registry.npmjs.org/',
'http://example.npmjs.org',
],
'should replace items in an array'
Expand All @@ -95,7 +95,7 @@ t.same(
]),
[
'Something --x=https://user:***@registry.npmjs.org/ foo bar',
'--url=http://foo:***@registry.npmjs.org',
'--url=http://foo:***@registry.npmjs.org/',
'--url=http://example.npmjs.org',
],
'should replace items in an array with equals'
Expand Down

0 comments on commit 2472205

Please sign in to comment.