apiblaze 0.1.16 → 0.1.17

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -168,7 +168,7 @@ var import_commander = require("commander");
168
168
  var import_chalk7 = __toESM(require("chalk"));
169
169
 
170
170
  // package.json
171
- var version = "0.1.16";
171
+ var version = "0.1.17";
172
172
 
173
173
  // src/index.ts
174
174
  init_types();
@@ -521,21 +521,21 @@ async function runDev(options) {
521
521
  }
522
522
  selectedTargets = targets;
523
523
  } else {
524
+ const ALL = "__all__";
524
525
  const { chosen } = await import_inquirer.default.prompt([{
525
- type: "checkbox",
526
+ type: "list",
526
527
  name: "chosen",
527
- message: `Found ${targets.length} projects with an internal target \u2014 pick which to tunnel (space to select, a for all):`,
528
- choices: targets.map((t) => ({
529
- name: `${import_chalk3.default.bold(t.projectName)} (${t.tenantName}) \u2014 ${t.target}`,
530
- value: t,
531
- checked: false
532
- }))
528
+ message: `Found ${targets.length} projects with an internal target \u2014 pick one to tunnel:`,
529
+ choices: [
530
+ ...targets.map((t) => ({
531
+ name: `${import_chalk3.default.bold(t.projectName)} (${t.tenantName}) \u2014 ${t.target}`,
532
+ value: t
533
+ })),
534
+ new import_inquirer.default.Separator(),
535
+ { name: `Tunnel all ${targets.length}`, value: ALL }
536
+ ]
533
537
  }]);
534
- if (chosen.length === 0) {
535
- console.log("No projects selected. Aborted.");
536
- process.exit(0);
537
- }
538
- selectedTargets = chosen;
538
+ selectedTargets = chosen === ALL ? targets : [chosen];
539
539
  }
540
540
  console.log(
541
541
  import_chalk3.default.green(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apiblaze",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Dev tunnel CLI for APIblaze — route localhost projects through your APIblaze endpoints",
5
5
  "keywords": [
6
6
  "apiblaze",