@hyperframes/producer 0.9.103 → 0.9.104
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
|
@@ -7368,6 +7368,7 @@ import { createHash as createHash6 } from "node:crypto";
|
|
|
7368
7368
|
import { createReadStream as createReadStream3, existsSync as existsSync11, mkdirSync as mkdirSync11, readFileSync as readFileSync9, statSync as statSync8 } from "fs";
|
|
7369
7369
|
import { join as join21, dirname as dirname10, resolve as resolve8, basename as basename6, relative as relative3, sep as sep4 } from "path";
|
|
7370
7370
|
import { parseHTML as parseHTML5 } from "@hyperframes/parsers/linkedom";
|
|
7371
|
+
import { compositionRootSize } from "@hyperframes/parsers";
|
|
7371
7372
|
|
|
7372
7373
|
// src/services/bundledScripts.ts
|
|
7373
7374
|
import { existsSync as existsSync8, readFileSync as readFileSync6 } from "node:fs";
|
|
@@ -10342,8 +10343,7 @@ async function compileWithAssets(projectDir, htmlPath, downloadDir, options, ass
|
|
|
10342
10343
|
}
|
|
10343
10344
|
const { document: document2 } = parseHTML5(html);
|
|
10344
10345
|
const rootEl = document2.querySelector("[data-composition-id]");
|
|
10345
|
-
const width
|
|
10346
|
-
const height = rootEl ? parseInt(rootEl.getAttribute("data-height") || "1920", 10) : 1920;
|
|
10346
|
+
const { width, height } = compositionRootSize(rootEl);
|
|
10347
10347
|
const staticDuration = rootEl ? parseStrictFiniteTimingNumber(rootEl.getAttribute("data-duration")) ?? parseStrictFiniteTimingNumber(rootEl.getAttribute("data-composition-duration")) ?? 0 : 0;
|
|
10348
10348
|
return {
|
|
10349
10349
|
html,
|
package/dist/public-server.js
CHANGED
|
@@ -7390,6 +7390,7 @@ import { createHash as createHash6 } from "node:crypto";
|
|
|
7390
7390
|
import { createReadStream as createReadStream3, existsSync as existsSync11, mkdirSync as mkdirSync11, readFileSync as readFileSync9, statSync as statSync8 } from "fs";
|
|
7391
7391
|
import { join as join21, dirname as dirname10, resolve as resolve8, basename as basename6, relative as relative3, sep as sep4 } from "path";
|
|
7392
7392
|
import { parseHTML as parseHTML5 } from "@hyperframes/parsers/linkedom";
|
|
7393
|
+
import { compositionRootSize } from "@hyperframes/parsers";
|
|
7393
7394
|
|
|
7394
7395
|
// src/services/bundledScripts.ts
|
|
7395
7396
|
import { existsSync as existsSync8, readFileSync as readFileSync6 } from "node:fs";
|
|
@@ -10361,8 +10362,7 @@ async function compileWithAssets(projectDir, htmlPath, downloadDir, options, ass
|
|
|
10361
10362
|
}
|
|
10362
10363
|
const { document: document2 } = parseHTML5(html);
|
|
10363
10364
|
const rootEl = document2.querySelector("[data-composition-id]");
|
|
10364
|
-
const width
|
|
10365
|
-
const height = rootEl ? parseInt(rootEl.getAttribute("data-height") || "1920", 10) : 1920;
|
|
10365
|
+
const { width, height } = compositionRootSize(rootEl);
|
|
10366
10366
|
const staticDuration = rootEl ? parseStrictFiniteTimingNumber(rootEl.getAttribute("data-duration")) ?? parseStrictFiniteTimingNumber(rootEl.getAttribute("data-composition-duration")) ?? 0 : 0;
|
|
10367
10367
|
return {
|
|
10368
10368
|
html,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.104",
|
|
4
4
|
"description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"postcss": "^8.4.0",
|
|
36
36
|
"puppeteer": "~25.13.0",
|
|
37
37
|
"puppeteer-core": "^25.13.0",
|
|
38
|
-
"@hyperframes/
|
|
39
|
-
"@hyperframes/
|
|
40
|
-
"@hyperframes/lint": "0.9.
|
|
41
|
-
"@hyperframes/parsers": "0.9.
|
|
42
|
-
"@hyperframes/
|
|
43
|
-
"@hyperframes/
|
|
38
|
+
"@hyperframes/core": "0.9.104",
|
|
39
|
+
"@hyperframes/engine": "0.9.104",
|
|
40
|
+
"@hyperframes/lint": "0.9.104",
|
|
41
|
+
"@hyperframes/parsers": "0.9.104",
|
|
42
|
+
"@hyperframes/share": "0.9.104",
|
|
43
|
+
"@hyperframes/studio-server": "0.9.104"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.0.10",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tsx": "^4.21.0",
|
|
50
50
|
"typescript": "^5.7.2",
|
|
51
51
|
"vitest": "^4.1.12",
|
|
52
|
-
"@hyperframes/aws-lambda": "0.9.
|
|
52
|
+
"@hyperframes/aws-lambda": "0.9.104"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=22"
|