@hyperframes/studio-server 0.8.209 → 0.8.210
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.
|
@@ -407,9 +407,8 @@ var ProxyDroppedError = class extends ProxyTranscodeError {
|
|
|
407
407
|
var activeTranscodes = 0;
|
|
408
408
|
var waitQueue = [];
|
|
409
409
|
function enqueue(job) {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
else waitQueue.splice(firstNormal, 0, job);
|
|
410
|
+
if (job.priority) waitQueue.unshift(job);
|
|
411
|
+
else waitQueue.push(job);
|
|
413
412
|
}
|
|
414
413
|
function dequeue(job) {
|
|
415
414
|
const index = waitQueue.indexOf(job);
|
|
@@ -445,7 +444,6 @@ function releaseSlot() {
|
|
|
445
444
|
waitQueue.shift()?.queued?.start();
|
|
446
445
|
}
|
|
447
446
|
function prioritize(job) {
|
|
448
|
-
if (job.priority) return;
|
|
449
447
|
job.priority = true;
|
|
450
448
|
if (!job.queued) return;
|
|
451
449
|
dequeue(job);
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
isAutoProxyEnabled,
|
|
5
5
|
proxyEtagSalt,
|
|
6
6
|
resolvePreviewMediaCodecProbeCache
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-YOCRTHW3.js";
|
|
8
|
+
import "../chunk-KPCW4DQM.js";
|
|
9
9
|
import "../chunk-FUTDRYQK.js";
|
|
10
10
|
import "../chunk-X73QTST2.js";
|
|
11
11
|
import "../chunk-QF7MFJJU.js";
|
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
isAutoProxyEnabled,
|
|
83
83
|
proxyEtagSalt,
|
|
84
84
|
resolvePreviewMediaCodecProbeCache
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-YOCRTHW3.js";
|
|
86
86
|
import {
|
|
87
87
|
CACHE_DIR_NAME,
|
|
88
88
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
resolveProxy,
|
|
96
96
|
retryProxyCopy,
|
|
97
97
|
waitForProxy
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-KPCW4DQM.js";
|
|
99
99
|
import {
|
|
100
100
|
PROXY_VARIANT_CONFIG,
|
|
101
101
|
decideMediaProxyEligibility,
|
|
@@ -3930,6 +3930,7 @@ import {
|
|
|
3930
3930
|
import {
|
|
3931
3931
|
PREVIEW_PROXY_BOX_PARAM,
|
|
3932
3932
|
PREVIEW_PROXY_LIGHT_PARAM,
|
|
3933
|
+
PREVIEW_PROXY_PRIORITY_HEADER,
|
|
3933
3934
|
PREVIEW_PROXY_PROGRESS_HEADER,
|
|
3934
3935
|
PREVIEW_PROXY_RETRY_PARAM,
|
|
3935
3936
|
parsePreviewProxyBox
|
|
@@ -4632,7 +4633,11 @@ ${etag}`;
|
|
|
4632
4633
|
if (c.req.query(PREVIEW_PROXY_RETRY_PARAM) !== void 0) {
|
|
4633
4634
|
retryProxyCopy(project.dir, file, proxyVariant, proxyBox);
|
|
4634
4635
|
}
|
|
4635
|
-
|
|
4636
|
+
const priority = c.req.header(PREVIEW_PROXY_PRIORITY_HEADER) === "1";
|
|
4637
|
+
servedPath = await waitForProxy(
|
|
4638
|
+
resolveProxy(project.dir, file, proxyVariant, proxyBox, { priority }),
|
|
4639
|
+
0
|
|
4640
|
+
);
|
|
4636
4641
|
} catch (err) {
|
|
4637
4642
|
if (err instanceof ProxyWaitTimeoutError) {
|
|
4638
4643
|
const progress = proxyCopyProgress(project.dir, file, proxyVariant, proxyBox);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.210",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"linkedom": "^0.18.12",
|
|
85
85
|
"postcss": "^8.5.8",
|
|
86
86
|
"postcss-selector-parser": "^7.1.2",
|
|
87
|
-
"@hyperframes/core": "0.8.
|
|
88
|
-
"@hyperframes/parsers": "0.8.
|
|
87
|
+
"@hyperframes/core": "0.8.210",
|
|
88
|
+
"@hyperframes/parsers": "0.8.210"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^25.0.10",
|