apiblaze 0.4.12 → 0.4.13
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 +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var import_commander = require("commander");
|
|
|
28
28
|
var import_chalk28 = __toESM(require("chalk"));
|
|
29
29
|
|
|
30
30
|
// package.json
|
|
31
|
-
var version = "0.4.
|
|
31
|
+
var version = "0.4.13";
|
|
32
32
|
|
|
33
33
|
// src/types.ts
|
|
34
34
|
var ApiError = class extends Error {
|
|
@@ -2179,9 +2179,8 @@ var DASHBOARD_BASE4 = process.env.APIBLAZE_DASHBOARD_BASE || "https://dashboard.
|
|
|
2179
2179
|
async function runExport(projectArg, versionArg, opts) {
|
|
2180
2180
|
const token = getAccessToken();
|
|
2181
2181
|
if (!token) throw new Error("Not authenticated. Run `apiblaze login` first.");
|
|
2182
|
-
const
|
|
2183
|
-
const match =
|
|
2184
|
-
if (!match) throw new Error(`Project "${projectArg}" not found. Run \`apiblaze projects\`.`);
|
|
2182
|
+
const { teamId } = await resolveTeam(opts.team);
|
|
2183
|
+
const match = await resolveProject(teamId, projectArg, versionArg);
|
|
2185
2184
|
const projectId = match.projectId;
|
|
2186
2185
|
const version2 = versionArg || match.apiVersion;
|
|
2187
2186
|
const target = opts.kong ? "kong" : "data";
|