Skip to content

Code-first video & image, rendered natively on WebGPU.

chore: remove @framefields/media and @framefields/server-utils

okanaslfdf4e38dad5c
diff --git a/.changeset/pre.json b/.changeset/pre.json
index 12674b53..c4775ac6 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -1,94 +1,92 @@
{
- "mode": "pre",
- "tag": "beta",
- "initialVersions": {
- "@framefields/renderer-service": "2.1.3",
- "@framefields/example-19-framefields-film": "2.1.3",
- "@framefields/example-21-full-circle": "2.1.3",
- "@framefields/example-22-framefields-launch": "2.1.3",
- "@framefields/example-23-data-story": "2.1.3",
- "@framefields/example-24-audio-capabilities": "2.1.3",
- "@framefields/example-25-bakery": "2.1.3",
- "@framefields/example-26-mac-keyboard": "2.1.3",
- "@framefields/example-27-rtl-text": "2.1.3",
- "@framefields/node-lut": "2.1.3",
- "@framefields/node-audio-compressor": "2.1.3",
- "@framefields/node-audio-delay": "2.1.3",
- "@framefields/node-audio-fade": "2.1.3",
- "@framefields/node-audio-noise-gate": "2.1.3",
- "@framefields/node-audio-parametric-eq": "2.1.3",
- "@framefields/node-audio-reverb": "2.1.3",
- "@framefields/node-audio-signal-extractor": "2.1.3",
- "@framefields/node-blur": "2.1.3",
- "@framefields/node-camera-parallax-3d": "2.1.3",
- "@framefields/node-canvas-generator": "2.1.3",
- "@framefields/node-caption-editor": "2.1.3",
- "@framefields/node-caption-generator": "2.1.3",
- "@framefields/node-channel-merger": "2.1.3",
- "@framefields/node-channel-splitter": "2.1.3",
- "@framefields/node-color-balance": "2.1.3",
- "@framefields/node-colorkey": "2.1.3",
- "@framefields/node-compositor": "2.1.3",
- "@framefields/node-corner-pin": "2.1.3",
- "@framefields/node-crop": "2.1.3",
- "@framefields/node-curves": "2.1.3",
- "@framefields/node-deflicker": "2.1.3",
- "@framefields/node-displacement-map": "2.1.3",
- "@framefields/node-extract-frame": "2.1.3",
- "@framefields/node-extract-lut": "2.1.3",
- "@framefields/node-film-grain": "2.1.3",
- "@framefields/node-flip": "2.1.3",
- "@framefields/node-gradient-map": "2.1.3",
- "@framefields/node-halftone-screen": "2.1.3",
- "@framefields/node-high-pass": "2.1.3",
- "@framefields/node-kenburns": "2.1.3",
- "@framefields/node-layer-style": "2.1.3",
- "@framefields/node-levels": "2.1.3",
- "@framefields/node-liquify": "2.1.3",
- "@framefields/node-mask-math": "2.1.3",
- "@framefields/node-mesh-warp": "2.1.3",
- "@framefields/node-modulate": "2.1.3",
- "@framefields/node-noise-generator": "2.1.3",
- "@framefields/node-paint": "2.1.3",
- "@framefields/node-patch-heal": "2.1.3",
- "@framefields/node-procedural-vfx": "2.1.3",
- "@framefields/node-refine-edge": "2.1.3",
- "@framefields/node-refraction-caustics": "2.1.3",
- "@framefields/node-relight-3d": "2.1.3",
- "@framefields/node-resizer-scaler": "2.1.3",
- "@framefields/node-rotate": "2.1.3",
- "@framefields/node-selective-color": "2.1.3",
- "@framefields/node-shadows-highlights": "2.1.3",
- "@framefields/node-shape-generator": "2.1.3",
- "@framefields/node-signal": "2.1.3",
- "@framefields/node-signal-gate": "2.1.3",
- "@framefields/node-signal-math": "2.1.3",
- "@framefields/node-stereo-panning": "2.1.3",
- "@framefields/node-text": "2.1.3",
- "@framefields/node-tile-offset": "2.1.3",
- "@framefields/node-unsharp-mask": "2.1.3",
- "@framefields/node-vignette": "2.1.3",
- "@framefields/node-vision": "2.1.3",
- "@framefields/client-utils": "2.1.3",
- "@framefields/compositions": "2.1.3",
- "@framefields/core": "2.1.3",
- "framefields": "2.1.3",
- "@framefields/media": "2.1.3",
- "@framefields/node-sdk": "2.1.3",
- "@framefields/renderer": "2.1.3",
- "@framefields/renderers": "2.1.3",
- "@framefields/server-utils": "2.1.3",
- "@framefields/tensor-webgpu": "2.1.3",
- "@framefields/tsconfig": "2.1.3",
- "@framefields/vision": "2.1.3",
- "@framefields/webgpu-renderers": "2.1.3"
- },
- "changesets": [
- "renderer-worker-gpu",
- "vision-gpu-frames",
- "vision-gpu-shared-sessions",
- "vision-matte-classes",
- "vision-rtmdet-head",
- "vision-webgpu-nchw"
- ]
+ "mode": "pre",
+ "tag": "beta",
+ "initialVersions": {
+ "@framefields/renderer-service": "2.1.3",
+ "@framefields/example-19-framefields-film": "2.1.3",
+ "@framefields/example-21-full-circle": "2.1.3",
+ "@framefields/example-22-framefields-launch": "2.1.3",
+ "@framefields/example-23-data-story": "2.1.3",
+ "@framefields/example-24-audio-capabilities": "2.1.3",
+ "@framefields/example-25-bakery": "2.1.3",
+ "@framefields/example-26-mac-keyboard": "2.1.3",
+ "@framefields/example-27-rtl-text": "2.1.3",
+ "@framefields/node-lut": "2.1.3",
+ "@framefields/node-audio-compressor": "2.1.3",
+ "@framefields/node-audio-delay": "2.1.3",
+ "@framefields/node-audio-fade": "2.1.3",
+ "@framefields/node-audio-noise-gate": "2.1.3",
+ "@framefields/node-audio-parametric-eq": "2.1.3",
+ "@framefields/node-audio-reverb": "2.1.3",
+ "@framefields/node-audio-signal-extractor": "2.1.3",
+ "@framefields/node-blur": "2.1.3",
+ "@framefields/node-camera-parallax-3d": "2.1.3",
+ "@framefields/node-canvas-generator": "2.1.3",
+ "@framefields/node-caption-editor": "2.1.3",
+ "@framefields/node-caption-generator": "2.1.3",
+ "@framefields/node-channel-merger": "2.1.3",
+ "@framefields/node-channel-splitter": "2.1.3",
+ "@framefields/node-color-balance": "2.1.3",
+ "@framefields/node-colorkey": "2.1.3",
+ "@framefields/node-compositor": "2.1.3",
+ "@framefields/node-corner-pin": "2.1.3",
+ "@framefields/node-crop": "2.1.3",
+ "@framefields/node-curves": "2.1.3",
+ "@framefields/node-deflicker": "2.1.3",
+ "@framefields/node-displacement-map": "2.1.3",
+ "@framefields/node-extract-frame": "2.1.3",
+ "@framefields/node-extract-lut": "2.1.3",
+ "@framefields/node-film-grain": "2.1.3",
+ "@framefields/node-flip": "2.1.3",
+ "@framefields/node-gradient-map": "2.1.3",
+ "@framefields/node-halftone-screen": "2.1.3",
+ "@framefields/node-high-pass": "2.1.3",
+ "@framefields/node-kenburns": "2.1.3",
+ "@framefields/node-layer-style": "2.1.3",
+ "@framefields/node-levels": "2.1.3",
+ "@framefields/node-liquify": "2.1.3",
+ "@framefields/node-mask-math": "2.1.3",
+ "@framefields/node-mesh-warp": "2.1.3",
+ "@framefields/node-modulate": "2.1.3",
+ "@framefields/node-noise-generator": "2.1.3",
+ "@framefields/node-paint": "2.1.3",
+ "@framefields/node-patch-heal": "2.1.3",
+ "@framefields/node-procedural-vfx": "2.1.3",
+ "@framefields/node-refine-edge": "2.1.3",
+ "@framefields/node-refraction-caustics": "2.1.3",
+ "@framefields/node-relight-3d": "2.1.3",
+ "@framefields/node-resizer-scaler": "2.1.3",
+ "@framefields/node-rotate": "2.1.3",
+ "@framefields/node-selective-color": "2.1.3",
+ "@framefields/node-shadows-highlights": "2.1.3",
+ "@framefields/node-shape-generator": "2.1.3",
+ "@framefields/node-signal": "2.1.3",
+ "@framefields/node-signal-gate": "2.1.3",
+ "@framefields/node-signal-math": "2.1.3",
+ "@framefields/node-stereo-panning": "2.1.3",
+ "@framefields/node-text": "2.1.3",
+ "@framefields/node-tile-offset": "2.1.3",
+ "@framefields/node-unsharp-mask": "2.1.3",
+ "@framefields/node-vignette": "2.1.3",
+ "@framefields/node-vision": "2.1.3",
+ "@framefields/client-utils": "2.1.3",
+ "@framefields/compositions": "2.1.3",
+ "@framefields/core": "2.1.3",
+ "framefields": "2.1.3",
+ "@framefields/node-sdk": "2.1.3",
+ "@framefields/renderer": "2.1.3",
+ "@framefields/renderers": "2.1.3",
+ "@framefields/tensor-webgpu": "2.1.3",
+ "@framefields/tsconfig": "2.1.3",
+ "@framefields/vision": "2.1.3",
+ "@framefields/webgpu-renderers": "2.1.3"
+ },
+ "changesets": [
+ "renderer-worker-gpu",
+ "vision-gpu-frames",
+ "vision-gpu-shared-sessions",
+ "vision-matte-classes",
+ "vision-rtmdet-head",
+ "vision-webgpu-nchw"
+ ]
}
diff --git a/packages/media/CHANGELOG.md b/packages/media/CHANGELOG.md
deleted file mode 100644
index 174c2c5a..00000000
--- a/packages/media/CHANGELOG.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# @framefields/media
-
-## 2.2.0-beta.3
-
-## 2.2.0-beta.2
-
-## 2.2.0-beta.1
-
-## 2.2.0-beta.0
-
-## 2.1.3
-
-## 2.1.2
-
-## 2.1.1
-
-### Patch Changes
-
-- rm aws bundle
-
-## 2.1.0
-
-## 2.0.11
-
-## 2.0.10
-
-## 2.0.9
-
-## 2.0.8
-
-## 2.0.7
-
-## 2.0.6
-
-## 2.0.5
-
-## 2.0.4
-
-## 2.0.3
-
-## 2.0.2
-
-## 2.0.1
-
-## 2.0.0
-
-## 1.4.3
-
-## 1.4.2
-
-## 1.4.1
-
-## 1.4.0
-
-## 1.3.2
-
-## 1.3.1
-
-### Patch Changes
-
-- init
diff --git a/packages/media/package.json b/packages/media/package.json
deleted file mode 100644
index 876214c9..00000000
--- a/packages/media/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "name": "@framefields/media",
- "version": "2.2.0-beta.3",
- "private": false,
- "type": "module",
- "sideEffects": false,
- "license": "Apache-2.0",
- "module": "./dist/server.mjs",
- "types": "./dist/server.d.mts",
- "exports": {
- "./server": {
- "types": "./dist/server.d.mts",
- "development": "./server/index.ts",
- "import": "./dist/server.mjs",
- "default": "./dist/server.mjs"
- },
- ".": {
- "types": "./dist/server.d.mts",
- "development": "./server/index.ts",
- "import": "./dist/server.mjs",
- "default": "./dist/server.mjs"
- }
- },
- "files": [
- "dist/**"
- ],
- "scripts": {
- "build": "tsdown",
- "dev": "tsdown --watch",
- "test": "vitest run",
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
- },
- "devDependencies": {
- "@framefields/tsconfig": "workspace:*",
- "@types/node": "^24.1.0",
- "jsdom": "^29.1.0",
- "tsdown": "^0.19.0",
- "typescript": "^5.8.3",
- "vitest": "^4.1.5",
- "vitest-mock-extended": "^4.0.0"
- },
- "dependencies": {
- "@framefields/core": "workspace:*",
- "@framefields/server-utils": "workspace:*",
- "file-type": "^21.3.0",
- "fflate": "^0.8.3",
- "sharp": "^0.35.4"
- },
- "peerDependencies": {
- "inversify": "*"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/packages/media/server/import-utils.test.ts b/packages/media/server/import-utils.test.ts
deleted file mode 100644
index b5db057c..00000000
--- a/packages/media/server/import-utils.test.ts
+++ /dev/null
@@ -1,677 +0,0 @@
-import { beforeEach, describe, expect, it, vi } from "vitest";
-
-// 1. Setup Hoisted Mocks
-const { mockSharpMetadata } = vi.hoisted(() => {
- return {
- mockSharpMetadata: vi.fn(),
- };
-});
-
-// 2. Mock Modules
-vi.mock("@framefields/server-utils", () => ({
- container: {
- get: vi.fn(),
- isBound: vi.fn(() => true),
- },
- TOKENS: {
- STORAGE: Symbol.for("STORAGE"),
- MEDIA: Symbol.for("MEDIA"),
- },
- logger: {
- info: vi.fn(),
- error: vi.fn(),
- warn: vi.fn(),
- debug: vi.fn(),
- },
-}));
-
-vi.mock("@framefields/core", () => ({
- extractSvgDimensions: vi.fn(() => ({ w: 100, h: 100 })),
- generateId: vi.fn(() => "test-id"),
-}));
-
-vi.mock("sharp", () => ({
- default: vi.fn().mockImplementation(() => ({
- metadata: mockSharpMetadata,
- })),
-}));
-
-vi.mock("./utils/index.js", () => ({
- fixWebmMetadata: vi.fn(async (buf: Buffer) => buf),
- getMediaDuration: vi.fn(async () => 10),
- getVideoMetadata: vi.fn(async () => ({
- width: 1920,
- height: 1080,
- duration: 10,
- fps: 30,
- })),
- calculateFallbackMetadata: vi.fn(async () => ({ duration: 5, fps: 24 })),
- getAudioDetails: vi.fn(async () => ({
- sampleRate: 44100,
- channels: 2,
- bitDepth: 16,
- audioCodec: "aac",
- audioBitrate: 128000,
- })),
-}));
-
-import { extractSvgDimensions } from "@framefields/core";
-import { container } from "@framefields/server-utils";
-import { zipSync } from "fflate";
-import {
- extractCaptionDuration,
- extractMediaMetadata,
- isLottieJson,
- processAndValidateLottie,
- resolveDataType,
-} from "./import-utils.js";
-import {
- calculateFallbackMetadata,
- getMediaDuration,
- getVideoMetadata,
-} from "./utils/index.js";
-
-describe("import-utils", () => {
- beforeEach(() => {
- vi.clearAllMocks();
- mockSharpMetadata.mockResolvedValue({
- width: 600,
- height: 400,
- delay: [100, 100, 100],
- pages: 3,
- });
- });
-
- describe("extractCaptionDuration", () => {
- it("should extract duration from valid SRT buffer", () => {
- const srt = `1
-00:00:01,000 --> 00:00:04,000
-Hello world
-
-2
-00:00:05,000 --> 00:00:10,500
-Goodbye world
-`;
- const buffer = Buffer.from(srt);
- expect(extractCaptionDuration(buffer)).toBe(10.5);
- });
-
- it("should return null if no timestamps found", () => {
- const buffer = Buffer.from("just some text");
- expect(extractCaptionDuration(buffer)).toBeNull();
- });
-
- it("should return null on error", () => {
- const buffer = {
- toString: () => {
- throw new Error("fail");
- },
- } as unknown as Buffer;
- expect(extractCaptionDuration(buffer)).toBeNull();
- });
- });
-
- describe("resolveDataType", () => {
- it("should resolve SVG", async () => {
- expect(await resolveDataType("image/svg+xml", "test.svg")).toBe("SVG");
- });
-
- it("should resolve Image", async () => {
- expect(await resolveDataType("image/png", "test.png")).toBe("Image");
- });
-
- it("should resolve Video", async () => {
- expect(await resolveDataType("video/mp4", "test.mp4")).toBe("Video");
- });
-
- it("should resolve Audio", async () => {
- expect(await resolveDataType("audio/mpeg", "test.mp3")).toBe("Audio");
- });
-
- it("should resolve Caption from extension", async () => {
- expect(
- await resolveDataType("application/octet-stream", "test.srt"),
- ).toBe("Caption");
- });
-
- it("should resolve Caption from mime type", async () => {
- expect(await resolveDataType("text/srt", "test.txt")).toBe("Caption");
- });
-
- it("should throw for unsupported types", async () => {
- await expect(
- resolveDataType("application/pdf", "test.pdf"),
- ).rejects.toThrow();
- });
-
- it("should resolve animated WebP as GIF", async () => {
- mockSharpMetadata.mockResolvedValueOnce({
- pages: 3,
- });
- const res = await resolveDataType(
- "image/webp",
- "test.webp",
- Buffer.from("test"),
- );
- expect(res).toBe("GIF");
- });
-
- it("should resolve static WebP as Image", async () => {
- mockSharpMetadata.mockResolvedValueOnce({
- pages: 1,
- });
- const res = await resolveDataType(
- "image/webp",
- "test.webp",
- Buffer.from("test"),
- );
- expect(res).toBe("Image");
- });
-
- it("should resolve WebP as Image if buffer is missing", async () => {
- const res = await resolveDataType("image/webp", "test.webp");
- expect(res).toBe("Image");
- });
- });
-
- describe("extractMediaMetadata", () => {
- it("should extract image dimensions", async () => {
- const mockMediaService = {
- getImageDimensions: vi
- .fn()
- .mockResolvedValue({ width: 500, height: 500 }),
- };
- vi.mocked(container.get).mockReturnValue(mockMediaService);
-
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "image/png",
- "Image",
- );
- expect(result).toEqual({
- width: 500,
- height: 500,
- durationInSec: null,
- fps: null,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
-
- it("should throw if image dimensions extraction fails", async () => {
- const mockMediaService = {
- getImageDimensions: vi.fn().mockResolvedValue({}),
- };
- vi.mocked(container.get).mockReturnValue(mockMediaService);
-
- await expect(
- extractMediaMetadata(Buffer.from(""), "image/png", "Image"),
- ).rejects.toThrow("Failed to extract image dimensions");
- });
-
- it("should extract video metadata", async () => {
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "video/mp4",
- "Video",
- );
- expect(result).toEqual({
- width: 1920,
- height: 1080,
- durationInSec: 10,
- fps: 30,
- sampleRate: 44100,
- channels: 2,
- bitDepth: 16,
- audioCodec: "aac",
- audioBitrate: 128000,
- });
- });
-
- it("should use fallback for video metadata if duration or fps is 0", async () => {
- vi.mocked(getVideoMetadata).mockResolvedValueOnce({
- width: 1920,
- height: 1080,
- duration: 0,
- fps: 0,
- });
-
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "video/mp4",
- "Video",
- );
- expect(result.durationInSec).toBe(5);
- expect(result.fps).toBe(24);
- });
-
- it("should throw if video metadata is incomplete after fallback", async () => {
- vi.mocked(getVideoMetadata).mockResolvedValueOnce({
- width: 1920,
- height: 1080,
- duration: 0,
- fps: 0,
- });
- vi.mocked(calculateFallbackMetadata).mockResolvedValueOnce({
- duration: 0,
- fps: 0,
- });
-
- await expect(
- extractMediaMetadata(Buffer.from(""), "video/mp4", "Video"),
- ).rejects.toThrow("Incomplete video metadata");
- });
-
- it("should extract audio duration", async () => {
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "audio/mpeg",
- "Audio",
- );
- expect(result).toEqual({
- width: null,
- height: null,
- durationInSec: 10,
- fps: null,
- sampleRate: 44100,
- channels: 2,
- bitDepth: 16,
- audioCodec: "aac",
- audioBitrate: 128000,
- });
- });
-
- it("should use fallback for audio duration", async () => {
- vi.mocked(getMediaDuration).mockResolvedValueOnce(0);
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "audio/mpeg",
- "Audio",
- );
- expect(result.durationInSec).toBe(5);
- });
-
- it("should throw if audio duration extraction fails", async () => {
- vi.mocked(getMediaDuration).mockResolvedValueOnce(0);
- vi.mocked(calculateFallbackMetadata).mockResolvedValueOnce({
- duration: 0,
- fps: 0,
- });
-
- await expect(
- extractMediaMetadata(Buffer.from(""), "audio/mpeg", "Audio"),
- ).rejects.toThrow("Failed to extract audio duration");
- });
-
- it("should extract caption duration", async () => {
- const srt = `1\n00:00:01,000 --> 00:00:04,000\nHello`;
- const result = await extractMediaMetadata(
- Buffer.from(srt),
- "text/srt",
- "Caption",
- );
- expect(result.durationInSec).toBe(4);
- });
-
- it("should extract SVG dimensions", async () => {
- const result = await extractMediaMetadata(
- Buffer.from("<svg></svg>"),
- "image/svg+xml",
- "SVG",
- );
- expect(result.width).toBe(100);
- expect(result.height).toBe(100);
- });
-
- it("should use default SVG dimensions if extraction returns 0", async () => {
- vi.mocked(extractSvgDimensions).mockReturnValueOnce({ w: 0, h: 0 });
- const result = await extractMediaMetadata(
- Buffer.from("<svg></svg>"),
- "image/svg+xml",
- "SVG",
- );
- expect(result.width).toBe(1080);
- expect(result.height).toBe(1080);
- });
-
- it("should use default SVG dimensions if extraction throws", async () => {
- vi.mocked(extractSvgDimensions).mockImplementationOnce(() => {
- throw new Error("fail");
- });
- const result = await extractMediaMetadata(
- Buffer.from("<svg></svg>"),
- "image/svg+xml",
- "SVG",
- );
- expect(result.width).toBe(1080);
- expect(result.height).toBe(1080);
- });
- });
-
- describe("isLottieJson", () => {
- it("should return true if object has layers array", () => {
- expect(isLottieJson({ layers: [] })).toBe(true);
- });
-
- it("should return false if missing layers array", () => {
- expect(isLottieJson({ v: "5.5.0" })).toBe(false);
- expect(isLottieJson(null)).toBe(false);
- expect(isLottieJson([])).toBe(false);
- });
- });
-
- describe("processAndValidateLottie", () => {
- it("should pass valid JSON Lottie through", () => {
- const validLottie = { layers: [], v: "5.5.0" };
- const buf = Buffer.from(JSON.stringify(validLottie));
- const res = processAndValidateLottie(
- buf,
- "anim.json",
- "application/json",
- );
- expect(res.filename).toBe("anim.json");
- expect(res.contentType).toBe("application/json");
- expect(JSON.parse(res.buffer.toString("utf-8"))).toEqual(validLottie);
- });
-
- it("should throw error for invalid JSON", () => {
- const buf = Buffer.from("{invalid");
- expect(() =>
- processAndValidateLottie(buf, "anim.json", "application/json"),
- ).toThrow();
- });
-
- it("should throw error for non-Lottie JSON", () => {
- const buf = Buffer.from(JSON.stringify({ someKey: "value" }));
- expect(() =>
- processAndValidateLottie(buf, "anim.json", "application/json"),
- ).toThrow();
- });
-
- it("should extract valid Lottie JSON from a .lottie zip archive with manifest", () => {
- const animation = {
- v: "5.5.0",
- layers: [],
- w: 500,
- h: 500,
- fr: 30,
- ip: 0,
- op: 90,
- };
- const manifest = {
- animations: [
- {
- id: "anim",
- file: "a/anim.json",
- },
- ],
- initial: "anim",
- };
- const zipData = {
- "manifest.json": Buffer.from(JSON.stringify(manifest)),
- "a/anim.json": Buffer.from(JSON.stringify(animation)),
- };
- const zipBuffer = Buffer.from(zipSync(zipData));
- const result = processAndValidateLottie(
- zipBuffer,
- "test.lottie",
- "application/zip",
- );
- expect(result.filename).toBe("test.json");
- expect(result.contentType).toBe("application/json");
- const parsed = JSON.parse(result.buffer.toString("utf-8"));
- expect(parsed.v).toBe("5.5.0");
- });
-
- it("should extract valid Lottie JSON from a .lottie zip archive without manifest", () => {
- const animation = {
- v: "5.5.0",
- layers: [],
- w: 500,
- h: 500,
- fr: 30,
- ip: 0,
- op: 90,
- };
- const zipData = {
- "random_filename.json": Buffer.from(JSON.stringify(animation)),
- };
- const zipBuffer = Buffer.from(zipSync(zipData));
- const result = processAndValidateLottie(
- zipBuffer,
- "test.lottie",
- "application/zip",
- );
- expect(result.filename).toBe("test.json");
- expect(result.contentType).toBe("application/json");
- const parsed = JSON.parse(result.buffer.toString("utf-8"));
- expect(parsed.v).toBe("5.5.0");
- });
-
- it("should extract valid Lottie JSON from a .lottie zip archive with standard id-based manifest (no file field)", () => {
- const animation = {
- v: "5.5.0",
- layers: [],
- w: 800,
- h: 600,
- fr: 60,
- ip: 0,
- op: 180,
- };
- const manifest = {
- animations: [
- {
- id: "my-animation",
- speed: 1,
- },
- ],
- };
- const zipData = {
- "manifest.json": Buffer.from(JSON.stringify(manifest)),
- "animations/my-animation.json": Buffer.from(JSON.stringify(animation)),
- };
- const zipBuffer = Buffer.from(zipSync(zipData));
- const result = processAndValidateLottie(
- zipBuffer,
- "awesome.lottie",
- "application/zip",
- );
- expect(result.filename).toBe("awesome.json");
- expect(result.contentType).toBe("application/json");
- const parsed = JSON.parse(result.buffer.toString("utf-8"));
- expect(parsed.w).toBe(800);
- expect(parsed.h).toBe(600);
- expect(parsed.fr).toBe(60);
- });
- });
-
- describe("resolveDataType (Lottie extension/mime)", () => {
- it("should resolve Lottie from json/lottie extension or mime", async () => {
- expect(await resolveDataType("application/json", "test.json")).toBe(
- "Lottie",
- );
- expect(await resolveDataType("application/zip", "test.lottie")).toBe(
- "Lottie",
- );
- });
- });
-
- describe("extractMediaMetadata (Lottie)", () => {
- it("should extract Lottie metadata from JSON buffer", async () => {
- const animation = {
- w: 500,
- h: 400,
- fr: 30,
- ip: 0,
- op: 90,
- layers: [],
- };
- const result = await extractMediaMetadata(
- Buffer.from(JSON.stringify(animation)),
- "application/json",
- "Lottie",
- );
- expect(result).toEqual({
- width: 500,
- height: 400,
- durationInSec: 3,
- fps: 30,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
-
- it("should extract Lottie metadata directly from .lottie zip buffer", async () => {
- const animation = {
- w: 1920,
- h: 1080,
- fr: 60,
- ip: 0,
- op: 300,
- layers: [],
- };
- const zipData = {
- "animations/anim.json": Buffer.from(JSON.stringify(animation)),
- };
- const zipBuffer = Buffer.from(zipSync(zipData));
- const result = await extractMediaMetadata(
- zipBuffer,
- "application/zip",
- "Lottie",
- );
- expect(result).toEqual({
- width: 1920,
- height: 1080,
- durationInSec: 5,
- fps: 60,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
- });
-
- describe("resolveDataType (GIF)", () => {
- it("should resolve GIF from extension", async () => {
- expect(
- await resolveDataType("application/octet-stream", "test.gif"),
- ).toBe("GIF");
- });
-
- it("should resolve GIF from mime type", async () => {
- expect(await resolveDataType("image/gif", "test.bin")).toBe("GIF");
- });
- });
-
- describe("extractMediaMetadata (GIF)", () => {
- it("should extract GIF metadata with delays", async () => {
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "image/gif",
- "GIF",
- );
- expect(result).toEqual({
- width: 600,
- height: 400,
- durationInSec: 0.3,
- fps: 10,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
-
- it("should fallback for GIF metadata if no delay is present", async () => {
- mockSharpMetadata.mockResolvedValueOnce({
- width: 600,
- height: 400,
- pages: 5,
- });
-
- const result = await extractMediaMetadata(
- Buffer.from(""),
- "image/gif",
- "GIF",
- );
- expect(result).toEqual({
- width: 600,
- height: 400,
- durationInSec: 0.5,
- fps: 10,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
- });
-
- describe("resolveDataType (LUT)", () => {
- it("should resolve LUT from extension", async () => {
- expect(
- await resolveDataType("application/octet-stream", "test.cube"),
- ).toBe("LUT");
- });
- });
-
- describe("extractMediaMetadata (LUT)", () => {
- it("should extract 3D LUT metadata size and type", async () => {
- const cubeContent = `
-# Some comments
-LUT_3D_SIZE 33
-0.0 0.0 0.0
-`;
- const result = await extractMediaMetadata(
- Buffer.from(cubeContent),
- "application/octet-stream",
- "LUT",
- );
- expect(result).toEqual({
- width: 33,
- height: 3,
- durationInSec: null,
- fps: null,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
-
- it("should extract 1D LUT metadata size and type", async () => {
- const cubeContent = `
-# Some comments
-LUT_1D_SIZE 1024
-0.0 0.0 0.0
-`;
- const result = await extractMediaMetadata(
- Buffer.from(cubeContent),
- "application/octet-stream",
- "LUT",
- );
- expect(result).toEqual({
- width: 1024,
- height: 1,
- durationInSec: null,
- fps: null,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- });
- });
- });
-});
diff --git a/packages/media/server/import-utils.ts b/packages/media/server/import-utils.ts
deleted file mode 100644
index 6f39eedd..00000000
--- a/packages/media/server/import-utils.ts
+++ /dev/null
@@ -1,620 +0,0 @@
-import { extractSvgDimensions, type MediaService } from "@framefields/core";
-import { container, logger, TOKENS } from "@framefields/server-utils";
-import { strFromU8, unzipSync } from "fflate";
-import sharp from "sharp";
-import {
- calculateFallbackMetadata,
- getAudioDetails,
- getMediaDuration,
- getVideoMetadata,
-} from "./utils/index.js";
-
-export type SupportedDataType =
- | "Image"
- | "Video"
- | "Audio"
- | "SVG"
- | "Caption"
- | "Lottie"
- | "GIF"
- | "LUT";
-
-export interface LottieManifestAnimation {
- id?: string;
- file?: string;
-}
-
-export interface LottieManifest {
- animations?: LottieManifestAnimation[];
- initial?: string;
-}
-
-export function isLottieJson(obj: unknown): boolean {
- if (typeof obj !== "object" || obj === null) return false;
- const dict = obj as Record<string, unknown>;
- const hasLayers = "layers" in dict && Array.isArray(dict.layers);
- const hasLottieStructure =
- "v" in dict && ("fr" in dict || "ip" in dict || "op" in dict);
- return hasLayers || hasLottieStructure;
-}
-
-export function processAndValidateLottie(
- buffer: Buffer,
- filename: string,
- mimeType?: string,
-): { buffer: Buffer; filename: string; contentType: string } {
- const cleanFilename = filename.split("?")[0].split("#")[0];
- const ext = cleanFilename.toLowerCase().split(".").pop() ?? "";
- const isZip = buffer.length >= 4 && buffer[0] === 0x50 && buffer[1] === 0x4b;
- const isLottieExt = ext === "lottie" || ext === "zip";
- const isLottieMime =
- mimeType === "application/x-lottie" ||
- mimeType === "application/zip" ||
- mimeType === "application/x-zip-compressed";
- const isJsonExt = ext === "json";
-
- if (isLottieExt || isLottieMime || isZip) {
- try {
- const unzipped = unzipSync(new Uint8Array(buffer));
- let animationContent: Uint8Array | undefined;
-
- const findEntry = (
- predicate: (cleanKey: string, rawKey: string) => boolean,
- ) => {
- for (const rawKey of Object.keys(unzipped)) {
- const cleanKey = rawKey
- .replace(/^[./\\]+/, "")
- .replace(/\\/g, "/")
- .toLowerCase();
- if (predicate(cleanKey, rawKey)) {
- return unzipped[rawKey];
- }
- }
- return undefined;
- };
-
- const manifestEntry = findEntry((k) => k === "manifest.json");
- if (manifestEntry) {
- try {
- const manifestStr = strFromU8(manifestEntry);
- const manifest = JSON.parse(manifestStr) as LottieManifest;
- if (
- manifest &&
- Array.isArray(manifest.animations) &&
- manifest.animations.length > 0
- ) {
- const initialId = manifest.initial;
- const animObj =
- (initialId
- ? manifest.animations.find((a) => a.id === initialId)
- : undefined) || manifest.animations[0];
-
- const candidates = [
- animObj.file,
- animObj.file ? `animations/${animObj.file}` : undefined,
- animObj.id ? `animations/${animObj.id}.json` : undefined,
- animObj.id ? `animations/${animObj.id}` : undefined,
- animObj.id ? `${animObj.id}.json` : undefined,
- animObj.id,
- ]
- .filter((k): k is string => Boolean(k))
- .map((k) =>
- k
- .replace(/^[./\\]+/, "")
- .replace(/\\/g, "/")
- .toLowerCase(),
- );
-
- for (const cand of candidates) {
- const found = findEntry((k) => k === cand);
- if (found) {
- animationContent = found;
- break;
- }
- }
- }
- } catch (err) {
- logger.error(
- { err },
- "Failed to parse manifest.json from .lottie zip",
- );
- }
- }
-
- if (!animationContent) {
- const jsonKeys = Object.keys(unzipped).filter((k) => {
- const clean = k
- .replace(/^[./\\]+/, "")
- .replace(/\\/g, "/")
- .toLowerCase();
- return clean.endsWith(".json") && clean !== "manifest.json";
- });
-
- jsonKeys.sort((a, b) => {
- const aInAnim = a.toLowerCase().includes("animations/") ? -1 : 1;
- const bInAnim = b.toLowerCase().includes("animations/") ? -1 : 1;
- return aInAnim - bInAnim;
- });
-
- for (const key of jsonKeys) {
- try {
- const parsed = JSON.parse(strFromU8(unzipped[key]));
- if (isLottieJson(parsed)) {
- animationContent = unzipped[key];
- break;
- }
- } catch {
- // Continue searching
- }
- }
- }
-
- if (animationContent) {
- const text = strFromU8(animationContent);
- const parsed = JSON.parse(text);
- if (!isLottieJson(parsed)) {
- throw new Error(
- "Extracted file from .lottie archive is not a valid Lottie animation",
- );
- }
-
- const newBuffer = Buffer.from(text);
- let newFilename = filename;
- if (/\.lottie$/i.test(newFilename)) {
- newFilename = newFilename.replace(/\.lottie$/i, ".json");
- } else if (/\.zip$/i.test(newFilename)) {
- newFilename = newFilename.replace(/\.zip$/i, ".json");
- } else if (!/\.json$/i.test(newFilename)) {
- newFilename = `${newFilename}.json`;
- }
-
- return {
- buffer: newBuffer,
- filename: newFilename,
- contentType: "application/json",
- };
- }
- if (isLottieExt || isLottieMime) {
- throw new Error(
- "No valid Lottie animation JSON file found inside .lottie archive",
- );
- }
- } catch (error: unknown) {
- if (isLottieExt || isLottieMime) {
- const msg = error instanceof Error ? error.message : String(error);
- throw new Error(`Failed to process .lottie file: ${msg}`);
- }
- }
- }
-
- if (
- isJsonExt ||
- mimeType === "application/json" ||
- mimeType === "text/json"
- ) {
- try {
- const text = buffer.toString("utf-8");
- const parsed = JSON.parse(text);
- if (!isLottieJson(parsed)) {
- throw new Error(
- "Not a valid Lottie animation (missing 'layers' array or animation structure)",
- );
- }
- return {
- buffer,
- filename,
- contentType: "application/json",
- };
- } catch (error: unknown) {
- const msg = error instanceof Error ? error.message : String(error);
- throw new Error(`Invalid JSON Lottie file: ${msg}`);
- }
- }
-
- return {
- buffer,
- filename,
- contentType: mimeType ?? "application/octet-stream",
- };
-}
-
-export function extractCaptionDuration(buffer: Buffer): number | null {
- try {
- const str = buffer.toString("utf-8");
- const regex = /(\d{2}):(\d{2}):(\d{2}),(\d{3})/g;
- let maxTimeSec = 0;
- for (const match of str.matchAll(regex)) {
- const hours = parseInt(match[1], 10);
- const minutes = parseInt(match[2], 10);
- const seconds = parseInt(match[3], 10);
- const ms = parseInt(match[4], 10);
- const timeSec = hours * 3600 + minutes * 60 + seconds + ms / 1000;
- if (timeSec > maxTimeSec) {
- maxTimeSec = timeSec;
- }
- }
- return maxTimeSec > 0 ? maxTimeSec : null;
- } catch {
- return null;
- }
-}
-
-export async function resolveDataType(
- contentType: string,
- filename: string,
- buffer?: Buffer,
-): Promise<SupportedDataType> {
- const ext = filename.toLowerCase().split(".").pop();
- if (ext === "cube") return "LUT";
- if (contentType === "image/svg+xml") return "SVG";
- if (contentType === "image/gif" || ext === "gif") return "GIF";
-
- if (contentType === "image/webp" || ext === "webp") {
- if (buffer) {
- try {
- const metadata = await sharp(buffer).metadata();
- const pages = metadata.pages || 1;
- if (pages > 1) {
- return "GIF";
- }
- } catch (error) {
- logger.error({ err: error }, "Failed to detect WebP animation");
- }
- }
- return "Image";
- }
-
- if (contentType.startsWith("image/")) return "Image";
- if (contentType.startsWith("video/")) return "Video";
- if (contentType.startsWith("audio/")) return "Audio";
-
- if (ext === "srt" || contentType === "text/srt") {
- return "Caption";
- }
-
- if (
- contentType === "application/json" ||
- contentType === "text/json" ||
- ext === "json" ||
- ext === "lottie"
- ) {
- return "Lottie";
- }
-
- throw new Error(`Unsupported content type: ${contentType}`);
-}
-
-export interface MediaMetadata {
- width: number | null;
- height: number | null;
- durationInSec: number | null;
- fps: number | null;
- sampleRate?: number | null;
- channels?: number | null;
- bitDepth?: number | null;
- audioCodec?: string | null;
- audioBitrate?: number | null;
-}
-
-async function extractImageDimensions(
- buffer: Buffer,
-): Promise<{ width: number; height: number }> {
- let metaWidth: number | null | undefined;
- let metaHeight: number | null | undefined;
- let hasMediaService = false;
-
- try {
- if (
- container &&
- typeof container.isBound === "function" &&
- container.isBound(TOKENS.MEDIA)
- ) {
- const media = container.get<MediaService>(TOKENS.MEDIA);
- if (media) {
- hasMediaService = true;
- const meta = await media.getImageDimensions(buffer);
- metaWidth = meta?.width;
- metaHeight = meta?.height;
- }
- }
- } catch {
- // If media service threw, allow fallback to sharp
- }
-
- if (!hasMediaService && (metaWidth == null || metaHeight == null)) {
- const metadata = await sharp(buffer).metadata();
- metaWidth = metadata.width;
- metaHeight = metadata.height;
- }
-
- if (metaWidth == null || metaHeight == null) {
- throw new Error("Failed to extract image dimensions");
- }
-
- return { width: metaWidth, height: metaHeight };
-}
-
-function extractSvgDimensionsSafe(buffer: Buffer): {
- width: number;
- height: number;
-} {
- try {
- const dim = extractSvgDimensions(buffer);
- const w = dim?.w || 0;
- const h = dim?.h || 0;
- if (w === 0 || h === 0) {
- return { width: 1080, height: 1080 };
- }
- return { width: w, height: h };
- } catch (error) {
- logger.error({ err: error }, "Failed to extract SVG dimensions");
- return { width: 1080, height: 1080 };
- }
-}
-
-async function extractVideoDetails(
- mediaSource: Buffer | string,
-): Promise<Partial<MediaMetadata>> {
- const meta = await getVideoMetadata(mediaSource);
- if (!meta) {
- throw new Error("Failed to extract video metadata");
- }
-
- const width = meta.width;
- const height = meta.height;
- let durationInSec = meta.duration;
- let fps = meta.fps;
-
- if (durationInSec === 0 || fps === 0) {
- const fallback = await calculateFallbackMetadata(mediaSource);
- if (fallback && fallback.duration > 0) {
- durationInSec = fallback.duration;
- if (fps === 0 || Number.isNaN(fps)) fps = fallback.fps;
- }
- }
-
- if (width === 0 || height === 0 || durationInSec === 0 || fps === 0) {
- throw new Error(
- `Incomplete video metadata: width=${width}, height=${height}, duration=${durationInSec}, fps=${fps}`,
- );
- }
-
- const audioDetails = await getAudioDetails(mediaSource);
-
- return {
- width,
- height,
- durationInSec,
- fps,
- sampleRate: audioDetails?.sampleRate ?? null,
- channels: audioDetails?.channels ?? null,
- bitDepth: audioDetails?.bitDepth ?? null,
- audioCodec: audioDetails?.audioCodec ?? null,
- audioBitrate: audioDetails?.audioBitrate ?? null,
- };
-}
-
-async function extractAudioDetails(
- mediaSource: Buffer | string,
- contentType: string,
-): Promise<Partial<MediaMetadata>> {
- let durationInSec = await getMediaDuration(mediaSource, contentType);
-
- if (durationInSec == null || durationInSec === 0) {
- const fallback = await calculateFallbackMetadata(mediaSource);
- if (fallback && fallback.duration > 0) {
- durationInSec = fallback.duration;
- }
- }
-
- if (durationInSec == null || durationInSec === 0) {
- throw new Error("Failed to extract audio duration");
- }
-
- const audioDetails = await getAudioDetails(mediaSource);
-
- return {
- durationInSec,
- sampleRate: audioDetails?.sampleRate ?? null,
- channels: audioDetails?.channels ?? null,
- bitDepth: audioDetails?.bitDepth ?? null,
- audioCodec: audioDetails?.audioCodec ?? null,
- audioBitrate: audioDetails?.audioBitrate ?? null,
- };
-}
-
-function extractLottieDetails(buffer: Buffer): Partial<MediaMetadata> {
- try {
- let lottieBuffer = buffer;
- if (
- lottieBuffer.length >= 4 &&
- lottieBuffer[0] === 0x50 &&
- lottieBuffer[1] === 0x4b
- ) {
- try {
- const processed = processAndValidateLottie(
- lottieBuffer,
- "animation.lottie",
- );
- lottieBuffer = processed.buffer;
- } catch (err) {
- logger.error(
- { err },
- "Failed to extract JSON from .lottie zip in extractMediaMetadata",
- );
- }
- }
-
- const parsed = JSON.parse(lottieBuffer.toString("utf-8"));
- const width =
- typeof parsed.w === "number" ? parsed.w : Number(parsed.w) || null;
- const height =
- typeof parsed.h === "number" ? parsed.h : Number(parsed.h) || null;
- const fr =
- typeof parsed.fr === "number" ? parsed.fr : Number(parsed.fr) || null;
- const ip =
- typeof parsed.ip === "number" ? parsed.ip : Number(parsed.ip) || 0;
- const op =
- typeof parsed.op === "number" ? parsed.op : Number(parsed.op) || 0;
- let durationInSec: number | null = null;
- if (fr && fr > 0 && op > ip) {
- durationInSec = (op - ip) / fr;
- }
-
- return {
- width,
- height,
- fps: fr,
- durationInSec,
- };
- } catch (error) {
- logger.error({ err: error }, "Failed to extract Lottie metadata");
- return {};
- }
-}
-
-async function extractGifDetails(
- buffer: Buffer,
-): Promise<Partial<MediaMetadata>> {
- try {
- const metadata = await sharp(buffer).metadata();
- const width = metadata.width || null;
- const height = metadata.height || null;
- const delay = metadata.delay;
- const pages = metadata.pages || 1;
-
- let durationInSec: number | null = null;
- let fps: number | null = null;
-
- if (delay && delay.length > 0) {
- const totalDelayMs = delay.reduce((acc, d) => acc + d, 0);
- durationInSec = totalDelayMs / 1000;
- fps = durationInSec > 0 ? Math.round(pages / durationInSec) : null;
- } else if (pages > 1) {
- durationInSec = (pages * 100) / 1000;
- fps = 10;
- }
-
- return { width, height, durationInSec, fps };
- } catch (error) {
- logger.error({ err: error }, "Failed to extract GIF metadata");
- return {};
- }
-}
-
-function extractLutDetails(buffer: Buffer): Partial<MediaMetadata> {
- let type: "1D" | "3D" = "3D";
- let size = 33;
- if (buffer) {
- const lines = buffer.toString("utf-8").split(/\r?\n/);
- for (const line of lines) {
- const trimmed = line.trim();
- if (trimmed.startsWith("LUT_3D_SIZE")) {
- const parts = trimmed.split(/\s+/);
- const parsedSize = parseInt(parts[1], 10);
- if (!Number.isNaN(parsedSize)) {
- size = parsedSize;
- type = "3D";
- }
- break;
- }
- if (trimmed.startsWith("LUT_1D_SIZE")) {
- const parts = trimmed.split(/\s+/);
- const parsedSize = parseInt(parts[1], 10);
- if (!Number.isNaN(parsedSize)) {
- size = parsedSize;
- type = "1D";
- }
- break;
- }
- }
- }
- return {
- width: size,
- height: type === "3D" ? 3 : 1,
- };
-}
-
-export async function extractMediaMetadata(
- bufferOrUrl: Buffer | string,
- contentType: string,
- dataType: SupportedDataType,
-): Promise<MediaMetadata> {
- let buffer: Buffer;
- if (typeof bufferOrUrl === "string") {
- if (dataType !== "Video" && dataType !== "Audio") {
- const res = await fetch(bufferOrUrl);
- if (!res.ok) {
- throw new Error(`Failed to fetch media from URL: ${res.statusText}`);
- }
- buffer = Buffer.from(await res.arrayBuffer());
- } else {
- buffer = Buffer.alloc(0);
- }
- } else {
- buffer = bufferOrUrl;
- }
-
- const isUrl = typeof bufferOrUrl === "string";
- const mediaSource =
- isUrl && (dataType === "Video" || dataType === "Audio")
- ? bufferOrUrl
- : buffer;
-
- const baseMeta: MediaMetadata = {
- width: null,
- height: null,
- durationInSec: null,
- fps: null,
- sampleRate: null,
- channels: null,
- bitDepth: null,
- audioCodec: null,
- audioBitrate: null,
- };
-
- let specificMeta: Partial<MediaMetadata> = {};
-
- switch (dataType) {
- case "Image": {
- const dims = await extractImageDimensions(buffer);
- specificMeta = { width: dims.width, height: dims.height };
- break;
- }
- case "SVG": {
- const dims = extractSvgDimensionsSafe(buffer);
- specificMeta = { width: dims.width, height: dims.height };
- break;
- }
- case "Video": {
- specificMeta = await extractVideoDetails(mediaSource);
- break;
- }
- case "Audio": {
- specificMeta = await extractAudioDetails(mediaSource, contentType);
- break;
- }
- case "Caption": {
- const captionDuration = extractCaptionDuration(buffer);
- specificMeta = { durationInSec: captionDuration };
- break;
- }
- case "Lottie": {
- specificMeta = extractLottieDetails(buffer);
- break;
- }
- case "GIF": {
- specificMeta = await extractGifDetails(buffer);
- break;
- }
- case "LUT": {
- specificMeta = extractLutDetails(buffer);
- break;
- }
- }
-
- return {
- ...baseMeta,
- ...specificMeta,
- };
-}
diff --git a/packages/media/server/index.ts b/packages/media/server/index.ts
deleted file mode 100644
index 684d8dd8..00000000
--- a/packages/media/server/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export * from "./import-utils.js";
-export * from "./svg-sanitize.js";
-export * from "./utils/index.js";
-export * from "./utils/media-service.js";
diff --git a/packages/media/server/svg-sanitize.test.ts b/packages/media/server/svg-sanitize.test.ts
deleted file mode 100644
index f0fd0a15..00000000
--- a/packages/media/server/svg-sanitize.test.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { sanitizeSvg } from "./svg-sanitize.js";
-
-const clean = (input: string) => sanitizeSvg(input).toString("utf-8");
-
-describe("sanitizeSvg", () => {
- it("keeps benign SVG intact", () => {
- const svg =
- '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="#f00"/></svg>';
- expect(clean(svg)).toContain("<svg");
- expect(clean(svg)).toContain("<rect");
- });
-
- it("strips <script> blocks", () => {
- const svg = `<svg xmlns="http://www.w3.org/2000/svg"><script>alert(1)</script><rect/></svg>`;
- expect(clean(svg)).not.toContain("script");
- expect(clean(svg)).not.toContain("alert");
- });
-
- it("strips event handlers", () => {
- const svg =
- '<svg xmlns="http://www.w3.org/2000/svg" onload="alert(1)"><rect onclick="steal()"/></svg>';
- expect(clean(svg)).not.toContain("onload");
- expect(clean(svg)).not.toContain("onclick");
- expect(clean(svg)).not.toContain("alert");
- });
-
- it("strips javascript: URLs", () => {
- const svg =
- '<svg xmlns="http://www.w3.org/2000/svg"><a href="javascript:alert(1)"><text>hi</text></a></svg>';
- const out = clean(svg);
- expect(out).not.toContain("javascript:");
- expect(out).toContain("<a");
- });
-
- it("removes HTML-embedding <foreignObject>", () => {
- const svg = `<svg xmlns="http://www.w3.org/2000/svg"><foreignObject><iframe src="evil"></iframe></foreignObject><rect/></svg>`;
- const out = clean(svg);
- expect(out).not.toContain("foreignObject");
- expect(out).not.toContain("iframe");
- expect(out).toContain("<rect");
- });
-
- it("throws on empty output", () => {
- expect(() => sanitizeSvg("<svg></svg>")).not.toThrow();
- expect(() => sanitizeSvg("")).toThrow();
- });
-});
diff --git a/packages/media/server/svg-sanitize.ts b/packages/media/server/svg-sanitize.ts
deleted file mode 100644
index 12f2c6f1..00000000
--- a/packages/media/server/svg-sanitize.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Minimal SVG sanitizer.
- *
- * Strips active content (scripts, event handlers, javascript: URLs,
- * HTML-embedding elements) from untrusted SVG uploads before they are stored
- * and served. Served SVGs live inline at the API origin, so any executable
- * content would become stored XSS.
- */
-export function sanitizeSvg(input: Buffer | string): Buffer {
- let xml = Buffer.isBuffer(input) ? input.toString("utf-8") : input;
-
- // Comments can hide nested payloads from regex passes.
- xml = xml.replace(/<!--[\s\S]*?-->/g, "");
-
- // Any <script>…</script> or self-closing <script/>.
- xml = xml.replace(/<\s*script[\s\S]*?<\s*\/\s*script\s*>/gi, "");
- xml = xml.replace(/<\s*script\b[^>]*\/\s*>/gi, "");
-
- // <foreignObject> can embed arbitrary HTML (and therefore scripts).
- xml = xml.replace(
- /<\s*foreignObject[\s\S]*?<\s*\/\s*foreignObject\s*>/gi,
- "",
- );
-
- // Event handler attributes: onload="…", onclick=….
- xml = xml.replace(/\s+on[a-zA-Z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/g, "");
-
- // URL attributes that reference scripts: javascript:, vbscript:, data:.
- xml = xml.replace(
- /(\s+(?:xlink:)?href\s*=\s*["'])(javascript|vbscript|data):[^"']*(["'])/gi,
- "$1$3",
- );
- xml = xml.replace(/\s+formaction\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/g, "");
-
- // Data URIs in image or use elements are acceptable for images only.
- xml = xml.replace(
- /(\s+(?:data|href)\s*=\s*["']data:)(?!image\/)([^"']*)(["'])/gi,
- "$1image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=$3",
- );
-
- const result = Buffer.from(xml, "utf-8");
- if (result.length === 0) {
- throw new Error("SVG sanitizer produced empty output");
- }
- return result;
-}
diff --git a/packages/media/server/utils/index.ts b/packages/media/server/utils/index.ts
deleted file mode 100644
index ae85f61a..00000000
--- a/packages/media/server/utils/index.ts
+++ /dev/null
@@ -1,611 +0,0 @@
-import { spawn } from "node:child_process";
-import fs from "node:fs/promises";
-import os from "node:os";
-import path from "node:path";
-import { generateId } from "@framefields/core";
-import { mediaLogger } from "@framefields/server-utils";
-import { fileTypeFromBuffer } from "file-type";
-import sharp from "sharp";
-
-interface ProbeInput {
- inputPath: string;
- /** File type detected from a buffer input. */
- type?: { ext: string; mime: string };
- /** Deletes the temp file a buffer input was written to. */
- cleanup: (logMessage?: string) => Promise<void>;
-}
-
-/**
- * A path ffprobe can read: URLs as-is, buffers written to a temp file named
- * `${prefix}_<id><ext>` (ext from the detected type, else `fallbackExt`).
- */
-async function prepareProbeInput(
- bufferOrUrl: Buffer | string,
- prefix: string,
- fallbackExt?: (type: { ext: string; mime: string } | undefined) => string,
-): Promise<ProbeInput> {
- if (typeof bufferOrUrl === "string") {
- return { inputPath: bufferOrUrl, cleanup: async () => {} };
- }
- const type = await fileTypeFromBuffer(bufferOrUrl);
- const ext = type ? `.${type.ext}` : (fallbackExt?.(type) ?? "");
- const tempFile = path.join(os.tmpdir(), `${prefix}_${generateId()}${ext}`);
- await fs.writeFile(tempFile, bufferOrUrl);
- return {
- inputPath: tempFile,
- type,
- cleanup: async (logMessage = "Failed to delete temp file") => {
- try {
- await fs.unlink(tempFile);
- } catch (err) {
- mediaLogger.error({ err }, logMessage);
- }
- },
- };
-}
-
-/** Runs ffprobe to completion; rejects only when it can't be started. */
-function runFfprobe(
- args: string[],
-): Promise<{ code: number | null; stdout: string; stderr: string }> {
- return new Promise((resolve, reject) => {
- const ffprobe = spawn("ffprobe", args);
- let stdout = "";
- let stderr = "";
- ffprobe.stdout.on("data", (data) => {
- stdout += data.toString();
- });
- ffprobe.stderr.on("data", (data) => {
- stderr += data.toString();
- });
- ffprobe.on("error", (err) => {
- reject(new Error(`Failed to start ffprobe: ${err.message}`));
- });
- ffprobe.on("close", (code) => {
- resolve({ code, stdout, stderr });
- });
- });
-}
-
-const MIME_EXTENSIONS: Record<string, string> = {
- "audio/mpeg": ".mp3",
- "audio/mp3": ".mp3",
- "audio/wav": ".wav",
- "audio/x-wav": ".wav",
- "audio/ogg": ".ogg",
- "audio/aac": ".aac",
- "audio/m4a": ".m4a",
- "audio/x-m4a": ".m4a",
- "audio/mp4": ".m4a",
- "video/mp4": ".mp4",
- "video/quicktime": ".mov",
- "video/x-matroska": ".mkv",
-};
-
-/**
- * Gets the duration of media (video/audio) using ffprobe.
- */
-export async function getMediaDuration(
- bufferOrUrl: Buffer | string,
- mimeType?: string,
-): Promise<number | null> {
- // Extension from the detected type, otherwise from the mimeType hint
- const { inputPath, type, cleanup } = await prepareProbeInput(
- bufferOrUrl,
- "temp_media",
- () => (mimeType && MIME_EXTENSIONS[mimeType]) || "",
- );
-
- try {
- const { code, stdout, stderr } = await runFfprobe([
- "-v",
- "error",
- "-show_entries",
- "format=duration",
- "-of",
- "default=noprint_wrappers=1:nokey=1",
- inputPath,
- ]);
- if (code !== 0) {
- const details =
- typeof bufferOrUrl === "string"
- ? `url: ${bufferOrUrl}`
- : `buffer size: ${bufferOrUrl.length}, hint: ${mimeType}, detected: ${type?.mime}`;
- throw new Error(
- `ffprobe exited with code ${code}. stderr: ${stderr.trim()}. details: ${details}`,
- );
- }
- const duration = parseFloat(stdout.trim());
- return Number.isNaN(duration) ? null : duration;
- } finally {
- await cleanup();
- }
-}
-/**
- * Gets video metadata (width, height, fps, duration) using ffprobe.
- */
-export async function getVideoMetadata(bufferOrUrl: Buffer | string): Promise<{
- width: number;
- height: number;
- fps: number;
- duration: number;
-} | null> {
- const { inputPath, cleanup } = await prepareProbeInput(
- bufferOrUrl,
- "temp_video_meta",
- );
-
- try {
- const { code, stdout, stderr } = await runFfprobe([
- "-v",
- "error",
- "-select_streams",
- "v:0",
- "-show_entries",
- "stream=width,height,avg_frame_rate,duration",
- "-of",
- "json",
- inputPath,
- ]);
- if (code !== 0) {
- throw new Error(
- `ffprobe exited with code ${code}. stderr: ${stderr.trim()}`,
- );
- }
- try {
- const data = JSON.parse(stdout);
- const stream = data.streams?.[0];
-
- if (!stream) {
- return null;
- }
-
- const width = Number(stream.width);
- const height = Number(stream.height);
- const duration = parseFloat(stream.duration);
-
- // Parse avg_frame_rate (e.g., "30/1" or "24000/1001").
- // Chromium MediaRecorder WebM tracks often lack a
- // DefaultDuration element; ffprobe then reports 1000/1
- // (a ~1ms-per-timestamp fallback) even though the capture
- // is real 30/60fps. Guard against absurd values.
- let fps = 0;
- if (stream.avg_frame_rate) {
- const [num, den] = stream.avg_frame_rate.split("/");
- if (num && den) {
- fps = Number(num) / Number(den);
- }
- }
- // Never trust frame rates above 120fps or below 1fps from
- // container heuristics — treat them as unknown so we fall
- // back to a real measurement path.
- if (Number.isFinite(fps) && (fps < 1 || fps > 120)) fps = 0;
-
- return {
- width: Number.isNaN(width) ? 0 : width,
- height: Number.isNaN(height) ? 0 : height,
- fps: Number.isNaN(fps) ? 0 : fps,
- duration: Number.isNaN(duration) ? 0 : duration,
- };
- } catch (err) {
- throw new Error(`Failed to parse ffprobe output: ${err}`);
- }
- } finally {
- await cleanup();
- }
-}
-/**
- * Generates a thumbnail buffer from a video URL using FFmpeg and Sharp.
- */
-export async function generateVideoThumbnail(
- videoUrl: string,
- width: number,
- height: number,
-): Promise<Buffer> {
- return new Promise((resolve, reject) => {
- const ffmpeg = spawn("ffmpeg", [
- "-i",
- videoUrl,
- "-ss",
- "00:00:00.500",
- "-vframes",
- "1",
- "-f",
- "image2pipe",
- "-vcodec",
- "png",
- "-", // Output to stdout
- ]);
-
- const chunks: Buffer[] = [];
- const errChunks: Buffer[] = [];
-
- ffmpeg.stdout.on("data", (chunk) => {
- chunks.push(chunk);
- });
-
- ffmpeg.stderr.on("data", (chunk) => {
- errChunks.push(chunk);
- });
-
- ffmpeg.on("close", async (code) => {
- if (code !== 0) {
- const errorMessage = Buffer.concat(errChunks).toString();
- mediaLogger.error({ err: errorMessage }, "FFmpeg error");
- return reject(
- new Error(
- `FFmpeg process exited with code ${code}. stderr: ${errorMessage.trim()}`,
- ),
- );
- }
-
- const rawFrame = Buffer.concat(chunks);
- if (rawFrame.length === 0) {
- return reject(new Error("FFmpeg produced no output"));
- }
-
- try {
- const webpBuffer = await sharp(rawFrame)
- .resize({
- width,
- height,
- fit: "cover",
- position: "center",
- })
- .toFormat("webp", { quality: 80 })
- .toBuffer();
- resolve(webpBuffer);
- } catch (error) {
- reject(error);
- }
- });
-
- ffmpeg.on("error", (err) => {
- reject(err);
- });
- });
-}
-
-/**
- * Generates a thumbnail from an image buffer using Sharp.
- */
-export async function generateImageThumbnail(
- imageBuffer: Buffer,
- width: number,
- height: number,
-): Promise<Buffer> {
- return sharp(imageBuffer)
- .rotate() // Auto-rotate based on EXIF
- .resize({
- width,
- height,
- fit: "cover",
- position: "center",
- })
- .toFormat("webp", { quality: 70 })
- .toBuffer();
-}
-
-/**
- * Fetches a file from a URL and converts it to a base64 string
- */
-export async function urlToBase64(url: string): Promise<string> {
- const response = await fetch(url);
- if (!response.ok)
- throw new Error(`Failed to fetch image: ${response.statusText}`);
- const arrayBuffer = await response.arrayBuffer();
- return Buffer.from(arrayBuffer).toString("base64");
-}
-
-/**
- * Normalize a WebM video to a constant 60fps using FFmpeg.
- *
- * Browser MediaRecorder output is variable-frame-rate and often has no
- * DefaultDuration, which makes container metadata report bogus values
- * (e.g. 1000fps). Re-encoding the video track with `fps=60` produces a
- * true, constant 60fps stream with accurate container metadata.
- */
-export async function normalizeWebmTo60Fps(buffer: Buffer): Promise<Buffer> {
- const tempDir = os.tmpdir();
- const id = generateId();
- const tempIn = path.join(tempDir, `in_${id}.webm`);
- const tempOut = path.join(tempDir, `out_${id}.webm`);
-
- await fs.writeFile(tempIn, buffer);
-
- return new Promise((resolve, _reject) => {
- // Video: force constant 60fps. Audio: copy through untouched.
- // -vsync vfr + fps filter converts duplicate frames cleanly; -r 60
- // sets the container frame rate so metadata is honest.
- const ffmpeg = spawn("ffmpeg", [
- "-i",
- tempIn,
- "-map",
- "0:v:0",
- "-map",
- "0:a?",
- "-vf",
- "fps=60,format=yuv420p",
- "-r",
- "60",
- "-c:v",
- "libvpx-vp9",
- "-b:v",
- "8M",
- "-c:a",
- "copy",
- "-y",
- tempOut,
- ]);
-
- let errorOutput = "";
- ffmpeg.stderr.on("data", (data) => {
- errorOutput += data.toString();
- });
-
- ffmpeg.on("close", async (code) => {
- try {
- if (code === 0) {
- const fixedBuffer = await fs.readFile(tempOut);
- resolve(fixedBuffer);
- } else {
- mediaLogger.warn(
- { code, err: errorOutput },
- "ffmpeg normalizeWebmTo60fps failed",
- );
- resolve(buffer); // fallback to original
- }
- } catch (err) {
- mediaLogger.error({ err }, "Failed to read normalized webm");
- resolve(buffer);
- } finally {
- fs.unlink(tempIn).catch((err) => {
- mediaLogger.error(
- { err, path: tempIn },
- "Cleanup: Failed to unlink tempIn",
- );
- });
- fs.unlink(tempOut).catch((err) => {
- mediaLogger.error(
- { err, path: tempOut },
- "Cleanup: Failed to unlink tempOut",
- );
- });
- }
- });
-
- ffmpeg.on("error", (err) => {
- mediaLogger.error({ err }, "ffmpeg normalizeWebmTo60fps spawn error");
- resolve(buffer);
- });
- });
-}
-
-/**
- * Remuxes a WebM buffer using FFmpeg to fix missing track durations and metadata (kept for compat).
- */
-export async function fixWebmMetadata(buffer: Buffer): Promise<Buffer> {
- const tempDir = os.tmpdir();
- const id = generateId();
- const tempIn = path.join(tempDir, `in_${id}.webm`);
- const tempOut = path.join(tempDir, `out_${id}.webm`);
-
- await fs.writeFile(tempIn, buffer);
-
- return new Promise((resolve, _reject) => {
- const ffmpeg = spawn("ffmpeg", ["-i", tempIn, "-c", "copy", "-y", tempOut]);
-
- let errorOutput = "";
- ffmpeg.stderr.on("data", (data) => {
- errorOutput += data.toString();
- });
-
- ffmpeg.on("close", async (code) => {
- try {
- if (code === 0) {
- const fixedBuffer = await fs.readFile(tempOut);
- resolve(fixedBuffer);
- } else {
- mediaLogger.warn(
- { code, err: errorOutput },
- "ffmpeg fixWebmMetadata failed",
- );
- resolve(buffer); // fallback to original
- }
- } catch (err) {
- mediaLogger.error({ err }, "Failed to read fixed webm");
- resolve(buffer);
- } finally {
- fs.unlink(tempIn).catch((err) => {
- mediaLogger.error(
- { err, path: tempIn },
- "Cleanup: Failed to unlink tempIn",
- );
- });
- fs.unlink(tempOut).catch((err) => {
- mediaLogger.error(
- { err, path: tempOut },
- "Cleanup: Failed to unlink tempOut",
- );
- });
- }
- });
-
- ffmpeg.on("error", (err) => {
- mediaLogger.error({ err }, "ffmpeg fixWebmMetadata spawn error");
- resolve(buffer);
- });
- });
-}
-
-/**
- * Deeply calculates duration and FPS by running a full decode pass via FFmpeg.
- * Useful for browser WebM streams where headers are empty or inaccurate.
- */
-export async function calculateFallbackMetadata(
- bufferOrUrl: Buffer | string,
-): Promise<{ duration: number; fps: number } | null> {
- const isUrl = typeof bufferOrUrl === "string";
- let inputPath = "";
- let tempFile = "";
-
- if (isUrl) {
- inputPath = bufferOrUrl;
- } else {
- const tempDir = os.tmpdir();
- const id = generateId();
- tempFile = path.join(tempDir, `parse_${id}.webm`);
- await fs.writeFile(tempFile, bufferOrUrl);
- inputPath = tempFile;
- }
-
- return new Promise((resolve) => {
- const ffmpeg = spawn("ffmpeg", [
- "-v",
- "error",
- "-stats",
- "-i",
- inputPath,
- "-f",
- "null",
- "-",
- ]);
-
- let output = "";
- ffmpeg.stderr.on("data", (data) => {
- // ffmpeg -stats outputs continuously to stderr
- output += data.toString();
- });
-
- ffmpeg.on("close", async () => {
- if (tempFile) {
- try {
- await fs.unlink(tempFile);
- } catch (err) {
- mediaLogger.error(
- { err, path: tempFile },
- "Cleanup: Failed to unlink tempFile in fallback metadata",
- );
- }
- }
-
- // Look for the last "frame= xxx" and "time=HH:MM:SS.xx"
- const frameMatch = [...output.matchAll(/frame=\s*(\d+)/g)].pop();
- const timeMatch = [
- ...output.matchAll(/time=(\d{2}):(\d{2}):(\d{2}\.\d+)/g),
- ].pop();
-
- if (timeMatch) {
- const hours = parseInt(timeMatch[1], 10);
- const minutes = parseInt(timeMatch[2], 10);
- const seconds = parseFloat(timeMatch[3]);
- const duration = hours * 3600 + minutes * 60 + seconds;
-
- let fps = 30; // default proxy
- if (frameMatch && duration > 0) {
- const frames = parseInt(frameMatch[1], 10);
- if (frames > 0) {
- fps = frames / duration;
- }
- }
- // ffmpeg's -stats frame counter can exceed real presented
- // frames for variable-frame-rate WebM (raw block counts),
- // producing absurd fps. Clamp to a sane playback range so
- // storage/UI never shows 1000fps for a real capture.
- if (Number.isFinite(fps) && (fps < 1 || fps > 120)) fps = 30;
-
- resolve({ duration, fps });
- return;
- }
- resolve(null);
- });
-
- ffmpeg.on("error", () => resolve(null));
- });
-}
-
-interface FFProbeAudioStream {
- codec_name?: string;
- sample_rate?: string;
- channels?: number;
- bits_per_sample?: number;
- bits_per_raw_sample?: string;
- bit_rate?: string;
-}
-
-interface FFProbeResult {
- streams?: FFProbeAudioStream[];
-}
-
-export async function getAudioDetails(bufferOrUrl: Buffer | string): Promise<{
- sampleRate: number | null;
- channels: number | null;
- bitDepth: number | null;
- audioCodec: string | null;
- audioBitrate: number | null;
-} | null> {
- const { inputPath, cleanup } = await prepareProbeInput(
- bufferOrUrl,
- "temp_audio_details",
- );
-
- try {
- // 1. Check for audio stream and get parameters
- const { code, stdout, stderr } = await runFfprobe([
- "-v",
- "error",
- "-select_streams",
- "a:0",
- "-show_entries",
- "stream=codec_name,sample_rate,channels,bits_per_sample,bits_per_raw_sample,bit_rate",
- "-of",
- "json",
- inputPath,
- ]);
- if (code !== 0) {
- throw new Error(`ffprobe exited with code ${code}. stderr: ${stderr}`);
- }
- let streamInfo: FFProbeAudioStream | null;
- try {
- const data = JSON.parse(stdout) as FFProbeResult;
- streamInfo = data.streams?.[0] || null;
- } catch (err) {
- throw new Error(`Failed to parse ffprobe output: ${err}`);
- }
-
- if (!streamInfo) {
- return null;
- }
-
- // Extract base properties
- const sampleRate = streamInfo.sample_rate
- ? parseInt(streamInfo.sample_rate, 10)
- : null;
- const channels = streamInfo.channels != null ? streamInfo.channels : null;
-
- let bitDepth: number | null = null;
- if (streamInfo.bits_per_sample != null) {
- bitDepth = streamInfo.bits_per_sample;
- } else if (streamInfo.bits_per_raw_sample != null) {
- bitDepth = parseInt(streamInfo.bits_per_raw_sample, 10);
- }
-
- const audioCodec = streamInfo.codec_name || null;
- const audioBitrate = streamInfo.bit_rate
- ? parseInt(streamInfo.bit_rate, 10)
- : null;
-
- return {
- sampleRate,
- channels,
- bitDepth,
- audioCodec,
- audioBitrate,
- };
- } catch (err) {
- mediaLogger.error({ err }, "Failed to extract audio details");
- return null;
- } finally {
- await cleanup("Failed to delete temp file in getAudioDetails");
- }
-}
diff --git a/packages/media/server/utils/media-service.test.ts b/packages/media/server/utils/media-service.test.ts
deleted file mode 100644
index 5e3e82ba..00000000
--- a/packages/media/server/utils/media-service.test.ts
+++ /dev/null
@@ -1,115 +0,0 @@
-import type { FileData } from "@framefields/core";
-import {
- type EnvConfig,
- GetAssetEndpointBackend,
-} from "@framefields/server-utils";
-import { beforeEach, describe, expect, it, vi } from "vitest";
-import { ServerMediaService } from "./media-service.js";
-
-// Mock sharp
-vi.mock("sharp", () => {
- const metadata = vi.fn().mockResolvedValue({ width: 1920, height: 1080 });
- const sharpMock = vi.fn(() => ({
- metadata,
- }));
- return { default: sharpMock };
-});
-
-// Mock server-utils
-vi.mock("@framefields/server-utils", () => ({
- GetAssetEndpointBackend: vi.fn(),
- TOKENS: {
- ENV: Symbol.for("ENV"),
- },
-}));
-
-describe("ServerMediaService", () => {
- let service: ServerMediaService;
- const mockEnv: EnvConfig = {
- BASE_URL: "https://api.test.com",
- } as unknown as EnvConfig;
-
- beforeEach(() => {
- vi.clearAllMocks();
- service = new ServerMediaService();
- // Manually inject dependencies since we are unit testing the class
- Object.assign(service, { env: mockEnv });
- service.init();
- });
-
- describe("getImageDimensions", () => {
- it("should return width and height from sharp metadata", async () => {
- const buffer = Buffer.from("fake-image-data");
- const dimensions = await service.getImageDimensions(buffer);
-
- expect(dimensions).toEqual({ width: 1920, height: 1080 });
- const sharp = (await import("sharp")).default;
- expect(sharp).toHaveBeenCalledWith(buffer);
- });
- });
-
- describe("getImageBuffer", () => {
- it("should fetch image and return buffer", async () => {
- const mockFileData: FileData = {
- entity: { id: "asset-1", key: "assets/1.png" },
- } as unknown as FileData;
- const mockUrl = "https://api.test.com/api/v1/assets/asset-1.png";
- const mockArrayBuffer = new ArrayBuffer(8);
-
- vi.mocked(GetAssetEndpointBackend).mockReturnValue(mockUrl);
-
- const mockResponse = {
- arrayBuffer: vi.fn().mockResolvedValue(mockArrayBuffer),
- ok: true,
- };
- vi.stubGlobal("fetch", vi.fn().mockResolvedValue(mockResponse));
-
- const result = await service.getImageBuffer(mockFileData);
-
- expect(GetAssetEndpointBackend).toHaveBeenCalledWith(
- mockEnv.BASE_URL,
- mockFileData.entity,
- );
- expect(global.fetch).toHaveBeenCalledWith(mockUrl);
- expect(result).toBeInstanceOf(Buffer);
- expect(result.length).toBe(8);
- });
-
- it("should throw error if no URL is found", async () => {
- const mockFileData: FileData = { entity: null } as unknown as FileData;
- vi.mocked(GetAssetEndpointBackend).mockReturnValue(
- null as unknown as string,
- );
-
- await expect(service.getImageBuffer(mockFileData)).rejects.toThrow(
- "No URL found in FileData",
- );
- });
- });
-
- describe("resolveFileDataUrl", () => {
- it("should return null if data is null", () => {
- expect(service.resolveFileDataUrl(null)).toBeNull();
- });
-
- it("should return null if data has no entity", () => {
- expect(service.resolveFileDataUrl({} as unknown as FileData)).toBeNull();
- });
-
- it("should return URL if data has entity", () => {
- const mockFileData: FileData = {
- entity: { id: "asset-1", key: "assets/1.png" },
- } as unknown as FileData;
- const mockUrl = "https://api.test.com/api/v1/assets/asset-1.png";
- vi.mocked(GetAssetEndpointBackend).mockReturnValue(mockUrl);
-
- const result = service.resolveFileDataUrl(mockFileData);
-
- expect(result).toBe(mockUrl);
- expect(GetAssetEndpointBackend).toHaveBeenCalledWith(
- mockEnv.BASE_URL,
- mockFileData.entity,
- );
- });
- });
-});
diff --git a/packages/media/server/utils/media-service.ts b/packages/media/server/utils/media-service.ts
deleted file mode 100644
index 64023bd3..00000000
--- a/packages/media/server/utils/media-service.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import type { FileData, MediaService } from "@framefields/core";
-import {
- type EnvConfig,
- GetAssetEndpointBackend,
- TOKENS,
-} from "@framefields/server-utils";
-import { inject, injectable, postConstruct } from "inversify";
-import sharp from "sharp";
-
-@injectable()
-export class ServerMediaService implements MediaService {
- private baseUrl!: string;
-
- @inject(TOKENS.ENV)
- private env!: EnvConfig;
-
- @postConstruct()
- init() {
- this.baseUrl = this.env.BASE_URL;
- }
-
- async getImageDimensions(
- buffer: Buffer,
- ): Promise<{ width: number; height: number }> {
- const metadata = await sharp(buffer).metadata();
- return { width: metadata.width, height: metadata.height };
- }
-
- async getImageBuffer(imageInput: FileData): Promise<Buffer> {
- const urlToUse = imageInput?.entity
- ? GetAssetEndpointBackend(this.baseUrl, imageInput.entity)
- : null;
-
- if (!urlToUse) {
- throw new Error("No URL found in FileData");
- }
-
- const response = await fetch(urlToUse);
- return Buffer.from(await response.arrayBuffer());
- }
-
- resolveFileDataUrl(data: FileData | null): string | null {
- if (!data) return null;
-
- if (data.entity) {
- const fileAsset = data.entity;
- return GetAssetEndpointBackend(this.baseUrl, fileAsset);
- }
-
- return null;
- }
-}
diff --git a/packages/media/tsconfig.json b/packages/media/tsconfig.json
deleted file mode 100644
index a1700ba0..00000000
--- a/packages/media/tsconfig.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "@framefields/tsconfig/base.json",
- "compilerOptions": {
- "lib": ["ES2022", "DOM", "WebWorker"]
- },
- "include": ["shared", "browser", "server"],
- "exclude": ["dist", "build", "node_modules"]
-}
diff --git a/packages/media/tsdown.config.ts b/packages/media/tsdown.config.ts
deleted file mode 100644
index b7487b62..00000000
--- a/packages/media/tsdown.config.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { defineConfig } from "tsdown";
-
-export default defineConfig({
- entry: {
- server: "server/index.ts",
- },
- format: ["esm"],
- dts: true,
- clean: true,
- sourcemap: true,
- treeshake: true,
- external: ["@framefields/server-utils", "sharp"],
-});
diff --git a/packages/server-utils/CHANGELOG.md b/packages/server-utils/CHANGELOG.md
deleted file mode 100644
index 003ed9fb..00000000
--- a/packages/server-utils/CHANGELOG.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# @framefields/server-utils
-
-## 2.2.0-beta.3
-
-## 2.2.0-beta.2
-
-## 2.2.0-beta.1
-
-## 2.2.0-beta.0
-
-## 2.1.3
-
-## 2.1.2
-
-## 2.1.1
-
-### Patch Changes
-
-- rm aws bundle
-
-## 2.1.0
-
-## 2.0.11
-
-## 2.0.10
-
-## 2.0.9
-
-## 2.0.8
-
-## 2.0.7
-
-## 2.0.6
-
-## 2.0.5
-
-## 2.0.4
-
-## 2.0.3
-
-## 2.0.2
-
-## 2.0.1
-
-## 2.0.0
-
-## 1.4.3
-
-## 1.4.2
-
-## 1.4.1
-
-## 1.4.0
-
-## 1.3.2
-
-## 1.3.1
-
-### Patch Changes
-
-- init
diff --git a/packages/server-utils/package.json b/packages/server-utils/package.json
deleted file mode 100644
index bc3bc10c..00000000
--- a/packages/server-utils/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "@framefields/server-utils",
- "version": "2.2.0-beta.3",
- "private": false,
- "type": "module",
- "sideEffects": false,
- "license": "Apache-2.0",
- "module": "./dist/index.mjs",
- "types": "./dist/index.d.mts",
- "exports": {
- ".": {
- "types": "./dist/index.d.mts",
- "development": "./src/index.ts",
- "import": "./dist/index.mjs",
- "default": "./dist/index.mjs"
- }
- },
- "files": [
- "dist/**"
- ],
- "scripts": {
- "build": "tsdown",
- "dev": "tsdown --watch",
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
- },
- "devDependencies": {
- "@framefields/tsconfig": "workspace:*",
- "@types/node": "^24.1.0",
- "tsdown": "^0.19.0",
- "typescript": "^5.8.3"
- },
- "dependencies": {
- "@aws-sdk/client-s3": "^3.714.0",
- "@framefields/core": "workspace:*",
- "dotenv": "^16.4.5",
- "inversify": "^7.11.0",
- "pino": "^10.3.1",
- "zod": "^4.3.6"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/packages/server-utils/src/config.ts b/packages/server-utils/src/config.ts
deleted file mode 100644
index 7e565e92..00000000
--- a/packages/server-utils/src/config.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { config } from "dotenv";
-import { type EnvConfig, envSchema } from "./env-schema.js";
-import { logger } from "./logger.js";
-
-export { APP_VERSION } from "./version.js";
-
-let _envConfig: EnvConfig | null = null;
-
-export function setEnvConfig(customConfig: EnvConfig): void {
- _envConfig = customConfig;
-}
-
-export function getEnvConfig(): EnvConfig {
- if (!_envConfig) {
- config();
- const parsed = envSchema.safeParse(process.env);
- if (!parsed.success) {
- logger.error(
- { err: parsed.error.format() },
- "❌ Invalid environment variables",
- );
- throw new Error("Invalid environment variables");
- }
- _envConfig = parsed.data;
- }
- return _envConfig;
-}
-
-export const ENV_CONFIG: EnvConfig = new Proxy({} as EnvConfig, {
- get(_target, prop, receiver) {
- return Reflect.get(getEnvConfig(), prop, receiver);
- },
- ownKeys() {
- return Reflect.ownKeys(getEnvConfig());
- },
- getOwnPropertyDescriptor(_target, prop) {
- return Reflect.getOwnPropertyDescriptor(getEnvConfig(), prop);
- },
- getPrototypeOf() {
- return Reflect.getPrototypeOf(getEnvConfig());
- },
-});
diff --git a/packages/server-utils/src/di/index.ts b/packages/server-utils/src/di/index.ts
deleted file mode 100644
index a19c5ce6..00000000
--- a/packages/server-utils/src/di/index.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Container } from "inversify";
-
-const GLOBAL_CONTAINER_KEY = Symbol.for("gatewai.server-utils.container");
-
-// Using type-safe global accessor to avoid the 'any' type
-const globalObj = globalThis as unknown as {
- [GLOBAL_CONTAINER_KEY]?: Container;
-};
-
-if (!globalObj[GLOBAL_CONTAINER_KEY]) {
- globalObj[GLOBAL_CONTAINER_KEY] = new Container();
-}
-
-export const container = globalObj[GLOBAL_CONTAINER_KEY]!;
-export * from "./tokens.js";
diff --git a/packages/server-utils/src/di/tokens.ts b/packages/server-utils/src/di/tokens.ts
deleted file mode 100644
index ec425f2a..00000000
--- a/packages/server-utils/src/di/tokens.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export const TOKENS = {
- ENV: Symbol.for("ENV"),
- STORAGE: Symbol.for("STORAGE"),
- LOGGER: Symbol.for("LOGGER"),
- MEDIA: Symbol.for("MEDIA"),
- MEDIA_RENDERER: Symbol.for("MEDIA_RENDERER"),
- MEDIA_RESOLVER: Symbol.for("MEDIA_RESOLVER"),
-} as const;
diff --git a/packages/server-utils/src/env-schema.ts b/packages/server-utils/src/env-schema.ts
deleted file mode 100644
index 8077e292..00000000
--- a/packages/server-utils/src/env-schema.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import z from "zod";
-
-export const envSchema = z.object({
- BASE_URL: z.string().default("http://localhost:8081"),
- RENDERER_URL: z.string().optional(),
- NODE_ENV: z
- .enum(["development", "production", "staging", "test"])
- .default("development"),
- PORT: z.coerce.number().default(8081),
- LOG_LEVEL: z.string().default("info"),
- MAX_CONCURRENT_RENDERING_JOBS: z.coerce.number().default(100),
-
- // S3 / Object Storage Configuration
- R2_ASSETS_BUCKET: z.string().optional().default("local-assets"),
- R2_S3_API_ENDPOINT: z.string().optional().default("http://localhost:9000"),
- R2_ACCESS_KEY_ID: z.string().optional().default("local"),
- R2_SECRET_ACCESS_KEY: z.string().optional().default("local"),
- R2_CUSTOM_DOMAIN: z.string().optional(),
-});
-
-export type EnvConfig = z.infer<typeof envSchema>;
diff --git a/packages/server-utils/src/index.ts b/packages/server-utils/src/index.ts
deleted file mode 100644
index e3e88972..00000000
--- a/packages/server-utils/src/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export * from "./config.js";
-export * from "./di/index.js";
-export * from "./env-schema.js";
-export * from "./logger.js";
-export * from "./storage/index.js";
-export * from "./version.js";
-export * from "./video/index.js";
diff --git a/packages/server-utils/src/logger.ts b/packages/server-utils/src/logger.ts
deleted file mode 100644
index 3550cb62..00000000
--- a/packages/server-utils/src/logger.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-import pino from "pino";
-import { APP_VERSION } from "./version.js";
-
-// Global context explicitly for logger
-// We initialize it with a dummy fallback for browser compatibility
-export let loggerContext: {
- getStore(): Record<string, unknown> | undefined;
- run<R, TArgs extends unknown[]>(
- store: Record<string, unknown>,
- callback: (...args: TArgs) => R,
- ...args: TArgs
- ): R;
-} = {
- getStore: () => undefined,
- run: (_store, callback, ...args) => callback(...args),
-};
-
-if (typeof (globalThis as { window?: unknown }).window === "undefined") {
- // Node environment: Replace with real AsyncLocalStorage asynchronously
- // We use /* @vite-ignore */ to prevent Vite from warning about node-only modules
- import(/* @vite-ignore */ "node:async_hooks")
- .then((module) => {
- if (module?.AsyncLocalStorage) {
- loggerContext = new module.AsyncLocalStorage<Record<string, unknown>>();
- }
- })
- .catch(() => {
- // Fallback if unavailable
- });
-}
-
-// Define Logger interface to match what we had in types
-export interface Logger {
- trace: (...args: unknown[]) => void;
- info: (...args: unknown[]) => void;
- warn: (...args: unknown[]) => void;
- error: (...args: unknown[]) => void;
- debug: (...args: unknown[]) => void;
- fatal: (...args: unknown[]) => void;
-}
-
-const targets: pino.TransportTargetOptions[] = [];
-export const logger = pino({
- level: (typeof process !== "undefined" && process.env?.LOG_LEVEL) || "info",
- timestamp: pino.stdTimeFunctions.isoTime,
- base: {
- env:
- (typeof process !== "undefined" && process.env?.NODE_ENV) ||
- "development",
- version: APP_VERSION || "unknown",
- },
- mixin() {
- return loggerContext.getStore() || {};
- },
- redact: {
- paths: [
- "email",
- "password",
- "accessToken",
- "refreshToken",
- "req.headers.authorization",
- "req.headers.x-api-key",
- ],
- remove: true,
- },
- ...(targets.length > 0 && {
- transport: {
- targets,
- },
- }),
-});
-
-export const apiLogger = logger.child({ component: "api" });
-export const mediaLogger = logger.child({ component: "media" });
-export const rendererLogger = logger.child({ component: "renderer" });
diff --git a/packages/server-utils/src/storage/asset-urls.ts b/packages/server-utils/src/storage/asset-urls.ts
deleted file mode 100644
index c5dbeab9..00000000
--- a/packages/server-utils/src/storage/asset-urls.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import type { FileAsset, FileData } from "@framefields/core";
-
-export function GetAssetEndpointBackend(
- baseUrl: string,
- fileAsset: FileAsset,
-): string {
- if (fileAsset.url) {
- return fileAsset.url;
- }
- if (fileAsset.key) {
- if (
- fileAsset.key.startsWith("http://") ||
- fileAsset.key.startsWith("https://") ||
- fileAsset.key.startsWith("file://")
- ) {
- return fileAsset.key;
- }
- if (fileAsset.key.startsWith("/")) {
- return `file://${fileAsset.key}`;
- }
- }
- if (baseUrl) {
- const basePath = baseUrl.replace(/\/+$/, "");
- return `${basePath}/${fileAsset.key || fileAsset.id}`;
- }
- return fileAsset.key || fileAsset.id;
-}
-
-export function ResolveFileDataUrl(
- baseUrl: string,
- data: FileData,
-): string | null {
- if (!data?.entity) return null;
- return GetAssetEndpointBackend(baseUrl, data.entity);
-}
diff --git a/packages/server-utils/src/storage/index.ts b/packages/server-utils/src/storage/index.ts
deleted file mode 100644
index 44eb3d3e..00000000
--- a/packages/server-utils/src/storage/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export * from "./asset-urls.js";
-export * from "./interface.js";
-export * from "./s3-storage.js";
diff --git a/packages/server-utils/src/storage/interface.ts b/packages/server-utils/src/storage/interface.ts
deleted file mode 100644
index 36c1f8fe..00000000
--- a/packages/server-utils/src/storage/interface.ts
+++ /dev/null
@@ -1 +0,0 @@
-export type { StorageService } from "@framefields/core";
diff --git a/packages/server-utils/src/storage/s3-storage.ts b/packages/server-utils/src/storage/s3-storage.ts
deleted file mode 100644
index 05884867..00000000
--- a/packages/server-utils/src/storage/s3-storage.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-import fs from "node:fs/promises";
-import {
- GetObjectCommand,
- PutObjectCommand,
- S3Client,
-} from "@aws-sdk/client-s3";
-import { inject, injectable, postConstruct } from "inversify";
-import { TOKENS } from "../di/tokens.js";
-import type { EnvConfig } from "../env-schema.js";
-import type { StorageService } from "./interface.js";
-
-@injectable()
-export class S3StorageService implements StorageService {
- private client?: S3Client;
- private defaultBucket: string = "framefields-renders";
- private customDomain?: string;
-
- constructor(@inject(TOKENS.ENV) private env: EnvConfig) {}
-
- @postConstruct()
- public init(): void {
- const endpoint = this.env.R2_S3_API_ENDPOINT;
- const accessKeyId = this.env.R2_ACCESS_KEY_ID;
- const secretAccessKey = this.env.R2_SECRET_ACCESS_KEY;
- this.defaultBucket = this.env.R2_ASSETS_BUCKET || "framefields-renders";
- this.customDomain = this.env.R2_CUSTOM_DOMAIN;
-
- if (endpoint && accessKeyId && secretAccessKey) {
- this.client = new S3Client({
- region: "auto",
- endpoint,
- credentials: {
- accessKeyId,
- secretAccessKey,
- },
- });
- }
- }
-
- async uploadToStorage(
- buffer: Buffer,
- key: string,
- contentType: string = "application/octet-stream",
- bucketName?: string,
- ): Promise<void> {
- if (!this.client) {
- throw new Error("S3 storage client is not configured");
- }
- const bucket = bucketName || this.defaultBucket;
- await this.client.send(
- new PutObjectCommand({
- Bucket: bucket,
- Key: key,
- Body: buffer,
- ContentType: contentType,
- }),
- );
- }
-
- async uploadFileToStorage(
- filePath: string,
- key: string,
- contentType: string = "application/octet-stream",
- bucketName?: string,
- ): Promise<void> {
- const buffer = await fs.readFile(filePath);
- await this.uploadToStorage(buffer, key, contentType, bucketName);
- }
-
- async getFromStorage(key: string, bucketName?: string): Promise<Buffer> {
- if (!this.client) {
- throw new Error("S3 storage client is not configured");
- }
- const bucket = bucketName || this.defaultBucket;
- const res = await this.client.send(
- new GetObjectCommand({
- Bucket: bucket,
- Key: key,
- }),
- );
- if (!res.Body) {
- throw new Error(`Empty body returned for storage key: ${key}`);
- }
- const bytes = await res.Body.transformToByteArray();
- return Buffer.from(bytes);
- }
-
- getPublicUrl(key: string, bucketName?: string): string {
- if (this.customDomain) {
- return `https://${this.customDomain}/${key}`;
- }
- return `/${bucketName || this.defaultBucket}/${key}`;
- }
-}
-
-export { S3StorageService as R2StorageService };
diff --git a/packages/server-utils/src/version.ts b/packages/server-utils/src/version.ts
deleted file mode 100644
index fae0a672..00000000
--- a/packages/server-utils/src/version.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import pkg from "../../../package.json" with { type: "json" };
-
-/**
- * App version read from the monorepo root package.json.
- * Used for version-aware render fingerprinting.
- */
-export const APP_VERSION = pkg.version ?? "unknown";
diff --git a/packages/server-utils/src/video/index.ts b/packages/server-utils/src/video/index.ts
deleted file mode 100644
index b4024d1d..00000000
--- a/packages/server-utils/src/video/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./media-resolver.service.interface.js";
-export * from "./video-renderer.service.interface.js";
diff --git a/packages/server-utils/src/video/media-resolver.service.interface.ts b/packages/server-utils/src/video/media-resolver.service.interface.ts
deleted file mode 100644
index 4c84f79e..00000000
--- a/packages/server-utils/src/video/media-resolver.service.interface.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import type { FileData, VirtualMediaData } from "@framefields/core";
-
-export interface MediaResolutionResult {
- buffer?: Buffer;
- mimeType?: string;
- fileKey?: string;
- assetId?: string;
- url?: string;
- virtualMedia?: VirtualMediaData | FileData;
-}
-
-export interface ResolveOptions {
- userId?: string;
- fileKey?: string;
- frame?: number;
- timeMs?: number;
- codec?:
- | "h264"
- | "h265"
- | "vp8"
- | "vp9"
- | "mp3"
- | "wav"
- | "aac"
- | "opus"
- | "gif";
- imageFormat?: "png" | "jpeg";
- pixelFormat?: "yuv420p" | "yuva420p";
- audioCodec?: "aac" | "opus" | "mp3";
-}
-export type ResolvedFileType =
- | "Video"
- | "Audio"
- | "Image"
- | "LUT"
- | "GIF"
- | "Caption";
-export interface IMediaResolverService {
- resolveToBuffer(
- media: VirtualMediaData,
- type: ResolvedFileType,
- options?: ResolveOptions,
- ): Promise<MediaResolutionResult>;
-
- resolveToUrl(
- media: VirtualMediaData,
- type: ResolvedFileType,
- options?: ResolveOptions,
- ): Promise<MediaResolutionResult>;
-
- resolveToAsset(
- media: VirtualMediaData,
- type: ResolvedFileType,
- options?: ResolveOptions,
- ): Promise<MediaResolutionResult>;
-}
diff --git a/packages/server-utils/src/video/video-renderer.service.interface.ts b/packages/server-utils/src/video/video-renderer.service.interface.ts
deleted file mode 100644
index 1beb0a25..00000000
--- a/packages/server-utils/src/video/video-renderer.service.interface.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-import type { ExtendedLayer, VirtualMediaData } from "@framefields/core";
-
-export type RenderMediaProgress = {
- renderedFrames: number;
- encodedFrames: number;
- encodedDoneIn: number | null;
- renderedDoneIn: number | null;
- renderEstimatedTime: number;
- progress: number;
-};
-
-export interface SceneProps {
- layers?: ExtendedLayer[];
- viewportWidth: number;
- viewportHeight: number;
- containerWidth?: number;
- containerHeight?: number;
- src?: string;
- isAudio?: boolean;
- type?: "Video" | "Audio" | "Image" | "SVG" | "Text" | string;
- data?: unknown;
- virtualMedia?: VirtualMediaData;
- durationInMS?: number;
- backgroundColor?: string;
- [key: string]: unknown;
-}
-
-export type RenderMediaOnProgress = (progress: RenderMediaProgress) => void;
-
-export interface MediaRenderOptions {
- compositionId: string;
- inputProps: SceneProps;
- width: number;
- height: number;
- fps: number;
- durationInFrames: number;
- durationSeconds?: number;
- codec?:
- | "h264"
- | "h265"
- | "vp8"
- | "vp9"
- | "mp3"
- | "wav"
- | "aac"
- | "opus"
- | "gif"
- | "cube";
- imageFormat?: "png" | "jpeg";
- pixelFormat?: "yuv420p" | "yuva420p";
- audioCodec?: "aac" | "opus" | "mp3";
- /** Render from this time (inclusive). Omit to start from beginning. */
- startMS?: number;
- /** Render up to this time (exclusive). Omit to render until end. */
- endMS?: number;
- onProgress?:
- | RenderMediaOnProgress
- | ((progress: {
- totalSize: number;
- downloaded: number;
- percent: number;
- }) => unknown);
- envVariables?: Record<string, string>;
- // Required for lambda
- fileKey?: string;
- userId?: string;
- /** The specific frame number to render for still image compositions */
- frame?: number;
- timeMs?: number;
-}
-
-export interface IMediaRendererResult {
- fileKey?: string;
- filePath?: string;
- /** Render fingerprint (version-aware hash of VirtualMediaData) */
- fingerprint?: string;
- /** True when result was served from cache */
- cached?: boolean;
- assetId?: string;
- metadata?: {
- width?: number;
- height?: number;
- durationMs?: number;
- fps?: number;
- };
-}
-
-export interface IMediaRendererService {
- renderComposition(options: MediaRenderOptions): Promise<IMediaRendererResult>;
- renderVirtualMedia(
- media: VirtualMediaData,
- type: "Video" | "Audio" | "Image" | "GIF" | "LUT",
- options?: Partial<MediaRenderOptions>,
- ): Promise<IMediaRendererResult>;
-
- renderStillComposition(
- options: MediaRenderOptions,
- ): Promise<IMediaRendererResult>;
-
- renderVirtualImage(
- media: VirtualMediaData,
- options?: Partial<MediaRenderOptions> & { frame?: number; timeMs?: number },
- ): Promise<IMediaRendererResult>;
-
- renderVirtualAudio(
- media: VirtualMediaData,
- options?: Partial<MediaRenderOptions>,
- ): Promise<IMediaRendererResult>;
-}
diff --git a/packages/server-utils/tsconfig.json b/packages/server-utils/tsconfig.json
deleted file mode 100644
index fadf0855..00000000
--- a/packages/server-utils/tsconfig.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "@framefields/tsconfig/base.json",
- "compilerOptions": {
- "lib": ["ES2022", "ESNext", "DOM", "DOM.Iterable"]
- },
- "include": ["."],
- "exclude": ["dist", "build", "node_modules"]
-}
diff --git a/packages/server-utils/tsdown.config.ts b/packages/server-utils/tsdown.config.ts
deleted file mode 100644
index 94257a01..00000000
--- a/packages/server-utils/tsdown.config.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { defineConfig } from "tsdown";
-
-export default defineConfig({
- entry: ["src/index.ts"],
- format: ["esm"],
- dts: true,
- clean: true,
- sourcemap: true,
- treeshake: true,
-});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 310f2855..6dda4d0b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2519,49 +2519,6 @@ importers:
specifier: ^1.24.0
version: 1.30.0
- packages/media:
- dependencies:
- '@framefields/core':
- specifier: workspace:*
- version: link:../core
- '@framefields/server-utils':
- specifier: workspace:*
- version: link:../server-utils
- fflate:
- specifier: ^0.8.3
- version: 0.8.3
- file-type:
- specifier: '>=21.3.2'
- version: 22.0.1
- inversify:
- specifier: '*'
- version: 7.11.0([email protected])
- sharp:
- specifier: ^0.35.4
- version: 0.35.5(@types/[email protected])
- devDependencies:
- '@framefields/tsconfig':
- specifier: workspace:*
- version: link:../tsconfig
- '@types/node':
- specifier: ^24.1.0
- version: 24.10.14
- jsdom:
- specifier: ^29.1.0
- version: 29.1.0(@noble/[email protected])([email protected])
- tsdown:
- specifier: ^0.19.0
- typescript:
- specifier: ^5.8.3
- version: 5.8.3
- vitest:
- specifier: ^4.1.11
- vitest-mock-extended:
- specifier: ^4.0.0
-
packages/node-sdk:
dependencies:
'@framefields/core':
@@ -2838,40 +2795,6 @@ importers:
specifier: ^5.0.1
- packages/server-utils:
- dependencies:
- '@aws-sdk/client-s3':
- specifier: ^3.714.0
- version: 3.1010.0
- '@framefields/core':
- specifier: workspace:*
- version: link:../core
- dotenv:
- specifier: ^16.4.5
- version: 16.6.1
- inversify:
- specifier: ^7.11.0
- version: 7.11.0([email protected])
- pino:
- specifier: ^10.3.1
- version: 10.3.1
- zod:
- specifier: ^4.3.6
- version: 4.3.6
- devDependencies:
- '@framefields/tsconfig':
- specifier: workspace:*
- version: link:../tsconfig
- '@types/node':
- specifier: ^24.1.0
- version: 24.10.14
- tsdown:
- specifier: ^0.19.0
- typescript:
- specifier: ^5.8.3
- version: 5.8.3
-
packages/tensor-webgpu:
dependencies:
'@framefields/core':
@@ -3023,113 +2946,46 @@ packages:
'@asamuzakjp/[email protected]':
resolution: {integrity: sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==}
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==}
- engines: {node: '>=16.0.0'}
-
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==}
-
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==}
-
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==}
-
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==}
- engines: {node: '>=16.0.0'}
-
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==}
-
- '@aws-crypto/[email protected]':
- resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-CcAkVyEUKGngbEqJdVdSc53Iy52+XzVL5NIcTen2BlK8UByNC1DThVtf5VKSrNzyA+SqyTvs+3S+knVBbOUizQ==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-XUqXFrn/FGLLzO5OXu9iAtt492kj9Z7Yk8b0iPFxeJoIhaa61YOgR84chOExvnjm2+JTYyGNZiVPmgnFB3jxXA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-Kg20OP7F+rrWMFjPv/aCsNUt/qDbvh1bLJFQM8k/8fnxowR/DA67qL5KHzWWN5gwJCYplS3KQde6P/knOB+lxg==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-i3GuX+lowD892F3IuJf8o6AbyDupMTdyTxQrCJGcn71ni5hTZ82L4nQhcdumxZ7XPJRJJVHS/CR3uYOIIs0PVA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-nslpzUCTI9b2IQMWSd6mSAXldBexPc8rr0d3dXUutXYFLFaTdsHa2GD7sJdsn3PhyjK0O5K8ypd6zi+RXXPVlg==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-2VbTstbjKdT+yKi8m7b3a9CiVac+pL/IY2PHJwsaGkkHmuuqkJZIErPck1h6P3T9ghQMLSdMPyW6Qp7Di5swFg==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-X0B8AlQY507i5DwjLByeU2Af4ARsl9Vr84koDcXCbAkplmU+1xBFWxEPrWRAoh56waBne/yJqEloSwvRf4x6XA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-rsRJcW2iFUhCgclyD6OSbMEaPl8Eu0qSeRZb2uuCK1ViZ66hl5wOe/p6Vr6MO3b+ydyKgFeqza2p6tZThvILlw==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-ey9Lelj001+oOfrbKmS6R2CJAiXX7QKY4Vj9VJv6L2eE6/VjD8DocHIoYqztTm70xDLR4E1jYPTKfIui+eRNDA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-pnKdh0Br7OJPj+7qKjzgTfDTFW0RhEMKXNDR2jv9CAM4oHuG/4z3hRh8KtutLfpmItuRtDbKBmwWkDqHwwAWXw==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-5flXSnKHMloObNF+9N0cupKegnH1Z37cdVlpETVgx8/rAhCe+VNlkcZH3HDg2SDn9bI765S+rhNPXGDJJPfbtA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-kcjvAxqQEV8yuwkX58RelNn3ne65o7JgRWf3Z/gVvbi7Xuw1qSDLJlatrLD76+40cmRxmNkLxBoyp/vAQChQ5g==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-gEWo54nfqp2jABMu6HNsjVC4hDLpg9HC8IKSJnp0kqWtxIJYHTmiLSsIfI4ScQjxEwpB+jOOH8dOLax1+hy/Hw==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-CeQHSbE2CnVdaHIJ/NayRaCecIER+Pm9faUPkmRATO54rCoMTEPSbVieGHzEwvm1dZM2HIs6qQZCznhayNTWJQ==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-hah8if3/B/Q+LBYN5FukyQ1Mym6PLPDsBOBsIgNEYD6wLyZg0UmUF/OKIVC3nX9XH8TfTPuITK+7N/jenVACWA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-WNttSyr6e8innPtBSty//CdnqJcgZN6eAbtw3v/CR2IObz6MYZEo8eusdtuCHJ2ujwFqC2bSPHVyhXGHx8HruQ==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-Tpl7SRaPoOLT32jbTWchPsn52hYYgJ0kpiFgnwk8pxTANQdUymVSZkzFvv1+oOgZm1CrbQUP9MBeoMZ9IzLZjA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-Yj6kZFJQdbR+PygTkqdVLPHHpdDpOS9GCYVcDCuweCRRig9LF24ELQBMfyUw1vspvrZJUfnOGVyMjhaL094ahw==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-p+R+PYR5Z7Gjqf/6pvbCnzEHcqPCpLzR7Yf127HjJ6EAb4hUcD+qsNRnuww1sB/RmSeCLxyay8FMyqREw4p1RA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-FnpPhdY4qUGtX/8X6eKxh+uD+9Y19i9FYibgk4SBe0M935s9vocHkHzaxaMNk+YkHmvzgdu8cHA5SCoeU+kkew==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-rWCmh8o7QY4CsUj63qopzMzkDq/yPpkrpb+CnjBEFSOg/02T/we7sSTVg4QsDiVS9uwZ8VyONhq98qt+pIh3KA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-TJF25Ndwy2HxcVj6oxMgp8qVlJAawlExHYBXqhuC6Zt2m+A7WpdkjBD6QglNbiArlteYljZHEY3R7KKmno6ISA==}
engines: {node: '>=20.0.0'}
@@ -3140,122 +2996,30 @@ packages:
peerDependencies:
'@aws-sdk/client-s3': ^3.1151.0
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-WR525Rr2QJSETa9a050isktyWi/4yIGcmY3BQ1kpHqb0LqUglQHCS8R27dTJxxWNZvQ0RVGtEZjTCbZJpyF3Aw==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-5DTBTiotEES1e2jOHAq//zyzCjeMB78lEHd35u15qnrid4Nxm7diqIf9fQQ3Ov0ChH1V3Vvt13thOnrACmfGVQ==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-BmdDjqvnuYaC4SY7ypHLXfCSsGYGUZkjCLSZyUAAYn1YT28vbNMJNDwhlfkvvE+hQHG5RJDlEmYuvBxcB9jX1g==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-wAr2REfKsqoKQ+OkNqvOShnBoh+nkPurDKW7uAeVSu6kUECnWlSJiPvnoqxGlfousEY/v9LfS9sNc46hjSYDIQ==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-KaUoFuoFPziIa98DSQsTPeke1gvGXlc5ZGMhy+b+nLxZ4A7jmJgLzjEF95l8aOQN2T/qlPP3MrAyELm8ExXucw==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-CWl5UCM57WUFaFi5kB7IBY1UmOeLvNZAZ2/OZ5l20ldiJ3TiIz1pC65gYj8X0BCPWkeR1E32mpsCk1L1I4n+lA==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-BnnvYs2ZEpdlmZ2PNlV2ZyQ8j8AEkMTjN79y/YA475ER1ByFYrkVR85qmhni8oeTaJcDqbx364wDpitDAA/wCA==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-yhva/xL5H4tWQgsBjwV+RRD0ByCzg0TcByDCLp3GXdn/wlyRNfy8zsswDtCvr1WSKQkSQYlyEzPuWkJG0f5HvQ==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-UfgAQosf4IEXldMsyntVuHsJnaQzlH6pmkOr6dQy7CaOYSlGz3mWiW4Di7XfQ/kPJP6xE7oMshz1V0E8RqGdRg==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-wqlK0yO/TxEC2UsY9wIlqeeutF6jjLe0f96Pbm40XscTo57nImUk9lBcw0dPgsm0sppFtAkSlDrfpK+pC30Wqw==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-62XRl1GDYPpkt7cx1AX1SPy9wgNE9Iw/NPuurJu4lmhCWS7sGKO+kS53TQ8eRmIxy3skmvNInnk0ZbWrU5Dpyg==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-SlDol5Z+C7Ivnc2rKGqiqfSUmUZzY1qHfVs9myt/nxVwswgfpjdKahyTzLTx802Zfq0NFRs7AejwKzzzl5Co2w==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-B01jdXJtAW/XOiUzGdI2mz67WyEHbGEc9X6Euzw3bjLAa+txTqdZDER4X2FsIEcXzV2ABqudVZ5thali8tCCzQ==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-1eD4uhTDeambO/PNIDVG19A6+v4NdD7xzwLHDutHsUqz0B+i661MwQB2eYO4/crcCvCiQG4SRm1k81k54FEIvw==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-cFDXfEbXaGwbnpvR/DyqfxfjxpjXVRVthQLgkwvcfDS5u3+8G9WSj1X1Ag/pTRg/QOeOno1Tq3ycEdrKsCUcOA==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-n1qYFD+tbqZuyskVaxUE+t10AUz9g3qzDw3Tp6QZDKmqsjfDmZBd4GIk2EKJJNtcCBtE5YiUjDYA+3djFAFBBg==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-KCPLuTqN9u0Rr38Arln78fRG9KXpzsPWmof+PZzfAHMMQq2QED6YjQrkrfiH7PDefLWEposY1o4/eGwrmKA4JA==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-wDU36ofhabZYu+d2KSriyDbwzxNoaOp+4dG0p3qkabk7HeALR5nIWyQbjoyJZLn3iqWkv/xNdyUfbfevDVDzzg==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-Atfcy4E++beKtwJHiDln2Nby8W/mam64opFPTiHEqgsthqeydFS1pY+OUlN1ouNOmf8ArPU/6cDS65anOP3KQw==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-v/clNZzZnDxGyvpHMOGpJKVXFAExJzUNAAjaWGdcx8QAcXLGwTaOkw33p5SHAi0YAioK32xB3hWwOekRVfmfKg==}
engines: {node: '>=20.0.0'}
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-HzSD8PMFrvgi2Kserxuff5VitNq2sgf3w9qxmskKDiDTThWfVteJxuCS9JXiPIPtmCrp+7N9asfIaVhBFORllA==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-Uh93L5sXFNbyR5sEPMzUU8tJ++Ku97EY4udmC01nB8Zu+xfBPwpIwJ6F7snqQeq8h2pf+8SGN5/NoytfKgYPIw==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==}
- engines: {node: '>=20.0.0'}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-B3KGXJviV2u6Cdw2SDY2aDhoJkVfY/Q/Trwk2CMSkikE1Oi6gRzxhvhIfiRpHfmIsAhV4EA54TVEX8K6CbHbkA==}
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-Hz6EZMUAEzqUd7e+vZ9LE7mn+5gMbxltXy18v+YSFY+9LBJz15wkNZvw5JqfX3z0FS9n3bgUtz3L5rAsfh4YlA==}
- engines: {node: '>=20.0.0'}
- peerDependencies:
- aws-crt: '>=1.0.0'
- peerDependenciesMeta:
- aws-crt:
- optional: true
-
- '@aws-sdk/[email protected]':
- resolution: {integrity: sha512-iitV/gZKQMvY9d7ovmyFnFuTHbBAtrmLnvaSb/3X8vOKyevwtpmEtyc8AdhVWZe0pI/1GsHxlEvQeOePFzy7KQ==}
- engines: {node: '>=20.0.0'}
-
'@aws-sdk/[email protected]':
resolution: {integrity: sha512-ctjVSyCMegrWfXlx6VqzSBFI6UqmQ5ZlnfMhdLIiWmhoH8UAQxSCP5N3OpG7X3k4LnS7ou74C4mt20+bfTW2aQ==}
engines: {node: '>=20.0.0'}
- resolution: {integrity: sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==}
- engines: {node: '>=18.0.0'}
-
resolution: {integrity: sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==}
engines: {node: '>=18.0.0'}
@@ -3342,9 +3106,6 @@ packages:
cpu: [x64]
os: [win32]
- '@borewit/[email protected]':
- resolution: {integrity: sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==}
-
'@bramus/[email protected]':
resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==}
hasBin: true
@@ -3799,28 +3560,6 @@ packages:
'@types/node':
optional: true
- '@inversifyjs/[email protected]':
- resolution: {integrity: sha512-WlzR9xGadABS9gtgZQ+luoZ8V6qm4Ii6RQfcfC9Ho2SOlE6ZuemFo7PKJvKI0ikm8cmKbU8hw5UK6E4qovH21w==}
-
- '@inversifyjs/[email protected]':
- resolution: {integrity: sha512-U2xYsPrJTz5za2TExi5lg8qOWf8TEVBpN+pQM7B8BVA2rajtbRE9A66SLRHk8c1eGXmg+0K4Hdki6tWAsSQBUA==}
- peerDependencies:
- reflect-metadata: ~0.2.2
-
- '@inversifyjs/[email protected]':
- resolution: {integrity: sha512-Nm7BR6KmpgshIHpVQWuEDehqRVb6GBm8LFEuhc2s4kSZWrArZ15RmXQzROLk4m+hkj4kMXgvMm5Qbopot/D6Sg==}
-
- '@inversifyjs/[email protected]':
- resolution: {integrity: sha512-R/JAdkTSD819pV1zi0HP54mWHyX+H2m8SxldXRgPQarS3ySV4KPyRdosWcfB8Se0JJZWZLHYiUNiS6JvMWSPjw==}
-
- '@inversifyjs/[email protected]':
- resolution: {integrity: sha512-EzRamZzNgE9Sn3QtZ8NncNa2lpPMZfspqbK6BWFguWnOpK8ymp2TUuH46ruFHZhrHKnknPd7fG22ZV7iF517TQ==}
-
- '@inversifyjs/[email protected]':
- resolution: {integrity: sha512-Cp77C4d2wLaHXiUB7iH6Cxb7i1lD/YDuTIHLTDzKINqGSz0DCSoL/Dg2wVkW/6Qx03r/yQMLJ+32Agl32N2X8g==}
- peerDependencies:
- reflect-metadata: ~0.2.2
-
'@jridgewell/[email protected]':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
@@ -4016,9 +3755,6 @@ packages:
resolution: {integrity: sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==}
engines: {node: '>= 20.19.0'}
- '@nodable/[email protected]':
- resolution: {integrity: sha512-8L9xFeTYKhm49xfIypoe2W5wV1m/3Z58kT+7kR9A8OyFxcPduI4VmxaUMQyKYrRjUoLLSXv6EKKID5Tvj9cUVw==}
-
'@nodelib/[email protected]':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
@@ -4716,259 +4452,36 @@ packages:
'@shinyoshiaki/[email protected]':
resolution: {integrity: sha512-SdsNhLjQh4onBlyPrn4ia1Pdx5bXT88G/LIEpOYAjx2u4xeY/m/HB5yHqlkJB1uQR3Zw4R3hBWLj46STRAN0rg==}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-xolrFw6b+2iYGl6EcOL7IJY71vvyZ0DJ3mcKtpykqPe2uscwtzDZJa1uVQXyP7w9Dd+kGwYnPbMsJrGISKiY/Q==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-jA5k5Udn7Y5717L86h4EIv06wIr3xn8GM1qHRi/Nf31annXcXHJjBKvgztnbn2TxH3xWrPBfgwHsOwZf0UmQWw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-St+kVicSyayWQca+I1rGitaOEH6uKgE8IUWoYnnEX26SWdWQcL6LvMSD19Lg+vYHKdT9B2Zuu7rd3i6Wnyb/iw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-YxFiiG4YDAtX7WMN7RuhHZLeTmRRAOyCbr+zB8e3AQzHPnUhS8zXjB1+cniPVQI3xbWsQPM0X2aaIkO/ME0ymw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-o9VycsYNtgC+Dy3I0yrwCqv9CWicDnke0L7EVOrZtJpjb2t0EjaEofmMrYc0T1Kn3yk32zm6cspxF9u9Bj7e5w==}
- engines: {node: '>=18.0.0'}
-
'@smithy/[email protected]':
resolution: {integrity: sha512-3hJiwG1F5t1SoXqp/yOCmYXziyx7ZVqF63S5W6YU201e/qwVaHPex+E/3vvyY9a3ORq/b+BydeNZpP2saQ9X2g==}
engines: {node: '>=18.0.0'}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-cr2lR792vNZcYMriSIj+Um3x9KWrjcu98kn234xA6reOAFMmbRpQMOv8KPgEmLLtx3eldU6c5wALKFqNOhugmg==}
- engines: {node: '>=18.0.0'}
-
'@smithy/[email protected]':
resolution: {integrity: sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==}
engines: {node: '>=18.0.0'}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-FE3bZdEl62ojmy8x4FHqxq2+BuOHlcxiH5vaZ6aqHJr3AIZzwF5jfx8dEiU/X0a8RboyNDjmXjlbr8AdEyLgiA==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-XUSuMxlTxV5pp4VpqZf6Sa3vT/Q75FVkLSpSSE3KkWBvAQWeuWt1msTv8fJfgA4/jcJhrbrbMzN1AC/hvPmm5A==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-7epsAZ3QvfHkngz6RXQYseyZYHlmWXSTPOfPmXkiS+zA6TBNo1awUaMFL9vxyXlGdoELmCZyZe1nQE+imbmV+Q==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-D1pFuExo31854eAvg89KMn9Oab/wEeJR6Buy32B49A9Ogdtx5fwZPqBHUlDzaCDpycTFk2+fSQgX689Qsk7UGA==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-+yNuTiyBACxOJUTvbsNsSOfH9G9oKbaJE1lNL3YHpGcuucl6rPZMi3nrpehpVOVR2E07YqFFmtwpImtpzlouHQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-T4jFU5N/yiIfrtrsb9uOQn7RdELdM/7HbyLNr6uO/mpkj1ctiVs7CihVr51w4LyQlXWDpXFn4BElf1WmQvZu/A==}
- engines: {node: '>=18.0.0'}
-
'@smithy/[email protected]':
resolution: {integrity: sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA==}
engines: {node: '>=18.0.0'}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-YrF4zWKh+ghLuquldj6e/RzE3xZYL8wIPfkt0MqCRphVICjyyjH8OwKD7LLlKpVEbk4FLizFfC1+gwK6XQdR3g==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-QhBYbGrbxTkZ43QoTPrK72DoYviDeg6YKDrHTMJbbC+A0sml3kSjzFtXP7BtbyJnXojLfTQldGdUR0RGD8dA3w==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-O3YbmGExeafuM/kP7Y8r6+1y0hIh3/zn6GROx0uNlB54K9oihAL75Qtc+jFfLNliTi6pxOAYZrRKD9A7iA6UFw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-/4F1zb7Z8LOu1PalTdESFHR0RbPwHd3FcaG1sI3UEIriQTWakysgJr65lc1jj6QY5ye7aFsisajotH6UhWfm/g==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==}
- engines: {node: '>=14.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-n6rQ4N8Jj4YTQO3YFrlgZuwKodf4zUFs7EJIWH86pSCWBaAtAGBFfCM7Wx6D2bBJ2xqFNxGBSrUWswT3M0VJow==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-W/oIpHCpWU2+iAkfZYyGWE+qkpuf3vEXHLxQQDx9FPNZTTdnul0dZ2d/gUFrtQ5je1G2kp4cjG0/24YueG2LbQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-YE58Yz+cvFInWI/wOTrB+DbvUVz/pLn5mC5MvOV4fdRUc6qGwygyngcucRQjAhiCEbmfLOXX0gntSIcgMvAjmA==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-8Qfikvd2GVKSm8S6IbjfwFlRY9VlMrj0Dp4vTwAuhqbX7NhJKE5DQc2bnfJIcY0B+2YKMDBWfvexbSZeejDgeg==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-ZwsifBdyuNHrFGmbc7bAfP2b54+kt9J2rhFd18ilQGAB+GDiP4SrawqyExbB7v455QVR7Psyhb2kjULvBPIhvA==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-ExYhcltZSli0pgAKOpQQe1DLFBLryeZ22605y/YS+mQpdNWekum9Ujb/jMKfJKgjtz1AZldtwA/wCYuKJgjjlg==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-kruC5gRHwsCOuyCd4ouQxYjgRAym2uDlCvQ5acuMtRrcdfg7mFBg6blaxcJ09STpt3ziEkis6bhg1uwrWU7txw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-tr2oKX2xMcO+rBOjobSwVAkV05SIfUKz8iI53rzxEmgW3GOOPOv0UioSDk+J8OpRQnpnhsO3Af6IEBabQBVmiw==}
- engines: {node: '>=18.0.0'}
-
'@smithy/[email protected]':
resolution: {integrity: sha512-ThMkboGeONWXAelq9FvGsuJC4rOi+qyC4/zhUF58xYpxUg5sQKx2VXZYJmtNjr4dSuBJ1HeJXETQILCz3wOHvw==}
engines: {node: '>=18.0.0'}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-Rnq9vQWiR1+/I6NZZMNzJHV6pZYyEHt2ZnuV3MG8z2NNenC4i/8Kzttz7CjZiHSmsN5frhXhg17z3Zqjjhmz1A==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-jqve46eYU1v7pZ5BM+fmkbq3DerkSluPr5EhvOcHxygxzD05ByDRppRwRPPpFrsFo5yDtCYLKu+kreHKVrvc7A==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-fit0GZK9I1xoRlR4jXmbLhoN0OdEpa96ul8M65XdmXnxXkuMxM0Y8HDT0Fh0Xb4I85MBvBClOzgSrV1X2s1Hxw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-6wTZjGABQufekycfDGMEB84BgtdOE/rCVTov+EDXQ8NHKTUNIp/j27IliwP7tjIU9LR+sSzyGBOXjeEtVgzCHg==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-P2OdvrgiAKpkPNKlKUtWbNZKB1XjPxM086NeVhK+W+wI46pIKdWBe5QyXvhUm3MEcyS/rkLvY8rZzyUdmyDZBw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-LlP29oSQN0Tw0b6D0Xo6BIikBswuIiGYbRACy5ujw/JgWSzTdYj46U83ssf6Ux0GyNJVivs2uReU8pt7Eu9okQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-HrOKWsUb+otTeo1HxVWeEb99t5ER1XrBi/xka2Wv6NVmTbuCUC1dvlrksdvxFtODLBjsC+PHK+fuy2x/7Ynyiw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-B/FBwO3MVOL00DaRSXfXfa/TRXRheagt/q5A2NM13u7q+sHS59EOVGQNfG7DkmVtdQm5m3vOosoKAXSqn/OEgw==}
- engines: {node: '>=18.0.0'}
-
'@smithy/[email protected]':
resolution: {integrity: sha512-tHy0K0VtqNd5Y7Y41h0a0Lhh0L1GzC08dTWg0F7vRJWFtTENg7IZikf3wQkanYIRdb7ngoIPMTmqgUi401fEeQ==}
engines: {node: '>=18.0.0'}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-aib3f0jiMsJ6+cvDnXipBsGDL7ztknYSVqJs1FdN9P+u9tr/VzOR7iygSh6EUOdaBeMCMSh3N0VdyYsG4o91DQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-787F3yzE2UiJIQ+wYW1CVg2odHjmaWLGksnKQHUrK/lYZSEcy1msuLVvxaR/sI2/aDe9U+TBuLsXnr3vod1g0g==}
- engines: {node: '>=18.0.0'}
-
'@smithy/[email protected]':
resolution: {integrity: sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q==}
engines: {node: '>=18.0.0'}
- '@smithy/[email protected]':
- resolution: {integrity: sha512-wOPKPEpso+doCZGIlr+e1lVI6+9VAKfL4kZWFgzVgGWY2hZxshNKod4l2LXS3PRC9otH/JRSjtEHqQ/7eLciRA==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-XRH6b0H/5A3SgblmMa5ErXQ2XKhfbQB+Fm/oyLZ2O2kCUrwgg55bU0RekmzAhuwOjA9qdN5VU2BprOvGGUkOOQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-JKCrLNOup3OOgmzeaKQwi4ZCTWlYR5H4Gm1r2uTMVBXoemo1UEghk5vtMi1xSu2ymgKVGW631e2fp9/R610ZjQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-ZkJGvqBzMHVHE7r/hcuCxlTY8pQr1kMtdsVPs7ex4mMU+EAbcXppfo5NmyxMYi2XU49eqaz56j2gsk4dHHPG/g==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==}
- engines: {node: '>=14.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-FDXD7cvUoFWwN6vtQfEta540Y/YBe5JneK3SoZg9bThSoOAC/eGeYEua6RkBgKjGa/sz6Y+DuBZj3+YEY21y4Q==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-dWU03V3XUprJwaUIFVv4iOnS1FC9HnMHDfUrlNDSh4315v0cWyaIErP8KiqGVbf5z+JupoVpNM7ZB3jFiTejvQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-0vjwmcvkWAUtikXnWIUOyV6IFHTEeQUYh3JUZcDgcszF+hD/StAsQ3rCZNZEPHgI9kVNcbnyc8P2CBHnwgmcwg==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-q5dOqqfTgUcLe38TAGiFn9srToKj2YCHJ34QGOLzM+xYLLA+qRZv7N+33kl1MERVusue36ZHnlNaNEvY/PzSrw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-VACQVe50j0HZPjpwWcjyT51KUQ4AnsvEaQ2lKHOSL4mNLD0G9BjEniQ+yCt1qqfKfiAHRAts26ud7hBjamrwig==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-Qcz3W5vuHK4sLQdyT93k/rfrUwdJ8/HZ+nMUOyGdpeGA1Wxt65zYwi3oEl9kOM+RswvYq90fzkNDahPS8K0OIg==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-Er805uFUOvgc0l8nv0e0su0VFISoxhJ/AwOn3gL2NWNY2LUEldP5WtVcRYSQBcjg0y9NfG8JYrCJaYDpupBHJQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-1zopLDUEOwumjcHdJ1mwBHddubYF8GMQvstVCLC54Y46rqoHwlIU+8ZzUeaBcD+WCJHyDGSeZ2ml9YSe9aqcoQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-4yXLm5n/B5SRBR2p8cZ90Sbv4zL4NKsgxdzCzp/83cXw2KxLEumt5p+GAVyRNZgQOSrzXn9ARpO0lUe8XSlSDw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-2kAStBlvq+lTXHyAZYfJRb/DfS3rsinLiwb+69SstC9Vb0s9vNWkRwpnj918Pfi85mzi42sOqdV72OLxWAISnw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==}
- engines: {node: '>=14.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-2zdZ9DTHngRtcYxJK1GUDxruNr53kv5W2Lupe0LMU+Imr6ohQg8M2T14MNkj1Y0wS3FFwpgpGQyvuaMF7CiTmQ==}
- engines: {node: '>=18.0.0'}
-
- '@smithy/[email protected]':
- resolution: {integrity: sha512-O/IEdcCUKkubz60tFbGA7ceITTAJsty+lBjNoorP4Z6XRqaFb/OjQjZODophEcuq68nKm6/0r+6/lLQ+XVpk8g==}
- engines: {node: '>=18.0.0'}
-
'@standard-schema/[email protected]':
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
resolution: {integrity: sha512-jI/VAmtdjB/RnI8GTnokyX7Ug8c+g+ffD6QRLa6XQewtnGyukKkKSk3wLTM3b5cjt1jNh9x0jfVlagdN2gDKQg==}
- '@tokenizer/[email protected]':
- resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==}
- engines: {node: '>=18'}
-
- '@tokenizer/[email protected]':
- resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==}
-
resolution: {integrity: sha512-Jh+pTGXLNz8+1tkUU13TI/f+ZOI+OvC4YbHi1H+57iSpLt5DR3xgptd+4sA07RdjdRR/RX/01uQQu2OkbzIefA==}
cpu: [x64]
@@ -5130,9 +4643,6 @@ packages:
resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==}
engines: {node: '>=14'}
- resolution: {integrity: sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==}
-
resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
@@ -5441,13 +4951,6 @@ packages:
resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
engines: {node: '>=8.6.0'}
- resolution: {integrity: sha512-F74cZEdCvuw9P41GAC3rod4X04jjWGM1JPEv/GWSqFTWLsdyMSBMBMlm9Hk3GLBgLBbdBNY8yee0pQh2RBVESQ==}
-
- resolution: {integrity: sha512-IEMIf7298kXuZSRFoGfMYrl7is8LpavODgbNz1cwIudv7KwVFnuU+UsMporfq6PD6aXSlawZlARiA3UywCTfMw==}
- hasBin: true
-
resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}
@@ -5463,13 +4966,6 @@ packages:
picomatch:
optional: true
- resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==}
-
- resolution: {integrity: sha512-ww5Mhre0EE+jmBvOXTmXAbEMuZE7uX4a3+oRCQFNj8w++g3ev913N6tXQz0XTXbueQ5TWQfm6BdaViEHHn8bhA==}
- engines: {node: '>=22'}
-
resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
engines: {node: '>=8'}
@@ -5616,9 +5112,6 @@ packages:
resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-yZDprSSr8TyVeMGI/AOV4ws6gwjX22hj9Z8/oHAVpJORY6WRFTcUzhnZtibBUHEw2U8ArvHcR+i863DplQ3Cwg==}
-
resolution: {integrity: sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==}
@@ -5648,9 +5141,6 @@ packages:
resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-2LdV822R+wmI86unXA93WCFpL6g+av8ynWk0nrHyJqGop5VoocYsSLFgN8jrfalT6iGeLNM4KXuVSsULP53kEA==}
-
resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
engines: {node: '>=0.10.0'}
@@ -6021,10 +5511,6 @@ packages:
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==}
- engines: {node: '>=14.0.0'}
-
resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
engines: {node: '>=8'}
@@ -6320,13 +5806,6 @@ packages:
resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==}
engines: {node: '>=14.16'}
- resolution: {integrity: sha512-M9eUSMT2dCB2cTNPG7UYj6KuK7RJR2SN2+yCV/fTW3xzTCS6EaGZ5pSMgDIjB7r8zSfTGk+dvvn9rTjpVS9Mwg==}
-
- resolution: {integrity: sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
engines: {node: '>=8'}
@@ -6390,10 +5869,6 @@ packages:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
- resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==}
- engines: {node: '>=14.16'}
-
resolution: {integrity: sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==}
engines: {node: '>=16'}
@@ -6481,10 +5956,6 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
- resolution: {integrity: sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-X2wH19RAPZE3+ldGicOkoj/SIA83OIxcJ6Cuaw23hf8Xc6fQpvZXY0SftE2JgS0QhYLUG4uwodSI3R53keyh7w==}
engines: {node: '>=14'}
@@ -6723,10 +6194,6 @@ packages:
resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==}
- engines: {node: '>=16.0.0'}
-
resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
@@ -6750,6 +6217,7 @@ snapshots:
'@csstools/css-color-parser': 4.1.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])
'@csstools/css-tokenizer': 4.0.0
+ optional: true
'@asamuzakjp/[email protected]':
dependencies:
@@ -6758,57 +6226,13 @@ snapshots:
bidi-js: 1.0.3
css-tree: 3.2.1
is-potential-custom-element-name: 1.0.1
+ optional: true
- '@asamuzakjp/[email protected]': {}
-
- '@asamuzakjp/[email protected]': {}
-
- '@aws-crypto/[email protected]':
- dependencies:
- '@aws-crypto/util': 5.2.0
- '@aws-sdk/types': 3.973.6
- tslib: 2.8.1
-
- '@aws-crypto/[email protected]':
- dependencies:
- '@aws-crypto/util': 5.2.0
- '@aws-sdk/types': 3.973.6
- tslib: 2.8.1
-
- '@aws-crypto/[email protected]':
- dependencies:
- '@aws-crypto/supports-web-crypto': 5.2.0
- '@aws-crypto/util': 5.2.0
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-locate-window': 3.965.5
- '@smithy/util-utf8': 2.3.0
- tslib: 2.8.1
-
- '@aws-crypto/[email protected]':
- dependencies:
- '@aws-crypto/sha256-js': 5.2.0
- '@aws-crypto/supports-web-crypto': 5.2.0
- '@aws-crypto/util': 5.2.0
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-locate-window': 3.965.5
- '@smithy/util-utf8': 2.3.0
- tslib: 2.8.1
-
- '@aws-crypto/[email protected]':
- dependencies:
- '@aws-crypto/util': 5.2.0
- '@aws-sdk/types': 3.973.6
- tslib: 2.8.1
-
- '@aws-crypto/[email protected]':
- dependencies:
- tslib: 2.8.1
+ '@asamuzakjp/[email protected]':
+ optional: true
- '@aws-crypto/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/util-utf8': 2.3.0
- tslib: 2.8.1
+ '@asamuzakjp/[email protected]':
+ optional: true
'@aws-sdk/[email protected]':
dependencies:
@@ -6818,66 +6242,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-crypto/sha1-browser': 5.2.0
- '@aws-crypto/sha256-browser': 5.2.0
- '@aws-crypto/sha256-js': 5.2.0
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/credential-provider-node': 3.972.21
- '@aws-sdk/middleware-bucket-endpoint': 3.972.8
- '@aws-sdk/middleware-expect-continue': 3.972.8
- '@aws-sdk/middleware-flexible-checksums': 3.974.0
- '@aws-sdk/middleware-host-header': 3.972.8
- '@aws-sdk/middleware-location-constraint': 3.972.8
- '@aws-sdk/middleware-logger': 3.972.8
- '@aws-sdk/middleware-recursion-detection': 3.972.8
- '@aws-sdk/middleware-sdk-s3': 3.972.20
- '@aws-sdk/middleware-ssec': 3.972.8
- '@aws-sdk/middleware-user-agent': 3.972.21
- '@aws-sdk/region-config-resolver': 3.972.8
- '@aws-sdk/signature-v4-multi-region': 3.996.8
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-endpoints': 3.996.5
- '@aws-sdk/util-user-agent-browser': 3.972.8
- '@aws-sdk/util-user-agent-node': 3.973.7
- '@smithy/config-resolver': 4.4.11
- '@smithy/core': 3.23.12
- '@smithy/eventstream-serde-browser': 4.2.12
- '@smithy/eventstream-serde-config-resolver': 4.3.12
- '@smithy/eventstream-serde-node': 4.2.12
- '@smithy/fetch-http-handler': 5.3.15
- '@smithy/hash-blob-browser': 4.2.13
- '@smithy/hash-node': 4.2.12
- '@smithy/hash-stream-node': 4.2.12
- '@smithy/invalid-dependency': 4.2.12
- '@smithy/md5-js': 4.2.12
- '@smithy/middleware-content-length': 4.2.12
- '@smithy/middleware-endpoint': 4.4.26
- '@smithy/middleware-retry': 4.4.43
- '@smithy/middleware-serde': 4.2.15
- '@smithy/middleware-stack': 4.2.12
- '@smithy/node-config-provider': 4.3.12
- '@smithy/node-http-handler': 4.5.0
- '@smithy/protocol-http': 5.3.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.13.1
- '@smithy/url-parser': 4.2.12
- '@smithy/util-base64': 4.3.2
- '@smithy/util-body-length-browser': 4.2.2
- '@smithy/util-body-length-node': 4.2.3
- '@smithy/util-defaults-mode-browser': 4.3.42
- '@smithy/util-defaults-mode-node': 4.2.45
- '@smithy/util-endpoints': 3.3.3
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-retry': 4.2.12
- '@smithy/util-stream': 4.5.20
- '@smithy/util-utf8': 4.2.2
- '@smithy/util-waiter': 4.2.13
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/checksums': 3.1001.3
@@ -6892,22 +6256,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/xml-builder': 3.972.11
- '@smithy/core': 3.23.12
- '@smithy/node-config-provider': 4.3.12
- '@smithy/property-provider': 4.2.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/signature-v4': 5.3.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.13.1
- '@smithy/util-base64': 4.3.2
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/types': 3.974.6
@@ -6919,19 +6267,6 @@ snapshots:
bowser: 2.14.1
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/types': 3.973.6
- '@smithy/property-provider': 4.2.12
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -6940,19 +6275,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/types': 3.973.6
- '@smithy/fetch-http-handler': 5.3.15
- '@smithy/node-http-handler': 4.5.0
- '@smithy/property-provider': 4.2.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.19.0
- '@smithy/util-stream': 4.5.20
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -6963,25 +6285,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/credential-provider-env': 3.972.18
- '@aws-sdk/credential-provider-http': 3.972.20
- '@aws-sdk/credential-provider-login': 3.972.20
- '@aws-sdk/credential-provider-process': 3.972.18
- '@aws-sdk/credential-provider-sso': 3.972.20
- '@aws-sdk/credential-provider-web-identity': 3.972.20
- '@aws-sdk/nested-clients': 3.996.10
- '@aws-sdk/types': 3.973.6
- '@smithy/credential-provider-imds': 4.2.12
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.19.0
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -6998,19 +6301,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/nested-clients': 3.996.10
- '@aws-sdk/types': 3.973.6
- '@smithy/property-provider': 4.2.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.19.0
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7020,23 +6310,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/credential-provider-env': 3.972.18
- '@aws-sdk/credential-provider-http': 3.972.20
- '@aws-sdk/credential-provider-ini': 3.972.20
- '@aws-sdk/credential-provider-process': 3.972.18
- '@aws-sdk/credential-provider-sso': 3.972.20
- '@aws-sdk/credential-provider-web-identity': 3.972.20
- '@aws-sdk/types': 3.973.6
- '@smithy/credential-provider-imds': 4.2.12
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.13.1
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/credential-provider-env': 3.972.74
@@ -7051,15 +6324,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/types': 3.973.6
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7068,19 +6332,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/nested-clients': 3.996.10
- '@aws-sdk/token-providers': 3.1009.0
- '@aws-sdk/types': 3.973.6
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.19.0
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7091,18 +6342,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/nested-clients': 3.996.10
- '@aws-sdk/types': 3.973.6
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.19.0
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7122,84 +6361,6 @@ snapshots:
stream-browserify: 3.0.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-arn-parser': 3.972.3
- '@smithy/node-config-provider': 4.3.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- '@smithy/util-config-provider': 4.2.2
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-crypto/crc32': 5.2.0
- '@aws-crypto/crc32c': 5.2.0
- '@aws-crypto/util': 5.2.0
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/crc64-nvme': 3.972.5
- '@aws-sdk/types': 3.973.6
- '@smithy/is-array-buffer': 4.2.2
- '@smithy/node-config-provider': 4.3.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-stream': 4.5.20
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@aws/lambda-invoke-store': 0.2.4
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-arn-parser': 3.972.3
- '@smithy/core': 3.23.12
- '@smithy/node-config-provider': 4.3.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/signature-v4': 5.3.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.13.1
- '@smithy/util-config-provider': 4.2.2
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-stream': 4.5.20
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7209,66 +6370,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-endpoints': 3.996.5
- '@smithy/core': 3.23.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- '@smithy/util-retry': 4.2.12
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-crypto/sha256-browser': 5.2.0
- '@aws-crypto/sha256-js': 5.2.0
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/middleware-host-header': 3.972.8
- '@aws-sdk/middleware-logger': 3.972.8
- '@aws-sdk/middleware-recursion-detection': 3.972.8
- '@aws-sdk/middleware-user-agent': 3.972.21
- '@aws-sdk/region-config-resolver': 3.972.8
- '@aws-sdk/types': 3.973.6
- '@aws-sdk/util-endpoints': 3.996.5
- '@aws-sdk/util-user-agent-browser': 3.972.8
- '@aws-sdk/util-user-agent-node': 3.973.7
- '@smithy/config-resolver': 4.4.11
- '@smithy/core': 3.36.0
- '@smithy/fetch-http-handler': 5.3.15
- '@smithy/hash-node': 4.2.12
- '@smithy/invalid-dependency': 4.2.12
- '@smithy/middleware-content-length': 4.2.12
- '@smithy/middleware-endpoint': 4.4.26
- '@smithy/middleware-retry': 4.4.43
- '@smithy/middleware-serde': 4.2.15
- '@smithy/middleware-stack': 4.2.12
- '@smithy/node-config-provider': 4.3.12
- '@smithy/node-http-handler': 4.5.0
- '@smithy/protocol-http': 5.3.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.19.0
- '@smithy/url-parser': 4.2.12
- '@smithy/util-base64': 4.3.2
- '@smithy/util-body-length-browser': 4.2.2
- '@smithy/util-body-length-node': 4.2.3
- '@smithy/util-defaults-mode-browser': 4.3.42
- '@smithy/util-defaults-mode-node': 4.2.45
- '@smithy/util-endpoints': 3.3.3
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-retry': 4.2.12
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7280,14 +6381,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/config-resolver': 4.4.11
- '@smithy/node-config-provider': 4.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/types': 3.974.6
@@ -7295,27 +6388,6 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/middleware-sdk-s3': 3.972.20
- '@aws-sdk/types': 3.973.6
- '@smithy/protocol-http': 5.3.12
- '@smithy/signature-v4': 5.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/core': 3.973.20
- '@aws-sdk/nested-clients': 3.996.10
- '@aws-sdk/types': 3.973.6
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.19.0
- tslib: 2.8.1
- transitivePeerDependencies:
- - aws-crt
-
'@aws-sdk/[email protected]':
dependencies:
'@aws-sdk/core': 3.978.3
@@ -7325,61 +6397,16 @@ snapshots:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws-sdk/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/types': 4.13.1
- '@smithy/url-parser': 4.2.12
- '@smithy/util-endpoints': 3.3.3
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/types': 3.973.6
- '@smithy/types': 4.13.1
- bowser: 2.14.1
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@aws-sdk/middleware-user-agent': 3.972.21
- '@aws-sdk/types': 3.973.6
- '@smithy/node-config-provider': 4.3.12
- '@smithy/types': 4.13.1
- '@smithy/util-config-provider': 4.2.2
- tslib: 2.8.1
-
- '@aws-sdk/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- fast-xml-parser: 5.10.1
- tslib: 2.8.1
-
'@aws-sdk/[email protected]':
dependencies:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@aws/[email protected]': {}
-
'@aws/[email protected]': {}
@@ -7442,11 +6469,10 @@ snapshots:
'@biomejs/[email protected]':
optional: true
- '@borewit/[email protected]': {}
-
'@bramus/[email protected]':
dependencies:
css-tree: 3.2.1
+ optional: true
'@changesets/[email protected]':
dependencies:
@@ -7592,12 +6618,14 @@ snapshots:
human-id: 4.1.3
prettier: 2.8.8
- '@csstools/[email protected]': {}
+ '@csstools/[email protected]':
+ optional: true
'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
dependencies:
'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])
'@csstools/css-tokenizer': 4.0.0
+ optional: true
'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
dependencies:
@@ -7605,16 +6633,20 @@ snapshots:
'@csstools/css-calc': 3.2.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])
'@csstools/css-tokenizer': 4.0.0
+ optional: true
'@csstools/[email protected](@csstools/[email protected])':
dependencies:
'@csstools/css-tokenizer': 4.0.0
+ optional: true
optionalDependencies:
css-tree: 3.2.1
+ optional: true
- '@csstools/[email protected]': {}
+ '@csstools/[email protected]':
+ optional: true
'@emnapi/[email protected]':
dependencies:
@@ -7713,6 +6745,7 @@ snapshots:
optionalDependencies:
'@noble/hashes': 2.0.1
+ optional: true
optional: true
@@ -7840,34 +6873,6 @@ snapshots:
optionalDependencies:
'@types/node': 24.10.14
- '@inversifyjs/[email protected]': {}
-
- dependencies:
- '@inversifyjs/common': 1.5.2
- '@inversifyjs/core': 9.2.0([email protected])
- '@inversifyjs/plugin': 0.2.0
- '@inversifyjs/reflect-metadata-utils': 1.4.1([email protected])
- reflect-metadata: 0.2.2
-
- dependencies:
- '@inversifyjs/common': 1.5.2
- '@inversifyjs/prototype-utils': 0.1.3
- '@inversifyjs/reflect-metadata-utils': 1.4.1([email protected])
- transitivePeerDependencies:
- - reflect-metadata
-
- '@inversifyjs/[email protected]': {}
-
- '@inversifyjs/[email protected]':
- dependencies:
- '@inversifyjs/common': 1.5.2
-
- dependencies:
- reflect-metadata: 0.2.2
-
'@jridgewell/[email protected]':
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
@@ -8035,8 +7040,6 @@ snapshots:
optional: true
- '@nodable/[email protected]': {}
-
'@nodelib/[email protected]':
dependencies:
'@nodelib/fs.stat': 2.0.5
@@ -8528,393 +7531,45 @@ snapshots:
'@shinyoshiaki/[email protected]':
optional: true
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/util-base64': 4.3.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/node-config-provider': 4.3.12
- '@smithy/types': 4.13.1
- '@smithy/util-config-provider': 4.2.2
- '@smithy/util-endpoints': 3.3.3
- '@smithy/util-middleware': 4.2.12
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- '@smithy/url-parser': 4.2.12
- '@smithy/util-base64': 4.3.2
- '@smithy/util-body-length-browser': 4.2.2
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-stream': 4.5.20
- '@smithy/util-utf8': 4.2.2
- '@smithy/uuid': 1.1.2
- tslib: 2.8.1
-
'@smithy/[email protected]':
dependencies:
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@smithy/[email protected]':
- dependencies:
- '@smithy/node-config-provider': 4.3.12
- '@smithy/property-provider': 4.2.12
- '@smithy/types': 4.19.0
- '@smithy/url-parser': 4.2.12
- tslib: 2.8.1
-
'@smithy/[email protected]':
dependencies:
'@smithy/core': 3.36.0
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@smithy/[email protected]':
- dependencies:
- '@aws-crypto/crc32': 5.2.0
- '@smithy/types': 4.19.0
- '@smithy/util-hex-encoding': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/eventstream-serde-universal': 4.2.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/eventstream-serde-universal': 4.2.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/eventstream-codec': 4.2.12
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/protocol-http': 5.3.12
- '@smithy/querystring-builder': 4.2.12
- '@smithy/types': 4.13.1
- '@smithy/util-base64': 4.3.2
- tslib: 2.8.1
-
'@smithy/[email protected]':
dependencies:
'@smithy/core': 3.36.0
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@smithy/[email protected]':
- dependencies:
- '@smithy/chunked-blob-reader': 5.2.2
- '@smithy/chunked-blob-reader-native': 4.2.3
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- '@smithy/util-buffer-from': 4.2.2
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/core': 3.23.12
- '@smithy/middleware-serde': 4.2.15
- '@smithy/node-config-provider': 4.3.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.13.1
- '@smithy/url-parser': 4.2.12
- '@smithy/util-middleware': 4.2.12
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/node-config-provider': 4.3.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/service-error-classification': 4.2.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.13.1
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-retry': 4.2.12
- '@smithy/uuid': 1.1.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/core': 3.23.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/property-provider': 4.2.12
- '@smithy/shared-ini-file-loader': 4.4.7
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
'@smithy/[email protected]':
dependencies:
'@smithy/core': 3.36.0
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@smithy/[email protected]':
- dependencies:
- '@smithy/abort-controller': 4.2.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/querystring-builder': 4.2.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- '@smithy/util-uri-escape': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.19.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/is-array-buffer': 4.2.2
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.19.0
- '@smithy/util-hex-encoding': 4.2.2
- '@smithy/util-middleware': 4.2.12
- '@smithy/util-uri-escape': 4.2.2
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
'@smithy/[email protected]':
dependencies:
'@smithy/core': 3.36.0
'@smithy/types': 4.19.0
tslib: 2.8.1
- '@smithy/[email protected]':
- dependencies:
- '@smithy/core': 3.23.12
- '@smithy/middleware-endpoint': 4.4.26
- '@smithy/middleware-stack': 4.2.12
- '@smithy/protocol-http': 5.3.12
- '@smithy/types': 4.13.1
- '@smithy/util-stream': 4.5.20
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
'@smithy/[email protected]':
dependencies:
tslib: 2.8.1
- '@smithy/[email protected]':
- dependencies:
- '@smithy/querystring-parser': 4.2.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/util-buffer-from': 4.2.2
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/is-array-buffer': 2.2.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/is-array-buffer': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/property-provider': 4.2.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/config-resolver': 4.4.11
- '@smithy/credential-provider-imds': 4.2.12
- '@smithy/node-config-provider': 4.3.12
- '@smithy/property-provider': 4.2.12
- '@smithy/smithy-client': 4.12.6
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/node-config-provider': 4.3.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/service-error-classification': 4.2.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/fetch-http-handler': 5.3.15
- '@smithy/node-http-handler': 4.5.0
- '@smithy/types': 4.13.1
- '@smithy/util-base64': 4.3.2
- '@smithy/util-buffer-from': 4.2.2
- '@smithy/util-hex-encoding': 4.2.2
- '@smithy/util-utf8': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/util-buffer-from': 2.2.0
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/util-buffer-from': 4.2.2
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- '@smithy/abort-controller': 4.2.12
- '@smithy/types': 4.13.1
- tslib: 2.8.1
-
- '@smithy/[email protected]':
- dependencies:
- tslib: 2.8.1
-
'@standard-schema/[email protected]': {}
dependencies:
tslib: 2.8.1
- '@tokenizer/[email protected]':
- dependencies:
- debug: 4.4.3
- token-types: 6.1.2
- transitivePeerDependencies:
- - supports-color
-
- '@tokenizer/[email protected]': {}
-
optional: true
@@ -9065,8 +7720,6 @@ snapshots:
-
dependencies:
sprintf-js: 1.0.3
@@ -9187,6 +7840,7 @@ snapshots:
dependencies:
mdn-data: 2.27.1
source-map-js: 1.2.1
+ optional: true
dependencies:
@@ -9228,6 +7882,7 @@ snapshots:
whatwg-url: 16.0.1(@noble/[email protected])
transitivePeerDependencies:
- '@noble/hashes'
+ optional: true
dependencies:
@@ -9243,7 +7898,8 @@ snapshots:
dependencies:
ms: 2.1.3
+ optional: true
dependencies:
@@ -9308,7 +7964,8 @@ snapshots:
ansi-colors: 4.1.3
strip-ansi: 6.0.1
+ optional: true
@@ -9372,20 +8029,6 @@ snapshots:
merge2: 1.4.1
micromatch: 4.0.8
- dependencies:
- path-expression-matcher: 1.6.2
- xml-naming: 0.3.0
-
- dependencies:
- '@nodable/entities': 3.0.0
- fast-xml-builder: 1.3.0
- is-unsafe: 2.0.0
- path-expression-matcher: 1.6.2
- strnum: 2.4.1
- xml-naming: 0.3.0
-
dependencies:
reusify: 1.1.0
@@ -9398,17 +8041,6 @@ snapshots:
optionalDependencies:
picomatch: 4.0.7
-
- dependencies:
- '@tokenizer/inflate': 0.4.1
- strtok3: 10.3.5
- token-types: 6.1.2
- uint8array-extras: 1.5.0
- transitivePeerDependencies:
- - supports-color
-
dependencies:
to-regex-range: 5.0.1
@@ -9526,6 +8158,7 @@ snapshots:
'@exodus/bytes': 1.15.0(@noble/[email protected])
transitivePeerDependencies:
- '@noble/hashes'
+ optional: true
@@ -9558,14 +8191,6 @@ snapshots:
- dependencies:
- '@inversifyjs/common': 1.5.2
- '@inversifyjs/container': 1.15.0([email protected])
- '@inversifyjs/core': 9.2.0([email protected])
- transitivePeerDependencies:
- - reflect-metadata
-
optional: true
@@ -9582,7 +8207,8 @@ snapshots:
isobject: 3.0.1
optional: true
+ optional: true
optional: true
@@ -9591,8 +8217,6 @@ snapshots:
dependencies:
better-path-resolve: 1.0.0
-
@@ -9657,6 +8281,7 @@ snapshots:
canvas: 3.2.3
transitivePeerDependencies:
- '@noble/hashes'
+ optional: true
@@ -9791,7 +8416,8 @@ snapshots:
+ optional: true
dependencies:
@@ -9815,7 +8441,8 @@ snapshots:
dependencies:
escape-string-regexp: 4.0.0
+ optional: true
dependencies:
@@ -9991,11 +8618,10 @@ snapshots:
dependencies:
entities: 8.0.0
+ optional: true
-
@@ -10080,7 +8706,8 @@ snapshots:
once: 1.4.0
optional: true
+ optional: true
dependencies:
@@ -10131,7 +8758,8 @@ snapshots:
+ optional: true
@@ -10251,6 +8879,7 @@ snapshots:
dependencies:
xmlchars: 2.2.0
+ optional: true
@@ -10381,19 +9010,12 @@ snapshots:
- dependencies:
- anynum: 1.0.1
-
- dependencies:
- '@tokenizer/token': 0.3.0
-
dependencies:
has-flag: 4.0.0
+ optional: true
dependencies:
@@ -10444,29 +9066,27 @@ snapshots:
+ optional: true
dependencies:
tldts-core: 7.0.29
+ optional: true
dependencies:
is-number: 7.0.0
- dependencies:
- '@borewit/text-codec': 0.2.1
- '@tokenizer/token': 0.3.0
- ieee754: 1.2.1
-
dependencies:
tldts: 7.0.29
+ optional: true
dependencies:
punycode: 2.3.1
+ optional: true
@@ -10572,8 +9192,6 @@ snapshots:
-
@@ -10583,7 +9201,8 @@ snapshots:
+ optional: true
dependencies:
@@ -10691,6 +9310,7 @@ snapshots:
dependencies:
xml-name-validator: 5.0.0
+ optional: true
@@ -10701,7 +9321,8 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ optional: true
dependencies:
@@ -10778,7 +9399,8 @@ snapshots:
- supports-color
optional: true
+ optional: true
dependencies:
@@ -10787,6 +9409,7 @@ snapshots:
webidl-conversions: 8.0.1
transitivePeerDependencies:
- '@noble/hashes'
+ optional: true
dependencies:
@@ -10800,11 +9423,11 @@ snapshots:
optional: true
-
+ optional: true
+ optional: true