Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hyperframes/core",
"version": "0.7.22",
"description": "",
"description": "Types, parsers, generators, linter, and runtime for HyperFrames",
"repository": {
"type": "git",
"url": "https://github.com/heygen-com/hyperframes",
Expand Down
5 changes: 5 additions & 0 deletions packages/engine/src/services/fileServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ const MIME_TYPES: Record<string, string> = {
".woff2": "font/woff2",
".ttf": "font/ttf",
".otf": "font/otf",
".avif": "image/avif",
".flac": "audio/flac",
".m4a": "audio/mp4",
".mov": "video/quicktime",
".ico": "image/x-icon",
};

export interface FileServerOptions {
Expand Down
1 change: 0 additions & 1 deletion packages/engine/src/utils/alphaBlit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,6 @@ function parseObjectPositionAxis(value: string, axis: "x" | "y"): number {
// Pixel values (e.g. "10px") aren't fractional; without the slack-space
// numerator we can't honor them precisely. Fall back to center — this is
// strictly worse than the browser but matches what we'd render today.
if (axis === "x" || axis === "y") return 0.5;
return 0.5;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/engine/src/utils/urlDownloader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createWriteStream, existsSync, mkdirSync } from "fs";
import { createWriteStream, existsSync, mkdirSync, rmSync } from "fs";
import { createHash } from "crypto";
import { join, extname } from "path";
import { Readable } from "stream";
Expand Down Expand Up @@ -125,6 +125,7 @@ export async function downloadToTemp(
downloadPathCache.set(url, localPath);
return localPath;
} catch (err) {
try { rmSync(localPath, { force: true }); } catch {}
const message = err instanceof Error ? err.message : String(err);
if (message.includes("aborted")) {
throw new Error(`[URLDownloader] Download timeout after ${timeoutMs / 1000}s: ${url}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/player/src/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ControlsOptions {
}

export function formatSpeed(speed: number): string {
return Number.isInteger(speed) ? `${speed}x` : `${speed}x`;
return `${speed}x`;
}

export function formatTime(seconds: number): string {
Expand Down