@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.js
CHANGED
|
@@ -25,6 +25,7 @@ var http = require('node:http');
|
|
|
25
25
|
var ws = require('ws');
|
|
26
26
|
var chokidar = require('chokidar');
|
|
27
27
|
var fg = require('fast-glob');
|
|
28
|
+
var dotenv = require('dotenv');
|
|
28
29
|
var promises = require('fs/promises');
|
|
29
30
|
|
|
30
31
|
function _interopNamespaceDefault(e) {
|
|
@@ -57,6 +58,7 @@ var path__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(path$1);
|
|
|
57
58
|
var archiver__namespace = /*#__PURE__*/_interopNamespaceDefault(archiver);
|
|
58
59
|
var http__namespace = /*#__PURE__*/_interopNamespaceDefault(http);
|
|
59
60
|
var chokidar__namespace = /*#__PURE__*/_interopNamespaceDefault(chokidar);
|
|
61
|
+
var dotenv__namespace = /*#__PURE__*/_interopNamespaceDefault(dotenv);
|
|
60
62
|
|
|
61
63
|
var findFiles = async (initialSrcDir, regex) => {
|
|
62
64
|
const filesList = [];
|
|
@@ -21693,6 +21695,7 @@ async function uploadFile(formData, url, token) {
|
|
|
21693
21695
|
}
|
|
21694
21696
|
|
|
21695
21697
|
const minimist = require("minimist");
|
|
21698
|
+
dotenv__namespace.config();
|
|
21696
21699
|
const oraP = import('ora');
|
|
21697
21700
|
let wss;
|
|
21698
21701
|
let changedFiles = [];
|
|
@@ -21944,8 +21947,6 @@ const onClose = async (server, sys, watchers, config) => {
|
|
|
21944
21947
|
process.exit(0);
|
|
21945
21948
|
};
|
|
21946
21949
|
const getPreviewWorkspace = async (startedOra, ctx) => {
|
|
21947
|
-
// login and retry
|
|
21948
|
-
await login();
|
|
21949
21950
|
const token = await getToken();
|
|
21950
21951
|
const params = minimist(process.argv.slice(2));
|
|
21951
21952
|
let primaryWorkspace = params.w || params.workspace;
|
|
@@ -21956,8 +21957,12 @@ const getPreviewWorkspace = async (startedOra, ctx) => {
|
|
|
21956
21957
|
startedOra.start();
|
|
21957
21958
|
}
|
|
21958
21959
|
try {
|
|
21960
|
+
const instanceUrl = process.env.CUBE_CLOUD_ENDPOINT;
|
|
21959
21961
|
const response = await axios.get(`${ctx.pushBaseUrl}/workspace/dev-workspace`, {
|
|
21960
|
-
params: {
|
|
21962
|
+
params: {
|
|
21963
|
+
primaryWorkspace,
|
|
21964
|
+
instanceUrl,
|
|
21965
|
+
},
|
|
21961
21966
|
headers: {
|
|
21962
21967
|
Authorization: `Bearer ${token}`,
|
|
21963
21968
|
},
|
|
@@ -22036,7 +22041,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
|
|
|
22036
22041
|
};
|
|
22037
22042
|
|
|
22038
22043
|
var name = "@embeddable.com/sdk-core";
|
|
22039
|
-
var version = "3.12.
|
|
22044
|
+
var version = "3.12.2";
|
|
22040
22045
|
var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
|
|
22041
22046
|
var keywords = [
|
|
22042
22047
|
"embeddable",
|
|
@@ -22074,13 +22079,14 @@ var engines = {
|
|
|
22074
22079
|
};
|
|
22075
22080
|
var license = "MIT";
|
|
22076
22081
|
var dependencies = {
|
|
22077
|
-
"@embeddable.com/sdk-utils": "0.6.
|
|
22078
|
-
"@inquirer/prompts": "^7.1
|
|
22079
|
-
"@stencil/core": "^4.
|
|
22082
|
+
"@embeddable.com/sdk-utils": "0.6.1",
|
|
22083
|
+
"@inquirer/prompts": "^7.2.1",
|
|
22084
|
+
"@stencil/core": "^4.23.0",
|
|
22080
22085
|
"@swc-node/register": "^1.10.9",
|
|
22081
22086
|
archiver: "^5.3.2",
|
|
22082
|
-
axios: "^1.7.
|
|
22083
|
-
chokidar: "^4.0.
|
|
22087
|
+
axios: "^1.7.9",
|
|
22088
|
+
chokidar: "^4.0.3",
|
|
22089
|
+
dotenv: "^16.4.7",
|
|
22084
22090
|
"fast-glob": "^3.3.2",
|
|
22085
22091
|
finalhandler: "^1.3.1",
|
|
22086
22092
|
"formdata-node": "^6.0.3",
|