@remotion/media-utils 4.0.454 → 4.0.456

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export declare const serializeRequestInit: (requestInit: RequestInit | undefined) => string | null;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeRequestInit = void 0;
4
+ const normalizeHeaders = (headers) => {
5
+ if (!headers) {
6
+ return null;
7
+ }
8
+ if (typeof Headers !== 'undefined' && headers instanceof Headers) {
9
+ return Array.from(headers.entries()).sort(([a], [b]) => a.localeCompare(b));
10
+ }
11
+ if (Array.isArray(headers)) {
12
+ return [...headers].sort(([a], [b]) => a.localeCompare(b));
13
+ }
14
+ return Object.entries(headers).sort(([a], [b]) => a.localeCompare(b));
15
+ };
16
+ const serializeRequestInit = (requestInit) => {
17
+ if (!requestInit) {
18
+ return null;
19
+ }
20
+ const { headers, signal, ...rest } = requestInit;
21
+ return JSON.stringify({
22
+ ...rest,
23
+ headers: normalizeHeaders(headers),
24
+ signal: signal ? signal.aborted : null,
25
+ });
26
+ };
27
+ exports.serializeRequestInit = serializeRequestInit;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
4
4
  },
5
5
  "name": "@remotion/media-utils",
6
- "version": "4.0.454",
6
+ "version": "4.0.456",
7
7
  "description": "Utilities for working with media files",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/remotion-dev/remotion/issues"
22
22
  },
23
23
  "dependencies": {
24
- "remotion": "4.0.454",
24
+ "remotion": "4.0.456",
25
25
  "mediabunny": "1.42.0"
26
26
  },
27
27
  "peerDependencies": {
@@ -29,7 +29,7 @@
29
29
  "react-dom": ">=16.8.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@remotion/eslint-config-internal": "4.0.454",
32
+ "@remotion/eslint-config-internal": "4.0.456",
33
33
  "eslint": "9.19.0",
34
34
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
35
35
  },