@lumerahq/cli 0.18.9 → 0.18.10
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/{chunk-P44XM3FB.js → chunk-NJWVSQEL.js} +1 -1
- package/dist/{chunk-VWC6RXDA.js → chunk-PPSLI2ZI.js} +9 -1
- package/dist/{deps-AWWIUASS.js → deps-V24GK3KJ.js} +2 -2
- package/dist/{dev-VONB7YDG.js → dev-B7K2DXCM.js} +1 -1
- package/dist/index.js +12 -12
- package/dist/{init-ZKG24YZH.js → init-PSYCZETD.js} +1 -1
- package/dist/{register-FRH5EDMD.js → register-NYC5WVGZ.js} +1 -1
- package/dist/{resources-DQBSDWYG.js → resources-SMMFWICR.js} +2 -2
- package/dist/{run-RT6ZCUWC.js → run-SQM3OWD2.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getCredentials,
|
|
2
3
|
getToken,
|
|
3
4
|
init_auth
|
|
4
5
|
} from "./chunk-ZH3NVYEQ.js";
|
|
@@ -31,7 +32,14 @@ var ApiClient = class {
|
|
|
31
32
|
constructor(token, baseUrl, projectExternalId) {
|
|
32
33
|
this.token = token || getToken();
|
|
33
34
|
this.projectExternalId = projectExternalId;
|
|
34
|
-
let base = baseUrl || process.env.LUMERA_BASE_URL ||
|
|
35
|
+
let base = (baseUrl || process.env.LUMERA_BASE_URL || process.env.LUMERA_API_URL || "").trim();
|
|
36
|
+
if (!base) {
|
|
37
|
+
const creds = getCredentials();
|
|
38
|
+
base = (creds?.base_url || "").trim();
|
|
39
|
+
}
|
|
40
|
+
if (!base) {
|
|
41
|
+
base = "https://app.lumerahq.com";
|
|
42
|
+
}
|
|
35
43
|
base = base.replace(/\/$/, "");
|
|
36
44
|
if (base.endsWith("/api")) {
|
|
37
45
|
base = base.slice(0, -4);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deps,
|
|
3
3
|
syncDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NJWVSQEL.js";
|
|
5
5
|
import "./chunk-2CR762KB.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-PPSLI2ZI.js";
|
|
7
7
|
import "./chunk-ZH3NVYEQ.js";
|
|
8
8
|
import "./chunk-FJFIWC7G.js";
|
|
9
9
|
import "./chunk-PNKVD2UK.js";
|
package/dist/index.js
CHANGED
|
@@ -219,39 +219,39 @@ async function main() {
|
|
|
219
219
|
switch (command) {
|
|
220
220
|
// Resource commands
|
|
221
221
|
case "plan":
|
|
222
|
-
await import("./resources-
|
|
222
|
+
await import("./resources-SMMFWICR.js").then((m) => m.plan(args.slice(1)));
|
|
223
223
|
break;
|
|
224
224
|
case "apply":
|
|
225
|
-
await import("./resources-
|
|
225
|
+
await import("./resources-SMMFWICR.js").then((m) => m.apply(args.slice(1)));
|
|
226
226
|
break;
|
|
227
227
|
case "pull":
|
|
228
|
-
await import("./resources-
|
|
228
|
+
await import("./resources-SMMFWICR.js").then((m) => m.pull(args.slice(1)));
|
|
229
229
|
break;
|
|
230
230
|
case "destroy":
|
|
231
|
-
await import("./resources-
|
|
231
|
+
await import("./resources-SMMFWICR.js").then((m) => m.destroy(args.slice(1)));
|
|
232
232
|
break;
|
|
233
233
|
case "list":
|
|
234
|
-
await import("./resources-
|
|
234
|
+
await import("./resources-SMMFWICR.js").then((m) => m.list(args.slice(1)));
|
|
235
235
|
break;
|
|
236
236
|
case "show":
|
|
237
|
-
await import("./resources-
|
|
237
|
+
await import("./resources-SMMFWICR.js").then((m) => m.show(args.slice(1)));
|
|
238
238
|
break;
|
|
239
239
|
case "diff":
|
|
240
|
-
await import("./resources-
|
|
240
|
+
await import("./resources-SMMFWICR.js").then((m) => m.diff(args.slice(1)));
|
|
241
241
|
break;
|
|
242
242
|
// Development
|
|
243
243
|
case "dev":
|
|
244
|
-
await import("./dev-
|
|
244
|
+
await import("./dev-B7K2DXCM.js").then((m) => m.dev(args.slice(1)));
|
|
245
245
|
break;
|
|
246
246
|
case "run":
|
|
247
|
-
await import("./run-
|
|
247
|
+
await import("./run-SQM3OWD2.js").then((m) => m.run(args.slice(1)));
|
|
248
248
|
break;
|
|
249
249
|
// Project
|
|
250
250
|
case "init":
|
|
251
|
-
await import("./init-
|
|
251
|
+
await import("./init-PSYCZETD.js").then((m) => m.init(args.slice(1)));
|
|
252
252
|
break;
|
|
253
253
|
case "register":
|
|
254
|
-
await import("./register-
|
|
254
|
+
await import("./register-NYC5WVGZ.js").then((m) => m.register(args.slice(1)));
|
|
255
255
|
break;
|
|
256
256
|
case "templates":
|
|
257
257
|
await import("./templates-M3RDNDDY.js").then((m) => m.templates(subcommand, args.slice(2)));
|
|
@@ -268,7 +268,7 @@ async function main() {
|
|
|
268
268
|
break;
|
|
269
269
|
// Dependencies
|
|
270
270
|
case "deps":
|
|
271
|
-
await import("./deps-
|
|
271
|
+
await import("./deps-V24GK3KJ.js").then((m) => m.deps(args.slice(1)));
|
|
272
272
|
break;
|
|
273
273
|
// Auth
|
|
274
274
|
case "login":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
syncDeps
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NJWVSQEL.js";
|
|
4
4
|
import {
|
|
5
5
|
deploy
|
|
6
6
|
} from "./chunk-5EBNGMIE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-2CR762KB.js";
|
|
10
10
|
import {
|
|
11
11
|
createApiClient
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PPSLI2ZI.js";
|
|
13
13
|
import {
|
|
14
14
|
findProjectRoot,
|
|
15
15
|
getApiUrl,
|