@remotion/renderer 4.0.187 → 4.0.188

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 { wrapWithErrorHandling } from './wrap-with-error-handling';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrapWithErrorHandling = void 0;
4
+ var wrap_with_error_handling_1 = require("./wrap-with-error-handling");
5
+ Object.defineProperty(exports, "wrapWithErrorHandling", { enumerable: true, get: function () { return wrap_with_error_handling_1.wrapWithErrorHandling; } });
@@ -12,7 +12,9 @@ const getPageAndCleanupFn = async ({ passedInInstance, browserExecutable, chromi
12
12
  // Close puppeteer page and don't wait for it to finish.
13
13
  // Keep browser open.
14
14
  page.close().catch((err) => {
15
- console.error('Was not able to close puppeteer page', err);
15
+ if (!err.message.includes('Target closed')) {
16
+ console.error('Was not able to close puppeteer page', err);
17
+ }
16
18
  });
17
19
  return Promise.resolve();
18
20
  },
@@ -34,7 +36,9 @@ const getPageAndCleanupFn = async ({ passedInInstance, browserExecutable, chromi
34
36
  cleanup: () => {
35
37
  // Close whole browser that was just created and don't wait for it to finish.
36
38
  browserInstance.close(true, logLevel, indent).catch((err) => {
37
- console.error('Was not able to close puppeteer page', err);
39
+ if (!err.message.includes('Target closed')) {
40
+ console.error('Was not able to close puppeteer page', err);
41
+ }
38
42
  });
39
43
  return Promise.resolve();
40
44
  },
package/dist/pure.d.ts CHANGED
@@ -1,8 +1,4 @@
1
1
  export declare const NoReactAPIs: {
2
- wrapWithErrorHandling: <A extends [{
3
- logLevel: "verbose" | "info" | "warn" | "error";
4
- indent: boolean;
5
- }, ...unknown[]], R>(fn: (...args: A) => Promise<R>) => (...args: A) => Promise<R>;
6
2
  getExtensionOfFilename: (filename: string | null) => string | null;
7
3
  getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
8
4
  validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
package/dist/pure.js CHANGED
@@ -4,9 +4,7 @@ exports.NoReactAPIs = void 0;
4
4
  const get_extension_from_codec_1 = require("./get-extension-from-codec");
5
5
  const get_extension_of_filename_1 = require("./get-extension-of-filename");
6
6
  const validate_output_filename_1 = require("./validate-output-filename");
7
- const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
8
7
  exports.NoReactAPIs = {
9
- wrapWithErrorHandling: wrap_with_error_handling_1.wrapWithErrorHandling,
10
8
  getExtensionOfFilename: get_extension_of_filename_1.getExtensionOfFilename,
11
9
  getFileExtensionFromCodec: get_extension_from_codec_1.getFileExtensionFromCodec,
12
10
  validateOutputFilename: validate_output_filename_1.validateOutputFilename,
@@ -46,7 +46,7 @@ const serveStatic = async (path, options) => {
46
46
  });
47
47
  });
48
48
  let selectedPort = null;
49
- const maxTries = 5;
49
+ const maxTries = 10;
50
50
  const portConfig = (0, port_config_1.getPortConfig)(options.forceIPv4);
51
51
  for (let i = 0; i < maxTries; i++) {
52
52
  let unlock = () => { };
@@ -0,0 +1 @@
1
+ export * from './dist/error-handling';
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/error-handling');
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.187",
6
+ "version": "4.0.188",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "extract-zip": "2.0.1",
19
19
  "source-map": "^0.8.0-beta.0",
20
20
  "ws": "8.17.1",
21
- "remotion": "4.0.187",
22
- "@remotion/streaming": "4.0.187"
21
+ "remotion": "4.0.188",
22
+ "@remotion/streaming": "4.0.188"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8.0",
@@ -34,13 +34,13 @@
34
34
  "@types/ws": "8.5.10"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@remotion/compositor-darwin-arm64": "4.0.187",
38
- "@remotion/compositor-darwin-x64": "4.0.187",
39
- "@remotion/compositor-linux-arm64-gnu": "4.0.187",
40
- "@remotion/compositor-linux-arm64-musl": "4.0.187",
41
- "@remotion/compositor-linux-x64-gnu": "4.0.187",
42
- "@remotion/compositor-linux-x64-musl": "4.0.187",
43
- "@remotion/compositor-win32-x64-msvc": "4.0.187"
37
+ "@remotion/compositor-darwin-arm64": "4.0.188",
38
+ "@remotion/compositor-darwin-x64": "4.0.188",
39
+ "@remotion/compositor-linux-arm64-gnu": "4.0.188",
40
+ "@remotion/compositor-linux-arm64-musl": "4.0.188",
41
+ "@remotion/compositor-linux-x64-gnu": "4.0.188",
42
+ "@remotion/compositor-linux-x64-musl": "4.0.188",
43
+ "@remotion/compositor-win32-x64-msvc": "4.0.188"
44
44
  },
45
45
  "keywords": [
46
46
  "remotion",