@remotion/lambda 4.0.240 → 4.0.241

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.
@@ -22,7 +22,7 @@ const overall_render_progress_1 = require("./helpers/overall-render-progress");
22
22
  const stream_renderer_1 = require("./helpers/stream-renderer");
23
23
  const timer_1 = require("./helpers/timer");
24
24
  const innerLaunchHandler = async ({ functionName, params, options, overallProgress, registerCleanupTask, providerSpecifics, }) => {
25
- var _a, _b, _c, _d, _e, _f, _g;
25
+ var _a, _b, _c, _d, _e, _f, _g, _h;
26
26
  if (params.type !== client_1.ServerlessRoutines.launch) {
27
27
  throw new Error('Expected launch type');
28
28
  }
@@ -87,11 +87,11 @@ const innerLaunchHandler = async ({ functionName, params, options, overallProgre
87
87
  renderer_1.RenderInternals.validateConcurrency({
88
88
  value: params.concurrencyPerLambda,
89
89
  setting: 'concurrencyPerLambda',
90
- checkIfValidForCurrentMachine: true,
90
+ checkIfValidForCurrentMachine: ((_b = params.rendererFunctionName) !== null && _b !== void 0 ? _b : null) === null,
91
91
  });
92
92
  const realFrameRange = renderer_1.RenderInternals.getRealFrameRange(comp.durationInFrames, params.frameRange);
93
93
  const frameCount = renderer_1.RenderInternals.getFramesToRender(realFrameRange, params.everyNthFrame);
94
- const framesPerLambda = (_b = params.framesPerLambda) !== null && _b !== void 0 ? _b : (0, best_frames_per_lambda_param_1.bestFramesPerLambdaParam)(frameCount.length);
94
+ const framesPerLambda = (_c = params.framesPerLambda) !== null && _c !== void 0 ? _c : (0, best_frames_per_lambda_param_1.bestFramesPerLambdaParam)(frameCount.length);
95
95
  (0, validate_frames_per_lambda_1.validateFramesPerLambda)({
96
96
  framesPerLambda,
97
97
  durationInFrames: frameCount.length,
@@ -219,7 +219,7 @@ const innerLaunchHandler = async ({ functionName, params, options, overallProgre
219
219
  memorySizeInMb: Number(process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE),
220
220
  region: providerSpecifics.getCurrentRegionInFunction(),
221
221
  renderId: params.renderId,
222
- outName: (_c = params.outName) !== null && _c !== void 0 ? _c : undefined,
222
+ outName: (_d = params.outName) !== null && _d !== void 0 ? _d : undefined,
223
223
  privacy: params.privacy,
224
224
  everyNthFrame: params.everyNthFrame,
225
225
  frameRange: realFrameRange,
@@ -232,13 +232,13 @@ const innerLaunchHandler = async ({ functionName, params, options, overallProgre
232
232
  metadata: params.metadata,
233
233
  functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
234
234
  dimensions: {
235
- width: comp.width * ((_d = params.scale) !== null && _d !== void 0 ? _d : 1),
236
- height: comp.height * ((_e = params.scale) !== null && _e !== void 0 ? _e : 1),
235
+ width: comp.width * ((_e = params.scale) !== null && _e !== void 0 ? _e : 1),
236
+ height: comp.height * ((_f = params.scale) !== null && _f !== void 0 ? _f : 1),
237
237
  },
238
238
  };
239
239
  const { key, renderBucketName, customCredentials } = (0, client_1.getExpectedOutName)(renderMetadata, params.bucketName, typeof params.outName === 'string' || typeof params.outName === 'undefined'
240
240
  ? null
241
- : ((_g = (_f = params.outName) === null || _f === void 0 ? void 0 : _f.s3OutputProvider) !== null && _g !== void 0 ? _g : null));
241
+ : ((_h = (_g = params.outName) === null || _g === void 0 ? void 0 : _g.s3OutputProvider) !== null && _h !== void 0 ? _h : null));
242
242
  if (!params.overwrite) {
243
243
  const findOutputFile = (0, timer_1.timer)('Checking if output file already exists', params.logLevel);
244
244
  const output = await (0, find_output_file_in_bucket_1.findOutputFileInBucket)({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.240",
6
+ "version": "4.0.241",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -22,13 +22,13 @@
22
22
  "@aws-sdk/s3-request-presigner": "3.645.0",
23
23
  "mime-types": "2.1.34",
24
24
  "zod": "3.22.3",
25
- "@remotion/bundler": "4.0.240",
26
- "@remotion/renderer": "4.0.240",
27
- "@remotion/cli": "4.0.240",
28
- "@remotion/studio-server": "4.0.240",
29
- "@remotion/streaming": "4.0.240",
30
- "@remotion/serverless": "4.0.240",
31
- "remotion": "4.0.240"
25
+ "@remotion/bundler": "4.0.241",
26
+ "@remotion/renderer": "4.0.241",
27
+ "@remotion/studio-server": "4.0.241",
28
+ "@remotion/serverless": "4.0.241",
29
+ "@remotion/cli": "4.0.241",
30
+ "@remotion/streaming": "4.0.241",
31
+ "remotion": "4.0.241"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/mime-types": "2.1.1",
@@ -38,12 +38,12 @@
38
38
  "vitest": "0.31.1",
39
39
  "zip-lib": "^0.7.2",
40
40
  "eslint": "9.14.0",
41
- "@remotion/bundler": "4.0.240",
42
- "@remotion/compositor-linux-arm64-gnu": "4.0.240",
43
- "@remotion/eslint-config-internal": "4.0.240"
41
+ "@remotion/bundler": "4.0.241",
42
+ "@remotion/eslint-config-internal": "4.0.241",
43
+ "@remotion/compositor-linux-arm64-gnu": "4.0.241"
44
44
  },
45
45
  "peerDependencies": {
46
- "@remotion/bundler": "4.0.240"
46
+ "@remotion/bundler": "4.0.241"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
Binary file