@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/lib/index.esm.js
CHANGED
|
@@ -28,6 +28,7 @@ import * as http from 'node:http';
|
|
|
28
28
|
import { WebSocketServer } from 'ws';
|
|
29
29
|
import * as chokidar from 'chokidar';
|
|
30
30
|
import fg from 'fast-glob';
|
|
31
|
+
import * as dotenv from 'dotenv';
|
|
31
32
|
import { stat } from 'fs/promises';
|
|
32
33
|
|
|
33
34
|
var findFiles = async (initialSrcDir, regex) => {
|
|
@@ -21665,6 +21666,7 @@ async function uploadFile(formData, url, token) {
|
|
|
21665
21666
|
}
|
|
21666
21667
|
|
|
21667
21668
|
const minimist = require("minimist");
|
|
21669
|
+
dotenv.config();
|
|
21668
21670
|
const oraP = import('ora');
|
|
21669
21671
|
let wss;
|
|
21670
21672
|
let changedFiles = [];
|
|
@@ -21916,8 +21918,6 @@ const onClose = async (server, sys, watchers, config) => {
|
|
|
21916
21918
|
process.exit(0);
|
|
21917
21919
|
};
|
|
21918
21920
|
const getPreviewWorkspace = async (startedOra, ctx) => {
|
|
21919
|
-
// login and retry
|
|
21920
|
-
await login();
|
|
21921
21921
|
const token = await getToken();
|
|
21922
21922
|
const params = minimist(process.argv.slice(2));
|
|
21923
21923
|
let primaryWorkspace = params.w || params.workspace;
|
|
@@ -21928,8 +21928,12 @@ const getPreviewWorkspace = async (startedOra, ctx) => {
|
|
|
21928
21928
|
startedOra.start();
|
|
21929
21929
|
}
|
|
21930
21930
|
try {
|
|
21931
|
+
const instanceUrl = process.env.CUBE_CLOUD_ENDPOINT;
|
|
21931
21932
|
const response = await axios.get(`${ctx.pushBaseUrl}/workspace/dev-workspace`, {
|
|
21932
|
-
params: {
|
|
21933
|
+
params: {
|
|
21934
|
+
primaryWorkspace,
|
|
21935
|
+
instanceUrl,
|
|
21936
|
+
},
|
|
21933
21937
|
headers: {
|
|
21934
21938
|
Authorization: `Bearer ${token}`,
|
|
21935
21939
|
},
|
|
@@ -22008,7 +22012,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
|
|
|
22008
22012
|
};
|
|
22009
22013
|
|
|
22010
22014
|
var name = "@embeddable.com/sdk-core";
|
|
22011
|
-
var version = "3.12.
|
|
22015
|
+
var version = "3.12.2";
|
|
22012
22016
|
var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
|
|
22013
22017
|
var keywords = [
|
|
22014
22018
|
"embeddable",
|
|
@@ -22046,13 +22050,14 @@ var engines = {
|
|
|
22046
22050
|
};
|
|
22047
22051
|
var license = "MIT";
|
|
22048
22052
|
var dependencies = {
|
|
22049
|
-
"@embeddable.com/sdk-utils": "0.6.
|
|
22050
|
-
"@inquirer/prompts": "^7.1
|
|
22051
|
-
"@stencil/core": "^4.
|
|
22053
|
+
"@embeddable.com/sdk-utils": "0.6.1",
|
|
22054
|
+
"@inquirer/prompts": "^7.2.1",
|
|
22055
|
+
"@stencil/core": "^4.23.0",
|
|
22052
22056
|
"@swc-node/register": "^1.10.9",
|
|
22053
22057
|
archiver: "^5.3.2",
|
|
22054
|
-
axios: "^1.7.
|
|
22055
|
-
chokidar: "^4.0.
|
|
22058
|
+
axios: "^1.7.9",
|
|
22059
|
+
chokidar: "^4.0.3",
|
|
22060
|
+
dotenv: "^16.4.7",
|
|
22056
22061
|
"fast-glob": "^3.3.2",
|
|
22057
22062
|
finalhandler: "^1.3.1",
|
|
22058
22063
|
"formdata-node": "^6.0.3",
|