Skip to content

Commit

Permalink
@npmcli/config@2.2.0
Browse files Browse the repository at this point in the history
Partially fixes #3130
  • Loading branch information
isaacs committed Apr 23, 2021
1 parent 7925cca commit b61eac6
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 84 deletions.
92 changes: 53 additions & 39 deletions node_modules/@npmcli/config/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions node_modules/@npmcli/config/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 7 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@npmcli/arborist": "^2.4.0",
"@npmcli/ci-detect": "^1.2.0",
"@npmcli/config": "^2.1.0",
"@npmcli/config": "^2.2.0",
"@npmcli/run-script": "^1.8.5",
"abbrev": "~1.1.1",
"ansicolors": "~0.3.2",
Expand Down
11 changes: 6 additions & 5 deletions test/lib/adduser.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const authDummy = (npm, options) => {
username: 'u',
password: 'p',
email: 'u@npmjs.org',
alwaysAuth: false,
},
})
}
Expand Down Expand Up @@ -97,12 +96,15 @@ t.test('simple login', (t) => {
_token: 'user',
_password: 'user',
username: 'user',
email: 'user',
_auth: 'user',
_authtoken: 'user',
'-authtoken': 'user',
_authToken: 'user',
'//registry.npmjs.org/:-authtoken': undefined,
'//registry.npmjs.org/:-authtoken': 'user',
'//registry.npmjs.org/:_authToken': 'user',
'//registry.npmjs.org/:_authtoken': 'user',
'//registry.npmjs.org/:always-auth': 'user',
'//registry.npmjs.org/:email': 'user',
},
'should delete token in user config'
)
Expand All @@ -112,8 +114,7 @@ t.test('simple login', (t) => {
{
'//registry.npmjs.org/:_password': { value: 'cA==', where: 'user' },
'//registry.npmjs.org/:username': { value: 'u', where: 'user' },
'//registry.npmjs.org/:email': { value: 'u@npmjs.org', where: 'user' },
'//registry.npmjs.org/:always-auth': { value: false, where: 'user' },
email: { value: 'u@npmjs.org', where: 'user' },
},
'should set expected user configs'
)
Expand Down

0 comments on commit b61eac6

Please sign in to comment.