Skip to content

Commit 985ddfe

Browse files
committed
npm test
1 parent 5bb19ab commit 985ddfe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/commands/logout/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export const logout = {
2727
if (cli.input.length) cli.showHelp()
2828

2929
updateSetting('apiKey', null)
30+
updateSetting('apiBaseUrl', null)
31+
updateSetting('apiProxy', null)
3032
updateSetting('enforcedOrgs', null)
3133
ora('Successfully logged out').succeed()
3234
}

lib/shadow/npm-injection.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ async function packagesHaveRiskyIssues (safeArb, _registry, pkgs, ora = null, _i
526526
const pkgDatas = []
527527
try {
528528
// TODO: determine org based on cwd, pass in
529-
const uxLookup = await uxLookupInit()
529+
const uxLookup = await uxLookupInit
530530

531531
for await (const pkgData of batchScan(pkgs.map(pkg => pkg.pkgid))) {
532532
/**

lib/shadow/tty-server.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = async function createTTYServer (colorLevel, isInteractive, npml
2323
* @type {import('readline')}
2424
*/
2525
let readline
26-
const isSTDINInteractive = true || isInteractive
26+
const isSTDINInteractive = isInteractive
2727
if (!isSTDINInteractive && TTY_IPC) {
2828
return {
2929
async captureTTY (mutexFn) {

0 commit comments

Comments
 (0)