@remotion/bundler 3.3.28 → 3.3.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare const BundlerInternals: {
26
26
  remotionRoot: string;
27
27
  previewServerCommand: string | null;
28
28
  numberOfAudioTags: number;
29
- publicFiles: import("remotion/.").StaticFile[];
29
+ publicFiles: import("remotion").StaticFile[];
30
30
  includeFavicon: boolean;
31
31
  title: string;
32
32
  }) => string;
@@ -42,10 +42,10 @@ export declare const BundlerInternals: {
42
42
  readRecursively: ({ folder, output, startPath, staticHash, limit, }: {
43
43
  folder: string;
44
44
  startPath: string;
45
- output?: import("remotion/.").StaticFile[] | undefined;
45
+ output?: import("remotion").StaticFile[] | undefined;
46
46
  staticHash: string;
47
47
  limit: number;
48
- }) => import("remotion/.").StaticFile[];
48
+ }) => import("remotion").StaticFile[];
49
49
  };
50
50
  export { bundle, BundleOptions, LegacyBundleOptions } from './bundle';
51
51
  export { webpack };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.3.28",
3
+ "version": "3.3.32",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "css-loader": "5.2.7",
27
27
  "esbuild": "0.16.12",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "3.3.28",
29
+ "remotion": "3.3.32",
30
30
  "style-loader": "2.0.0",
31
31
  "webpack": "5.74.0"
32
32
  },
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "0caa0bec583b5e4c2b12b7375c365e02c2378eeb"
67
+ "gitHead": "6b4f3514c801ddf2e7f957dd2e633271fbbc75f6"
68
68
  }
package/react-shim.js CHANGED
@@ -1,3 +1,7 @@
1
1
  import * as React from 'react';
2
2
 
3
- window.React = React;
3
+ if (typeof globalThis === 'undefined') {
4
+ window.React = React;
5
+ } else {
6
+ globalThis.React = React;
7
+ }
@@ -1 +0,0 @@
1
- export declare const getEtagOfFile: (filePath: string) => Promise<string>;
package/dist/get-etag.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getEtagOfFile = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const crypto_1 = __importDefault(require("crypto"));
9
- const chunk = 1024 * 1024 * 5; // 5MB
10
- const md5 = (data) => crypto_1.default.createHash('md5').update(data).digest('hex');
11
- const getEtagOfFile = async (filePath) => {
12
- const stream = await fs_1.default.promises.readFile(filePath);
13
- if (stream.length <= chunk) {
14
- return md5(stream);
15
- }
16
- const md5Chunks = [];
17
- const chunksNumber = Math.ceil(stream.length / chunk);
18
- for (let i = 0; i < chunksNumber; i++) {
19
- const chunkStream = stream.slice(i * chunk, (i + 1) * chunk);
20
- md5Chunks.push(md5(chunkStream));
21
- }
22
- return `${md5(Buffer.from(md5Chunks.join(''), 'hex'))}-${chunksNumber}`;
23
- };
24
- exports.getEtagOfFile = getEtagOfFile;