@embeddable.com/sdk-core 3.12.5-next.0 → 3.12.6
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 +17 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +17 -3
- package/lib/index.js.map +1 -1
- package/lib/src/build.d.ts +2 -0
- package/lib/src/build.test.d.ts +1 -0
- package/lib/src/buildTypes.d.ts +4 -0
- package/lib/src/buildTypes.test.d.ts +1 -0
- package/lib/src/cleanup.d.ts +16 -0
- package/lib/src/cleanup.test.d.ts +1 -0
- package/lib/src/createContext.d.ts +23 -0
- package/lib/src/credentials.d.ts +2 -0
- package/lib/src/defineConfig.d.ts +65 -0
- package/lib/src/dev.d.ts +2 -0
- package/lib/src/generate.d.ts +2 -0
- package/lib/src/globalCleanup.d.ts +2 -0
- package/lib/src/index.d.ts +5 -0
- package/lib/src/login.d.ts +4 -0
- package/lib/src/prepare.d.ts +3 -0
- package/lib/src/provideConfig.d.ts +2 -0
- package/lib/src/provideConfig.test.d.ts +1 -0
- package/lib/src/push.d.ts +26 -0
- package/lib/src/utils.d.ts +25 -0
- package/lib/src/utils.test.d.ts +1 -0
- package/lib/src/validate.d.ts +8 -0
- package/lib/src/validate.test.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -21764,7 +21764,6 @@ var dev = async () => {
|
|
|
21764
21764
|
res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
|
|
21765
21765
|
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
|
|
21766
21766
|
if (request.method === "OPTIONS") {
|
|
21767
|
-
// Respond to OPTIONS requests with just the CORS headers and a 200 status code
|
|
21768
21767
|
res.writeHead(200);
|
|
21769
21768
|
res.end();
|
|
21770
21769
|
return;
|
|
@@ -21781,7 +21780,21 @@ var dev = async () => {
|
|
|
21781
21780
|
serve(request, res, done);
|
|
21782
21781
|
});
|
|
21783
21782
|
wss = new WebSocketServer({ server });
|
|
21783
|
+
wss.on("connection", (ws) => {
|
|
21784
|
+
console.log("🔌 New WebSocket connection established");
|
|
21785
|
+
ws.on("error", (error) => {
|
|
21786
|
+
console.error("WebSocket error:", error);
|
|
21787
|
+
});
|
|
21788
|
+
ws.on("close", () => {
|
|
21789
|
+
console.log("WebSocket connection closed");
|
|
21790
|
+
});
|
|
21791
|
+
});
|
|
21792
|
+
wss.on("error", (error) => {
|
|
21793
|
+
console.error("WebSocket server error:", error);
|
|
21794
|
+
});
|
|
21784
21795
|
server.listen(SERVER_PORT, async () => {
|
|
21796
|
+
console.log(`\n�� Dev server running and ready to connect`);
|
|
21797
|
+
console.log("ℹ️ Your app will automatically connect to the dev server when you open the workspace");
|
|
21785
21798
|
const watchers = [];
|
|
21786
21799
|
if (sys === null || sys === void 0 ? void 0 : sys.onProcessInterrupt) {
|
|
21787
21800
|
sys.onProcessInterrupt(async () => await onClose(server, sys, watchers, config));
|
|
@@ -22054,7 +22067,7 @@ var defineConfig = ({ plugins, region = "legacy-US", pushBaseUrl, audienceUrl, a
|
|
|
22054
22067
|
};
|
|
22055
22068
|
|
|
22056
22069
|
var name = "@embeddable.com/sdk-core";
|
|
22057
|
-
var version = "3.12.
|
|
22070
|
+
var version = "3.12.4";
|
|
22058
22071
|
var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
|
|
22059
22072
|
var keywords = [
|
|
22060
22073
|
"embeddable",
|
|
@@ -22082,7 +22095,8 @@ var files = [
|
|
|
22082
22095
|
"lib/",
|
|
22083
22096
|
"loader/",
|
|
22084
22097
|
"templates/",
|
|
22085
|
-
"configs/"
|
|
22098
|
+
"configs/",
|
|
22099
|
+
"certs"
|
|
22086
22100
|
];
|
|
22087
22101
|
var bin = {
|
|
22088
22102
|
embeddable: "bin/embeddable"
|