Skip to content

Commit b61eac6

Browse files
committed
Partially fixes #3130
1 parent 7925cca commit b61eac6

File tree

5 files changed

+69
-84
lines changed

5 files changed

+69
-84
lines changed

node_modules/@npmcli/config/lib/index.js

Lines changed: 53 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@npmcli/config/package.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 7 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"dependencies": {
4545
"@npmcli/arborist": "^2.4.0",
4646
"@npmcli/ci-detect": "^1.2.0",
47-
"@npmcli/config": "^2.1.0",
47+
"@npmcli/config": "^2.2.0",
4848
"@npmcli/run-script": "^1.8.5",
4949
"abbrev": "~1.1.1",
5050
"ansicolors": "~0.3.2",

test/lib/adduser.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const authDummy = (npm, options) => {
2525
username: 'u',
2626
password: 'p',
2727
28-
alwaysAuth: false,
2928
},
3029
})
3130
}
@@ -97,12 +96,15 @@ t.test('simple login', (t) => {
9796
_token: 'user',
9897
_password: 'user',
9998
username: 'user',
100-
email: 'user',
10199
_auth: 'user',
102100
_authtoken: 'user',
101+
'-authtoken': 'user',
103102
_authToken: 'user',
104-
'//registry.npmjs.org/:-authtoken': undefined,
103+
'//registry.npmjs.org/:-authtoken': 'user',
105104
'//registry.npmjs.org/:_authToken': 'user',
105+
'//registry.npmjs.org/:_authtoken': 'user',
106+
'//registry.npmjs.org/:always-auth': 'user',
107+
'//registry.npmjs.org/:email': 'user',
106108
},
107109
'should delete token in user config'
108110
)
@@ -112,8 +114,7 @@ t.test('simple login', (t) => {
112114
{
113115
'//registry.npmjs.org/:_password': { value: 'cA==', where: 'user' },
114116
'//registry.npmjs.org/:username': { value: 'u', where: 'user' },
115-
'//registry.npmjs.org/:email': { value: '[email protected]', where: 'user' },
116-
'//registry.npmjs.org/:always-auth': { value: false, where: 'user' },
117+
email: { value: '[email protected]', where: 'user' },
117118
},
118119
'should set expected user configs'
119120
)

0 commit comments

Comments
 (0)