@embeddable.com/sdk-core 3.12.1 → 3.12.2
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/lib/index.esm.js +14 -9
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +15 -9
- package/lib/index.js.map +1 -1
- package/package.json +6 -5
- package/src/dev.ts +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-core",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.2",
|
|
4
4
|
"description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embeddable",
|
|
@@ -39,12 +39,13 @@
|
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@embeddable.com/sdk-utils": "0.6.1",
|
|
42
|
-
"@inquirer/prompts": "^7.1
|
|
43
|
-
"@stencil/core": "^4.
|
|
42
|
+
"@inquirer/prompts": "^7.2.1",
|
|
43
|
+
"@stencil/core": "^4.23.0",
|
|
44
44
|
"@swc-node/register": "^1.10.9",
|
|
45
45
|
"archiver": "^5.3.2",
|
|
46
|
-
"axios": "^1.7.
|
|
47
|
-
"chokidar": "^4.0.
|
|
46
|
+
"axios": "^1.7.9",
|
|
47
|
+
"chokidar": "^4.0.3",
|
|
48
|
+
"dotenv": "^16.4.7",
|
|
48
49
|
"fast-glob": "^3.3.2",
|
|
49
50
|
"finalhandler": "^1.3.1",
|
|
50
51
|
"formdata-node": "^6.0.3",
|
package/src/dev.ts
CHANGED
|
@@ -31,6 +31,9 @@ import * as fs from "fs";
|
|
|
31
31
|
const minimist = require("minimist");
|
|
32
32
|
import { initLogger, logError } from "./logger";
|
|
33
33
|
import fg from "fast-glob";
|
|
34
|
+
import * as dotenv from "dotenv";
|
|
35
|
+
|
|
36
|
+
dotenv.config();
|
|
34
37
|
|
|
35
38
|
const oraP = import("ora");
|
|
36
39
|
let wss: WSServer;
|
|
@@ -379,10 +382,14 @@ const getPreviewWorkspace = async (
|
|
|
379
382
|
}
|
|
380
383
|
|
|
381
384
|
try {
|
|
385
|
+
const instanceUrl = process.env.CUBE_CLOUD_ENDPOINT;
|
|
382
386
|
const response = await axios.get(
|
|
383
387
|
`${ctx.pushBaseUrl}/workspace/dev-workspace`,
|
|
384
388
|
{
|
|
385
|
-
params: {
|
|
389
|
+
params: {
|
|
390
|
+
primaryWorkspace,
|
|
391
|
+
instanceUrl,
|
|
392
|
+
},
|
|
386
393
|
headers: {
|
|
387
394
|
Authorization: `Bearer ${token}`,
|
|
388
395
|
},
|