@hyperframes/producer 0.9.54 → 0.9.55
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/distributed.js +4 -0
- package/dist/index.js +4 -0
- package/dist/public-server.js +4 -0
- package/package.json +7 -7
package/dist/distributed.js
CHANGED
|
@@ -220,6 +220,8 @@ import { promisify } from "node:util";
|
|
|
220
220
|
import { Readable } from "node:stream";
|
|
221
221
|
import { join as join2, extname, resolve as resolve2, sep as sep2 } from "node:path";
|
|
222
222
|
import { injectScriptsAtHeadStart, injectScriptsIntoHtml } from "@hyperframes/core/compiler";
|
|
223
|
+
import { injectTagsAtHeadStart } from "@hyperframes/core/compiler/html-document";
|
|
224
|
+
import { PREVIEW_FOR_ANOTHER_SITE_META } from "@hyperframes/core/studio-preview-mark";
|
|
223
225
|
import { fpsToNumber } from "@hyperframes/core";
|
|
224
226
|
import { isPrivateFileUnder, isStudioPrivatePath } from "@hyperframes/core/safe-path";
|
|
225
227
|
import { stripSdrPngColourTags } from "@hyperframes/core/compiler/png-colour-tags";
|
|
@@ -822,6 +824,7 @@ var HF_BRIDGE_SCRIPT = `(function() {
|
|
|
822
824
|
if (bridge()) __realClearInterval(iv);
|
|
823
825
|
}, 50);
|
|
824
826
|
})();`;
|
|
827
|
+
var OFFER_NO_FRAMING_SITE_AN_EDITING_PORT = `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`;
|
|
825
828
|
var RENDER_CAPTURE_MODE_SHIM = "globalThis.__HF_RENDER_CAPTURE_MODE = true;";
|
|
826
829
|
function closeFileServerSafely(fileServer, label, log = defaultLogger) {
|
|
827
830
|
try {
|
|
@@ -909,6 +912,7 @@ function createFileServer(options) {
|
|
|
909
912
|
html = injectScriptsAtHeadStart(html, preHeadScripts);
|
|
910
913
|
}
|
|
911
914
|
html = isIndex ? injectScriptsIntoHtml(html, headScripts, bodyScripts, stripEmbeddedRuntime) : html;
|
|
915
|
+
html = injectTagsAtHeadStart(html, OFFER_NO_FRAMING_SITE_AN_EDITING_PORT);
|
|
912
916
|
return c.text(html, 200, { "Content-Type": contentType });
|
|
913
917
|
}
|
|
914
918
|
if (ext === ".png") {
|
package/dist/index.js
CHANGED
|
@@ -91,6 +91,8 @@ import { promisify } from "node:util";
|
|
|
91
91
|
import { Readable } from "node:stream";
|
|
92
92
|
import { join as join2, extname, resolve as resolve2, sep as sep2 } from "node:path";
|
|
93
93
|
import { injectScriptsAtHeadStart, injectScriptsIntoHtml } from "@hyperframes/core/compiler";
|
|
94
|
+
import { injectTagsAtHeadStart } from "@hyperframes/core/compiler/html-document";
|
|
95
|
+
import { PREVIEW_FOR_ANOTHER_SITE_META } from "@hyperframes/core/studio-preview-mark";
|
|
94
96
|
import { fpsToNumber } from "@hyperframes/core";
|
|
95
97
|
import { isPrivateFileUnder, isStudioPrivatePath } from "@hyperframes/core/safe-path";
|
|
96
98
|
import { stripSdrPngColourTags } from "@hyperframes/core/compiler/png-colour-tags";
|
|
@@ -812,6 +814,7 @@ var HF_BRIDGE_SCRIPT = `(function() {
|
|
|
812
814
|
if (bridge()) __realClearInterval(iv);
|
|
813
815
|
}, 50);
|
|
814
816
|
})();`;
|
|
817
|
+
var OFFER_NO_FRAMING_SITE_AN_EDITING_PORT = `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`;
|
|
815
818
|
var RENDER_CAPTURE_MODE_SHIM = "globalThis.__HF_RENDER_CAPTURE_MODE = true;";
|
|
816
819
|
function closeFileServerSafely(fileServer, label, log = defaultLogger) {
|
|
817
820
|
try {
|
|
@@ -899,6 +902,7 @@ function createFileServer(options) {
|
|
|
899
902
|
html = injectScriptsAtHeadStart(html, preHeadScripts);
|
|
900
903
|
}
|
|
901
904
|
html = isIndex ? injectScriptsIntoHtml(html, headScripts, bodyScripts, stripEmbeddedRuntime) : html;
|
|
905
|
+
html = injectTagsAtHeadStart(html, OFFER_NO_FRAMING_SITE_AN_EDITING_PORT);
|
|
902
906
|
return c.text(html, 200, { "Content-Type": contentType });
|
|
903
907
|
}
|
|
904
908
|
if (ext === ".png") {
|
package/dist/public-server.js
CHANGED
|
@@ -110,6 +110,8 @@ import { promisify } from "node:util";
|
|
|
110
110
|
import { Readable } from "node:stream";
|
|
111
111
|
import { join as join2, extname, resolve as resolve2, sep as sep2 } from "node:path";
|
|
112
112
|
import { injectScriptsAtHeadStart, injectScriptsIntoHtml } from "@hyperframes/core/compiler";
|
|
113
|
+
import { injectTagsAtHeadStart } from "@hyperframes/core/compiler/html-document";
|
|
114
|
+
import { PREVIEW_FOR_ANOTHER_SITE_META } from "@hyperframes/core/studio-preview-mark";
|
|
113
115
|
import { fpsToNumber } from "@hyperframes/core";
|
|
114
116
|
import { isPrivateFileUnder, isStudioPrivatePath } from "@hyperframes/core/safe-path";
|
|
115
117
|
import { stripSdrPngColourTags } from "@hyperframes/core/compiler/png-colour-tags";
|
|
@@ -831,6 +833,7 @@ var HF_BRIDGE_SCRIPT = `(function() {
|
|
|
831
833
|
if (bridge()) __realClearInterval(iv);
|
|
832
834
|
}, 50);
|
|
833
835
|
})();`;
|
|
836
|
+
var OFFER_NO_FRAMING_SITE_AN_EDITING_PORT = `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`;
|
|
834
837
|
var RENDER_CAPTURE_MODE_SHIM = "globalThis.__HF_RENDER_CAPTURE_MODE = true;";
|
|
835
838
|
function closeFileServerSafely(fileServer, label, log = defaultLogger) {
|
|
836
839
|
try {
|
|
@@ -918,6 +921,7 @@ function createFileServer(options) {
|
|
|
918
921
|
html = injectScriptsAtHeadStart(html, preHeadScripts);
|
|
919
922
|
}
|
|
920
923
|
html = isIndex ? injectScriptsIntoHtml(html, headScripts, bodyScripts, stripEmbeddedRuntime) : html;
|
|
924
|
+
html = injectTagsAtHeadStart(html, OFFER_NO_FRAMING_SITE_AN_EDITING_PORT);
|
|
921
925
|
return c.text(html, 200, { "Content-Type": contentType });
|
|
922
926
|
}
|
|
923
927
|
if (ext === ".png") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/producer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.55",
|
|
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.13.0",
|
|
37
37
|
"puppeteer-core": "^25.13.0",
|
|
38
|
-
"@hyperframes/
|
|
39
|
-
"@hyperframes/
|
|
40
|
-
"@hyperframes/
|
|
41
|
-
"@hyperframes/
|
|
42
|
-
"@hyperframes/studio-server": "0.9.
|
|
38
|
+
"@hyperframes/engine": "0.9.55",
|
|
39
|
+
"@hyperframes/lint": "0.9.55",
|
|
40
|
+
"@hyperframes/parsers": "0.9.55",
|
|
41
|
+
"@hyperframes/core": "0.9.55",
|
|
42
|
+
"@hyperframes/studio-server": "0.9.55"
|
|
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.12",
|
|
51
|
-
"@hyperframes/aws-lambda": "0.9.
|
|
51
|
+
"@hyperframes/aws-lambda": "0.9.55"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=22"
|