@remotion/lambda 3.2.30 → 3.2.31

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.
@@ -6,6 +6,9 @@ export declare const planFrameRanges: ({ framesPerLambda, optimization, shouldUs
6
6
  frameRange: [number, number];
7
7
  everyNthFrame: number;
8
8
  }) => {
9
- chunks: [number, number][];
9
+ chunks: [
10
+ number,
11
+ number
12
+ ][];
10
13
  didUseOptimization: boolean;
11
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.2.30",
3
+ "version": "3.2.31",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -32,12 +32,12 @@
32
32
  "@aws-sdk/client-service-quotas": "3.58.0",
33
33
  "@aws-sdk/lib-storage": "3.58.0",
34
34
  "@aws-sdk/s3-request-presigner": "3.58.0",
35
- "@remotion/bundler": "3.2.30",
36
- "@remotion/cli": "3.2.30",
37
- "@remotion/renderer": "3.2.30",
35
+ "@remotion/bundler": "3.2.31",
36
+ "@remotion/cli": "3.2.31",
37
+ "@remotion/renderer": "3.2.31",
38
38
  "aws-policies": "^1.0.1",
39
39
  "mime-types": "2.1.34",
40
- "remotion": "3.2.30"
40
+ "remotion": "3.2.31"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.8.0",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "5dc5f4c010c47186c7911b575998296d6a65f7cb"
65
+ "gitHead": "f011b454d78903e548c32f548d8fef642c5ff7a6"
66
66
  }
Binary file
@@ -1,10 +0,0 @@
1
- import type { ImageFormat, StillImageFormat } from '@remotion/renderer';
2
- export declare const getImageFormat: ({ downloadName, outName, configImageFormat, cliFlag, }: {
3
- downloadName: string | null;
4
- outName: string | null;
5
- configImageFormat: ImageFormat | null;
6
- cliFlag: ImageFormat | null;
7
- }) => {
8
- format: StillImageFormat;
9
- source: string;
10
- };
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getImageFormat = void 0;
4
- const deriveExtensionFromFilename = (filename) => {
5
- if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.png')) {
6
- return 'png';
7
- }
8
- if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.jpg')) {
9
- return 'jpeg';
10
- }
11
- if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.jpeg')) {
12
- return 'jpeg';
13
- }
14
- return null;
15
- };
16
- const getImageFormat = ({ downloadName, outName, configImageFormat, cliFlag, }) => {
17
- const outNameExtension = deriveExtensionFromFilename(outName);
18
- const downloadNameExtension = deriveExtensionFromFilename(downloadName);
19
- if (outNameExtension &&
20
- downloadNameExtension &&
21
- outNameExtension !== downloadNameExtension) {
22
- throw new TypeError(`Image format mismatch: ${outName} was given as the S3 output name and ${downloadName} was given as the download name, but the extensions don't match.`);
23
- }
24
- if (downloadNameExtension) {
25
- if (cliFlag && downloadNameExtension !== cliFlag) {
26
- throw new TypeError(`Image format mismatch: ${downloadName} was given as the download name, but --image-format=${cliFlag} was passed. The image formats must match.`);
27
- }
28
- return { format: downloadNameExtension, source: 'Download name extension' };
29
- }
30
- if (outNameExtension) {
31
- if (cliFlag && outNameExtension !== cliFlag) {
32
- throw new TypeError(`Image format mismatch: ${outName} was given as the S3 out name, but --image-format=${cliFlag} was passed. The image formats must match.`);
33
- }
34
- return { format: outNameExtension, source: 'Out name extension' };
35
- }
36
- if (cliFlag === 'none') {
37
- throw new TypeError('The --image-format flag must not be "none" for stills.');
38
- }
39
- if (cliFlag !== null) {
40
- return { format: cliFlag, source: '--image-format flag' };
41
- }
42
- if (configImageFormat !== null && configImageFormat !== 'none') {
43
- return { format: configImageFormat, source: 'Config file' };
44
- }
45
- return { format: 'png', source: 'Default' };
46
- };
47
- exports.getImageFormat = getImageFormat;
@@ -1,8 +0,0 @@
1
- import type { AwsRegion } from '../../client';
2
- import type { LambdaRoutines } from '../../shared/constants';
3
- export declare const getCloudwatchStreamUrl: ({ region, functionName, method, renderId, }: {
4
- region: AwsRegion;
5
- functionName: string;
6
- method: LambdaRoutines;
7
- renderId: string;
8
- }) => string;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCloudwatchStreamUrl = void 0;
4
- const getCloudwatchStreamUrl = ({ region, functionName, method, renderId, }) => {
5
- return `https://${region}.console.aws.amazon.com/cloudwatch/home?region=${region}#logsV2:log-groups/log-group/$252Faws$252Flambda$252F${functionName}/log-events$3FfilterPattern$3D$2522method$253D${method}$252CrenderId$253D${renderId}$2522`;
6
- };
7
- exports.getCloudwatchStreamUrl = getCloudwatchStreamUrl;
@@ -1,6 +0,0 @@
1
- export declare type WebhookPayload = {
2
- type: 'success' | 'error' | 'timeout';
3
- renderId: string;
4
- bucketName: string;
5
- expectedBucketOwner: string;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });