@remotion/lambda 3.3.42 → 3.3.43

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.
@@ -32,7 +32,7 @@ const getBrowserInstance = async (shouldDumpIo, chromiumOptions) => {
32
32
  return _browserInstance;
33
33
  }
34
34
  launching = true;
35
- const execPath = await (0, get_chromium_executable_path_1.executablePath)();
35
+ const execPath = (0, get_chromium_executable_path_1.executablePath)();
36
36
  const actualChromiumOptions = {
37
37
  ...chromiumOptions,
38
38
  // Override the `null` value, which might come from CLI with swANGLE
@@ -1 +1 @@
1
- export declare const executablePath: () => Promise<string | undefined>;
1
+ export declare const executablePath: () => string;
@@ -9,7 +9,7 @@ if (/^AWS_Lambda_nodejs(?:10|12|14|16|18)[.]x$/.test((_a = process.env.AWS_EXECU
9
9
  }
10
10
  process.env.LD_LIBRARY_PATH = '/opt/lib:/opt/bin';
11
11
  }
12
- const executablePath = async () => {
12
+ const executablePath = () => {
13
13
  return '/opt/bin/chromium';
14
14
  };
15
15
  exports.executablePath = executablePath;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateComposition = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
+ const get_chromium_executable_path_1 = require("./get-chromium-executable-path");
5
6
  const validateComposition = async ({ serveUrl, composition, browserInstance, inputProps, envVariables, timeoutInMilliseconds, ffmpegExecutable, ffprobeExecutable, chromiumOptions, port, downloadMap, forceHeight, forceWidth, }) => {
6
7
  const compositions = await (0, renderer_1.getCompositions)(serveUrl, {
7
8
  puppeteerInstance: browserInstance,
@@ -13,6 +14,7 @@ const validateComposition = async ({ serveUrl, composition, browserInstance, inp
13
14
  chromiumOptions,
14
15
  port,
15
16
  downloadMap,
17
+ browserExecutable: (0, get_chromium_executable_path_1.executablePath)(),
16
18
  });
17
19
  const found = compositions.find((c) => c.id === composition);
18
20
  if (!found) {
@@ -14,6 +14,7 @@ const chunk_progress_1 = require("../shared/chunk-progress");
14
14
  const constants_1 = require("../shared/constants");
15
15
  const deserialize_input_props_1 = require("../shared/deserialize-input-props");
16
16
  const get_browser_instance_1 = require("./helpers/get-browser-instance");
17
+ const get_chromium_executable_path_1 = require("./helpers/get-chromium-executable-path");
17
18
  const get_current_region_1 = require("./helpers/get-current-region");
18
19
  const io_1 = require("./helpers/io");
19
20
  const write_lambda_error_1 = require("./helpers/write-lambda-error");
@@ -159,6 +160,7 @@ const renderHandler = async (params, options, logs) => {
159
160
  // Special flag only in Lambda renderer which improves the audio quality
160
161
  audioCodec: null,
161
162
  preferLossless: true,
163
+ browserExecutable: (0, get_chromium_executable_path_1.executablePath)(),
162
164
  })
163
165
  .then(() => resolve())
164
166
  .catch((err) => reject(err));
@@ -24,6 +24,7 @@ const validate_privacy_1 = require("../shared/validate-privacy");
24
24
  const expected_out_name_1 = require("./helpers/expected-out-name");
25
25
  const format_costs_info_1 = require("./helpers/format-costs-info");
26
26
  const get_browser_instance_1 = require("./helpers/get-browser-instance");
27
+ const get_chromium_executable_path_1 = require("./helpers/get-chromium-executable-path");
27
28
  const get_current_architecture_1 = require("./helpers/get-current-architecture");
28
29
  const get_current_region_1 = require("./helpers/get-current-region");
29
30
  const get_output_url_from_metadata_1 = require("./helpers/get-output-url-from-metadata");
@@ -133,6 +134,7 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
133
134
  scale: lambdaParams.scale,
134
135
  timeoutInMilliseconds: lambdaParams.timeoutInMilliseconds,
135
136
  downloadMap,
137
+ browserExecutable: (0, get_chromium_executable_path_1.executablePath)(),
136
138
  });
137
139
  const { key, renderBucketName, customCredentials } = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName, (0, expected_out_name_1.getCredentialsFromOutName)(lambdaParams.outName));
138
140
  const { size } = await fs_1.default.promises.stat(outputPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.3.42",
3
+ "version": "3.3.43",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -33,17 +33,17 @@
33
33
  "@aws-sdk/credential-providers": "3.215.0",
34
34
  "@aws-sdk/lib-storage": "3.215.0",
35
35
  "@aws-sdk/s3-request-presigner": "3.215.0",
36
- "@remotion/bundler": "3.3.42",
37
- "@remotion/cli": "3.3.42",
38
- "@remotion/renderer": "3.3.42",
36
+ "@remotion/bundler": "3.3.43",
37
+ "@remotion/cli": "3.3.43",
38
+ "@remotion/renderer": "3.3.43",
39
39
  "aws-policies": "^1.0.1",
40
40
  "mime-types": "2.1.34",
41
- "remotion": "3.3.42"
41
+ "remotion": "3.3.43"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jonny/eslint-config": "3.0.266",
45
- "@remotion/compositor-linux-arm64-musl": "3.3.42",
46
- "@remotion/compositor-linux-x64-musl": "3.3.42",
45
+ "@remotion/compositor-linux-arm64-musl": "3.3.43",
46
+ "@remotion/compositor-linux-x64-musl": "3.3.43",
47
47
  "@types/mime-types": "2.1.1",
48
48
  "@types/minimist": "1.2.2",
49
49
  "@types/node": "^14.14.14",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "bfb8098300fb75d4c27220eead954c2dc8e5b4ce"
62
+ "gitHead": "3585e437a30ba001e983539728eb1914172b729c"
63
63
  }
Binary file
Binary file