@remotion/lambda 3.3.91 → 3.3.92

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.
@@ -9,7 +9,6 @@ declare type Site = {
9
9
  };
10
10
  export declare type GetSitesInput = {
11
11
  region: AwsRegion;
12
- bucketName?: string;
13
12
  };
14
13
  export declare type GetSitesOutput = {
15
14
  sites: Site[];
@@ -5,7 +5,7 @@ export declare const makeLambdaPayload: ({ rendererFunctionName, frameRange, fra
5
5
  composition: string;
6
6
  serveUrl: string;
7
7
  inputProps: import("../defaults").SerializedInputProps;
8
- codec: "h264" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "gif" | "prores";
8
+ codec: "h264" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "gif";
9
9
  imageFormat: "png" | "jpeg" | "none";
10
10
  crf: number | undefined;
11
11
  envVariables: Record<string, string> | undefined;
@@ -14,7 +14,7 @@ export declare const makeLambdaPayload: ({ rendererFunctionName, frameRange, fra
14
14
  quality: number | undefined;
15
15
  maxRetries: number;
16
16
  privacy: import("../defaults").Privacy;
17
- logLevel: "verbose" | "error" | "info" | "warn";
17
+ logLevel: "verbose" | "info" | "warn" | "error";
18
18
  frameRange: import("@remotion/renderer").FrameRange | null;
19
19
  outName: import("../defaults").OutNameInput | null;
20
20
  timeoutInMilliseconds: number;
@@ -6,7 +6,7 @@ export declare const LambdaInternals: {
6
6
  composition: string;
7
7
  serveUrl: string;
8
8
  inputProps: import("./defaults").SerializedInputProps;
9
- codec: "h264" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "gif" | "prores";
9
+ codec: "h264" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "gif";
10
10
  imageFormat: "png" | "jpeg" | "none";
11
11
  crf: number | undefined;
12
12
  envVariables: Record<string, string> | undefined;
@@ -15,7 +15,7 @@ export declare const LambdaInternals: {
15
15
  quality: number | undefined;
16
16
  maxRetries: number;
17
17
  privacy: import("./defaults").Privacy;
18
- logLevel: "verbose" | "error" | "info" | "warn";
18
+ logLevel: "verbose" | "info" | "warn" | "error";
19
19
  frameRange: import("@remotion/renderer").FrameRange | null;
20
20
  outName: import("./defaults").OutNameInput | null;
21
21
  timeoutInMilliseconds: number;
@@ -12,6 +12,17 @@ const callLambda = async ({ functionName, type, payload, region, }) => {
12
12
  }));
13
13
  const string = Buffer.from(res.Payload).toString();
14
14
  const json = JSON.parse(string);
15
+ if (json === null) {
16
+ throw new Error('Lambda function unexpectedly returned null: ' +
17
+ JSON.stringify({
18
+ payload,
19
+ type,
20
+ functionName,
21
+ json,
22
+ error: res.FunctionError,
23
+ version: res.$metadata,
24
+ }));
25
+ }
15
26
  if ('errorMessage' in json) {
16
27
  const err = new Error(json.errorMessage);
17
28
  err.name = json.errorType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.3.91",
3
+ "version": "3.3.92",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -23,18 +23,18 @@
23
23
  "@aws-sdk/credential-providers": "3.272.0",
24
24
  "@aws-sdk/lib-storage": "3.272.0",
25
25
  "@aws-sdk/s3-request-presigner": "3.272.0",
26
- "@remotion/bundler": "3.3.91",
27
- "@remotion/cli": "3.3.91",
28
- "@remotion/renderer": "3.3.91",
26
+ "@remotion/bundler": "3.3.92",
27
+ "@remotion/cli": "3.3.92",
28
+ "@remotion/renderer": "3.3.92",
29
29
  "aws-policies": "^1.0.1",
30
30
  "mime-types": "2.1.34",
31
- "remotion": "3.3.91"
31
+ "remotion": "3.3.92"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@jonny/eslint-config": "3.0.266",
35
- "@remotion/bundler": "3.3.91",
36
- "@remotion/compositor-linux-arm64-musl": "3.3.91",
37
- "@remotion/compositor-linux-x64-musl": "3.3.91",
35
+ "@remotion/bundler": "3.3.92",
36
+ "@remotion/compositor-linux-arm64-musl": "3.3.92",
37
+ "@remotion/compositor-linux-x64-musl": "3.3.92",
38
38
  "@types/mime-types": "2.1.1",
39
39
  "@types/minimist": "1.2.2",
40
40
  "@types/node": "^14.14.14",
@@ -48,7 +48,7 @@
48
48
  "zip-lib": "^0.7.2"
49
49
  },
50
50
  "peerDependencies": {
51
- "@remotion/bundler": "3.3.91"
51
+ "@remotion/bundler": "3.3.92"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
Binary file
Binary file