apiblaze 0.3.5 → 0.3.6
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/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var import_commander = require("commander");
|
|
|
28
28
|
var import_chalk15 = __toESM(require("chalk"));
|
|
29
29
|
|
|
30
30
|
// package.json
|
|
31
|
-
var version = "0.3.
|
|
31
|
+
var version = "0.3.6";
|
|
32
32
|
|
|
33
33
|
// src/types.ts
|
|
34
34
|
var ApiError = class extends Error {
|
|
@@ -852,8 +852,9 @@ function printTunnelEndpoints(restore, targets) {
|
|
|
852
852
|
const label = targets.find((t) => t.projectId === r.projectId)?.projectName ?? r.projectId;
|
|
853
853
|
console.log(`
|
|
854
854
|
${import_chalk4.default.bold(label)}`);
|
|
855
|
-
const
|
|
856
|
-
|
|
855
|
+
const internalEnvs = Object.keys(r.environments ?? {}).filter((e) => isInternalTarget(r.environments[e]?.target));
|
|
856
|
+
const envs = internalEnvs.includes("dev") ? ["dev"] : internalEnvs.length ? internalEnvs : ["dev"];
|
|
857
|
+
for (const env of envs) {
|
|
857
858
|
console.log(` ${import_chalk4.default.dim("API: ")} ${import_chalk4.default.cyan(`https://${r.projectId}.apiblaze.com/${r.apiVersion}/${env}`)}`);
|
|
858
859
|
}
|
|
859
860
|
if (r.tenant) {
|