@hyperframes/producer 0.8.208 → 0.8.209

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.
@@ -794,7 +794,7 @@ function createFileServer(options) {
794
794
  if (!streamOwnsFd) closeSync(fd);
795
795
  }
796
796
  });
797
- return new Promise((resolve10) => {
797
+ return new Promise((resolve10, reject) => {
798
798
  const connections = /* @__PURE__ */ new Set();
799
799
  const server = serve({ fetch: app.fetch, port, hostname: "127.0.0.1" }, (info) => {
800
800
  resolve10({
@@ -814,6 +814,7 @@ function createFileServer(options) {
814
814
  connections.add(socket);
815
815
  socket.on("close", () => connections.delete(socket));
816
816
  });
817
+ server.on("error", reject);
817
818
  });
818
819
  }
819
820
 
@@ -1858,7 +1859,7 @@ import { gsapCdnDist, normalizeGsapBaseUrl } from "@hyperframes/core/gsap-cdn";
1858
1859
  import {
1859
1860
  assignBundledRuntimeCompositionIds,
1860
1861
  assignMediaRenderIds,
1861
- buildVariablesByCompScript,
1862
+ emitVariablesByCompScript,
1862
1863
  inlineSubCompositions as inlineSubCompositionsShared,
1863
1864
  ensureExternalLinkTag,
1864
1865
  ensureExternalScriptTag,
@@ -3430,9 +3431,9 @@ function inlineSubCompositions(html, subCompositions, projectDir, variableOverri
3430
3431
  }
3431
3432
  }
3432
3433
  }
3433
- const variablesByCompScript = buildVariablesByCompScript(result.variablesByComp);
3434
+ emitVariablesByCompScript(document2, result.variablesByComp);
3434
3435
  if (body) {
3435
- let pending = variablesByCompScript ? [variablesByCompScript] : [];
3436
+ let pending = [];
3436
3437
  const flushInline = () => {
3437
3438
  if (!pending.length) return;
3438
3439
  const joined = pending.join("\n;\n");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "0.1.0",
3
3
  "buildId": "dev",
4
- "sha256": "e7380e2810c1db76b94231462d6756bbd8fd7047ab2014b7428a26dc7105b099",
4
+ "sha256": "d294fc169f5c0e16d5272a816ae4f0fd6e78a652c61fd6939c882c9bee81efeb",
5
5
  "artifacts": {
6
6
  "iife": "hyperframe.runtime.iife.js",
7
7
  "esm": "hyperframe.runtime.mjs"