@officexapp/catalogs-cli 0.2.4 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1544,7 +1544,10 @@ function buildPreviewHtml(schema, port) {
1544
1544
 
1545
1545
  // --- Auto-reload via SSE ---
1546
1546
  const evtSource = new EventSource('/__dev_sse');
1547
- evtSource.onmessage = () => window.location.reload();
1547
+ evtSource.onmessage = (e) => {
1548
+ if (e.data === 'connected') return; // ignore initial handshake
1549
+ window.location.reload();
1550
+ };
1548
1551
  evtSource.onerror = () => {};
1549
1552
 
1550
1553
  // --- Mount ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@officexapp/catalogs-cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "CLI for Catalog Kit — upload videos, push catalogs, manage assets",
5
5
  "type": "module",
6
6
  "bin": {