@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikecode/api-key-manager",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "A CLI tool for managing and switching multiple API provider configurations",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -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;