Skip to content

Commit a6fc4cc

Browse files
committed
Fix: fixed bug where authenticated fetch is overwritten by non-authenticated fetch introduced in rewrite
1 parent ee9fea3 commit a6fc4cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/commands/solid-command.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ export interface IPreparedCommandOptions {
1414
}
1515

1616
export function setOptionDefaults<T>(options: ICommandOptions) {
17-
options.fetch = fetch;
18-
options.verbose = false;
19-
options.logger = console;
17+
if (!options.fetch) options.fetch = fetch;
18+
if (!options.verbose) options.verbose = false;
19+
if (!options.logger) options.logger = console;
20+
2021
return options as IPreparedCommandOptions & T
2122
}

0 commit comments

Comments
 (0)