@pikecode/api-key-manager 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/switch.js +6 -0
package/package.json
CHANGED
package/src/commands/switch.js
CHANGED
|
@@ -304,6 +304,8 @@ class EnvSwitcher extends BaseCommand {
|
|
|
304
304
|
choices,
|
|
305
305
|
default: defaultChoice,
|
|
306
306
|
pageSize: this._getPageSize(choices.length)
|
|
307
|
+
}
|
|
308
|
+
]);
|
|
307
309
|
|
|
308
310
|
if (answer.provider === '__OPEN_CONFIG__') {
|
|
309
311
|
await this.openConfigFile();
|
|
@@ -786,6 +788,10 @@ class EnvSwitcher extends BaseCommand {
|
|
|
786
788
|
message: `选择供应商或操作 (总计 ${providers.length} 个):`,
|
|
787
789
|
choices,
|
|
788
790
|
pageSize: this._getPageSize(choices.length)
|
|
791
|
+
}
|
|
792
|
+
]);
|
|
793
|
+
} catch (error) {
|
|
794
|
+
if (this.isEscCancelled(error)) {
|
|
789
795
|
return;
|
|
790
796
|
}
|
|
791
797
|
throw error;
|