@hyperframes/studio-server 0.8.156 → 0.8.158
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/{chunk-6RICWA3B.js → chunk-47NKWXAA.js} +2 -2
- package/dist/{chunk-FKJBNFWA.js → chunk-EZMTFRUX.js} +1 -0
- package/dist/{chunk-RHYH6YOX.js → chunk-KJZ6WB6Z.js} +2 -2
- package/dist/{chunk-JTPV2T3F.js → chunk-XRUVTG5G.js} +1 -1
- package/dist/helpers/hfIdPersist.js +1 -1
- package/dist/helpers/mediaCodecMap.js +1 -1
- package/dist/helpers/mediaProxyPreview.js +3 -3
- package/dist/helpers/proxyTranscoder.js +2 -2
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-K56J3CL7.js";
|
|
6
6
|
|
|
7
7
|
// src/helpers/hfIdPersist.ts
|
|
8
|
-
import {
|
|
8
|
+
import { stampHfIdsInPlace } from "@hyperframes/parsers/hf-ids";
|
|
9
9
|
import { createHash } from "crypto";
|
|
10
10
|
import { closeSync, constants, fstatSync, openSync, readFileSync, writeFileSync } from "fs";
|
|
11
11
|
import { dirname, join } from "path";
|
|
@@ -72,7 +72,7 @@ function stampFileHfIds(filePath) {
|
|
|
72
72
|
try {
|
|
73
73
|
if (!fstatSync(fd).isFile()) return null;
|
|
74
74
|
const html = readFileSync(fd, "utf-8");
|
|
75
|
-
const normalized =
|
|
75
|
+
const normalized = stampHfIdsInPlace(html);
|
|
76
76
|
const idsBefore = (html.match(/\bdata-hf-id=/g) ?? []).length;
|
|
77
77
|
const idsAfter = (normalized.match(/\bdata-hf-id=/g) ?? []).length;
|
|
78
78
|
if (writable && idsAfter > idsBefore) {
|
|
@@ -161,6 +161,7 @@ var BROWSER_HOSTILE_CODECS = {
|
|
|
161
161
|
// Windows/Linux and Firefox everywhere need the substitute.
|
|
162
162
|
hevc: { representativeMime: 'video/mp4; codecs="hvc1.1.6.L120.B0"', prewarm: true },
|
|
163
163
|
prores: { representativeMime: null, prewarm: true },
|
|
164
|
+
theora: { representativeMime: 'video/ogg; codecs="theora"', prewarm: true },
|
|
164
165
|
// Every mainstream engine decodes AV1 and VP9, so canPlayType keeps the
|
|
165
166
|
// original and only the rare browser that cannot pays for a transcode.
|
|
166
167
|
av1: { representativeMime: 'video/mp4; codecs="av01.0.08M.08"', prewarm: false },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PROXY_PARAMS_VERSION,
|
|
3
3
|
resolveProxy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XRUVTG5G.js";
|
|
5
5
|
import {
|
|
6
6
|
createMediaCodecProbeCache,
|
|
7
7
|
proxyVariantFor,
|
|
8
8
|
recordProxyPrewarm,
|
|
9
9
|
scanProjectMediaCodecMap,
|
|
10
10
|
shouldPrewarmProxy
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EZMTFRUX.js";
|
|
12
12
|
|
|
13
13
|
// src/helpers/mediaProxyPreview.ts
|
|
14
14
|
import { resolve } from "path";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveProxyVariantRequest,
|
|
14
14
|
scanProjectMediaCodecMap,
|
|
15
15
|
shouldPrewarmProxy
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-EZMTFRUX.js";
|
|
17
17
|
import "../chunk-K56J3CL7.js";
|
|
18
18
|
import "../chunk-SVQFE44C.js";
|
|
19
19
|
import "../chunk-L3HJVTQE.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
isAutoProxyEnabled,
|
|
5
5
|
proxyEtagSalt,
|
|
6
6
|
resolvePreviewMediaCodecProbeCache
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-KJZ6WB6Z.js";
|
|
8
|
+
import "../chunk-XRUVTG5G.js";
|
|
9
|
+
import "../chunk-EZMTFRUX.js";
|
|
10
10
|
import "../chunk-K56J3CL7.js";
|
|
11
11
|
import "../chunk-SVQFE44C.js";
|
|
12
12
|
import "../chunk-L3HJVTQE.js";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
resolveProxies,
|
|
17
17
|
resolveProxy,
|
|
18
18
|
waitForProxy
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-XRUVTG5G.js";
|
|
20
|
+
import "../chunk-EZMTFRUX.js";
|
|
21
21
|
import "../chunk-K56J3CL7.js";
|
|
22
22
|
import "../chunk-SVQFE44C.js";
|
|
23
23
|
import "../chunk-L3HJVTQE.js";
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
isCompositionSource,
|
|
23
23
|
stampProjectHfIds
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-47NKWXAA.js";
|
|
25
25
|
import {
|
|
26
26
|
parseEncoderOptions
|
|
27
27
|
} from "./chunk-GR4TX52A.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
isAutoProxyEnabled,
|
|
79
79
|
proxyEtagSalt,
|
|
80
80
|
resolvePreviewMediaCodecProbeCache
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-KJZ6WB6Z.js";
|
|
82
82
|
import {
|
|
83
83
|
CACHE_DIR_NAME,
|
|
84
84
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
proxyActivityMark,
|
|
90
90
|
resolveProxy,
|
|
91
91
|
waitForProxy
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XRUVTG5G.js";
|
|
93
93
|
import {
|
|
94
94
|
PROXY_VARIANT_CONFIG,
|
|
95
95
|
decideMediaProxyEligibility,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
probeMediaMetadata,
|
|
99
99
|
recordProxyRequest,
|
|
100
100
|
resolveProxyVariantRequest
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-EZMTFRUX.js";
|
|
102
102
|
import {
|
|
103
103
|
folderGone,
|
|
104
104
|
isInHiddenOrVendorDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.158",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"postcss": "^8.5.8",
|
|
86
86
|
"postcss-selector-parser": "^7.1.2",
|
|
87
87
|
"sharp": "^0.35.0",
|
|
88
|
-
"@hyperframes/core": "0.8.
|
|
89
|
-
"@hyperframes/parsers": "0.8.
|
|
88
|
+
"@hyperframes/core": "0.8.158",
|
|
89
|
+
"@hyperframes/parsers": "0.8.158"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@types/node": "^25.0.10",
|