@embeddable.com/sdk-core 3.12.5-next.0 → 3.12.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/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.js
CHANGED
|
@@ -21793,7 +21793,6 @@ var dev = async () => {
|
|
|
21793
21793
|
res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
|
|
21794
21794
|
res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
|
|
21795
21795
|
if (request.method === "OPTIONS") {
|
|
21796
|
-
// Respond to OPTIONS requests with just the CORS headers and a 200 status code
|
|
21797
21796
|
res.writeHead(200);
|
|
21798
21797
|
res.end();
|
|
21799
21798
|
return;
|
|
@@ -21810,7 +21809,21 @@ var dev = async () => {
|
|
|
21810
21809
|
serve(request, res, done);
|
|
21811
21810
|
});
|
|
21812
21811
|
wss = new ws.WebSocketServer({ server });
|
|
21812
|
+
wss.on("connection", (ws) => {
|
|
21813
|
+
console.log("🔌 New WebSocket connection established");
|
|
21814
|
+
ws.on("error", (error) => {
|
|
21815
|
+
console.error("WebSocket error:", error);
|
|
21816
|
+
});
|
|
21817
|
+
ws.on("close", () => {
|
|
21818
|
+
console.log("WebSocket connection closed");
|
|
21819
|
+
});
|
|
21820
|
+
});
|
|
21821
|
+
wss.on("error", (error) => {
|
|
21822
|
+
console.error("WebSocket server error:", error);
|
|
21823
|
+
});
|
|
21813
21824
|
server.listen(SERVER_PORT, async () => {
|
|
21825
|
+
console.log(`\n�� Dev server running and ready to connect`);
|
|
21826
|
+
console.log("ℹ️ Your app will automatically connect to the dev server when you open the workspace");
|
|
21814
21827
|
const watchers = [];
|
|
21815
21828
|
if (sys === null || sys === void 0 ? void 0 : sys.onProcessInterrupt) {
|
|
21816
21829
|
sys.onProcessInterrupt(async () => await onClose(server, sys, watchers, config));
|
|
@@ -22083,7 +22096,7 @@ var defineConfig = ({ plugins, region = "legacy-US", pushBaseUrl, audienceUrl, a
|
|
|
22083
22096
|
};
|
|
22084
22097
|
|
|
22085
22098
|
var name = "@embeddable.com/sdk-core";
|
|
22086
|
-
var version = "3.12.
|
|
22099
|
+
var version = "3.12.4";
|
|
22087
22100
|
var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
|
|
22088
22101
|
var keywords = [
|
|
22089
22102
|
"embeddable",
|
|
@@ -22111,7 +22124,8 @@ var files = [
|
|
|
22111
22124
|
"lib/",
|
|
22112
22125
|
"loader/",
|
|
22113
22126
|
"templates/",
|
|
22114
|
-
"configs/"
|
|
22127
|
+
"configs/",
|
|
22128
|
+
"certs"
|
|
22115
22129
|
];
|
|
22116
22130
|
var bin = {
|
|
22117
22131
|
embeddable: "bin/embeddable"
|