@babylonjsmarket/cli 1.0.3 → 1.0.5
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 +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { homedir } from "os";
|
|
|
20
20
|
import { join } from "path";
|
|
21
21
|
var API_BASE_URL = process.env.BJS_API_URL || "https://babylonjsmarket.com";
|
|
22
22
|
var DEV_API_URL = process.env.BJS_DEV_API_URL || "https://dev.babylonjsmarket.com";
|
|
23
|
-
var USE_DEV = process.env.BJS_ENV
|
|
23
|
+
var USE_DEV = process.env.BJS_ENV === "development";
|
|
24
24
|
var API_URL = USE_DEV ? DEV_API_URL : API_BASE_URL;
|
|
25
25
|
var AUTH_DEVICE_CODE_URL = `${API_URL}/api/auth/device/code`;
|
|
26
26
|
var AUTH_DEVICE_TOKEN_URL = `${API_URL}/api/auth/device/token`;
|
|
@@ -2364,8 +2364,7 @@ var CourseDetailViewer = class extends EventEmitter2 {
|
|
|
2364
2364
|
const alt = imageMatch[1] || "Image";
|
|
2365
2365
|
let url = imageMatch[2];
|
|
2366
2366
|
if (!url.startsWith("http")) {
|
|
2367
|
-
|
|
2368
|
-
url = `${API_URL2}${url.startsWith("/") ? "" : "/"}${url}`;
|
|
2367
|
+
url = `${API_URL}${url.startsWith("/") ? "" : "/"}${url}`;
|
|
2369
2368
|
}
|
|
2370
2369
|
const imageStartLine = result.length;
|
|
2371
2370
|
result.push("");
|