@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.
package/dist/index.js CHANGED
@@ -775,7 +775,7 @@ function createFileServer(options) {
775
775
  if (!streamOwnsFd) closeSync(fd);
776
776
  }
777
777
  });
778
- return new Promise((resolve13) => {
778
+ return new Promise((resolve13, reject) => {
779
779
  const connections = /* @__PURE__ */ new Set();
780
780
  const server = serve({ fetch: app.fetch, port, hostname: "127.0.0.1" }, (info) => {
781
781
  resolve13({
@@ -795,6 +795,7 @@ function createFileServer(options) {
795
795
  connections.add(socket);
796
796
  socket.on("close", () => connections.delete(socket));
797
797
  });
798
+ server.on("error", reject);
798
799
  });
799
800
  }
800
801
 
@@ -5668,7 +5669,7 @@ import { gsapCdnDist, normalizeGsapBaseUrl } from "@hyperframes/core/gsap-cdn";
5668
5669
  import {
5669
5670
  assignBundledRuntimeCompositionIds,
5670
5671
  assignMediaRenderIds,
5671
- buildVariablesByCompScript,
5672
+ emitVariablesByCompScript,
5672
5673
  inlineSubCompositions as inlineSubCompositionsShared,
5673
5674
  ensureExternalLinkTag,
5674
5675
  ensureExternalScriptTag,
@@ -7240,9 +7241,9 @@ function inlineSubCompositions(html, subCompositions, projectDir, variableOverri
7240
7241
  }
7241
7242
  }
7242
7243
  }
7243
- const variablesByCompScript = buildVariablesByCompScript(result.variablesByComp);
7244
+ emitVariablesByCompScript(document2, result.variablesByComp);
7244
7245
  if (body) {
7245
- let pending = variablesByCompScript ? [variablesByCompScript] : [];
7246
+ let pending = [];
7246
7247
  const flushInline = () => {
7247
7248
  if (!pending.length) return;
7248
7249
  const joined = pending.join("\n;\n");
@@ -796,7 +796,7 @@ function createFileServer(options) {
796
796
  if (!streamOwnsFd) closeSync(fd);
797
797
  }
798
798
  });
799
- return new Promise((resolve11) => {
799
+ return new Promise((resolve11, reject) => {
800
800
  const connections = /* @__PURE__ */ new Set();
801
801
  const server = serve({ fetch: app.fetch, port, hostname: "127.0.0.1" }, (info) => {
802
802
  resolve11({
@@ -816,6 +816,7 @@ function createFileServer(options) {
816
816
  connections.add(socket);
817
817
  socket.on("close", () => connections.delete(socket));
818
818
  });
819
+ server.on("error", reject);
819
820
  });
820
821
  }
821
822
 
@@ -5685,7 +5686,7 @@ import { gsapCdnDist, normalizeGsapBaseUrl } from "@hyperframes/core/gsap-cdn";
5685
5686
  import {
5686
5687
  assignBundledRuntimeCompositionIds,
5687
5688
  assignMediaRenderIds,
5688
- buildVariablesByCompScript,
5689
+ emitVariablesByCompScript,
5689
5690
  inlineSubCompositions as inlineSubCompositionsShared,
5690
5691
  ensureExternalLinkTag,
5691
5692
  ensureExternalScriptTag,
@@ -7257,9 +7258,9 @@ function inlineSubCompositions(html, subCompositions, projectDir, variableOverri
7257
7258
  }
7258
7259
  }
7259
7260
  }
7260
- const variablesByCompScript = buildVariablesByCompScript(result.variablesByComp);
7261
+ emitVariablesByCompScript(document2, result.variablesByComp);
7261
7262
  if (body) {
7262
- let pending = variablesByCompScript ? [variablesByCompScript] : [];
7263
+ let pending = [];
7263
7264
  const flushInline = () => {
7264
7265
  if (!pending.length) return;
7265
7266
  const joined = pending.join("\n;\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.8.208",
3
+ "version": "0.8.209",
4
4
  "description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,11 +35,11 @@
35
35
  "postcss": "^8.4.0",
36
36
  "puppeteer": "^25.2.1",
37
37
  "puppeteer-core": "^25.2.1",
38
- "@hyperframes/core": "0.8.208",
39
- "@hyperframes/lint": "0.8.208",
40
- "@hyperframes/parsers": "0.8.208",
41
- "@hyperframes/studio-server": "0.8.208",
42
- "@hyperframes/engine": "0.8.208"
38
+ "@hyperframes/core": "0.8.209",
39
+ "@hyperframes/engine": "0.8.209",
40
+ "@hyperframes/lint": "0.8.209",
41
+ "@hyperframes/parsers": "0.8.209",
42
+ "@hyperframes/studio-server": "0.8.209"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^25.0.10",
@@ -48,7 +48,7 @@
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "^5.7.2",
50
50
  "vitest": "^4.1.11",
51
- "@hyperframes/aws-lambda": "0.8.208"
51
+ "@hyperframes/aws-lambda": "0.8.209"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22"