-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: repair config items using raw values when possible
closes #6085
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,18 @@ exports[`test/index.js TAP credentials management def_auth > other registry 1`] | |
Object {} | ||
` | ||
|
||
exports[`test/index.js TAP credentials management def_authEnv > default registry 1`] = ` | ||
Object { | ||
"auth": "\${PATH}", | ||
"password": "", | ||
"username": "<\\u0004�", | ||
} | ||
` | ||
|
||
exports[`test/index.js TAP credentials management def_authEnv > other registry 1`] = ` | ||
Object {} | ||
` | ||
|
||
exports[`test/index.js TAP credentials management def_passNoUser > default registry 1`] = ` | ||
Object { | ||
"email": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -701,6 +701,9 @@ email = [email protected] | |
'.npmrc': `_auth = ${Buffer.from('hello:world').toString('base64')} | ||
always-auth = true`, | ||
}, | ||
def_authEnv: { | ||
'.npmrc': '_auth = ${PATH}', | ||
}, | ||
none_authToken: { '.npmrc': '_authToken = 0bad1de4' }, | ||
none_lcAuthToken: { '.npmrc': '_authtoken = 0bad1de4' }, | ||
none_emptyConfig: { '.npmrc': '' }, | ||
|