@remotion/lambda 4.0.12 → 4.0.14

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.
package/dist/cli/log.d.ts CHANGED
@@ -2,24 +2,24 @@ export declare const Log: {
2
2
  verbose: (message?: any, ...optionalParams: any[]) => void;
3
3
  verboseAdvanced: (options: {
4
4
  indent: boolean;
5
- logLevel: "error" | "verbose" | "info" | "warn";
5
+ logLevel: "verbose" | "info" | "warn" | "error";
6
6
  } & {
7
7
  tag?: string | undefined;
8
8
  }, message?: any, ...optionalParams: any[]) => void;
9
9
  info: (message?: any, ...optionalParams: any[]) => void;
10
10
  infoAdvanced: (options: {
11
11
  indent: boolean;
12
- logLevel: "error" | "verbose" | "info" | "warn";
12
+ logLevel: "verbose" | "info" | "warn" | "error";
13
13
  }, message?: any, ...optionalParams: any[]) => void;
14
14
  warn: (message?: any, ...optionalParams: any[]) => void;
15
15
  warnAdvanced: (options: {
16
16
  indent: boolean;
17
- logLevel: "error" | "verbose" | "info" | "warn";
17
+ logLevel: "verbose" | "info" | "warn" | "error";
18
18
  }, message?: any, ...optionalParams: any[]) => void;
19
19
  error: (message?: any, ...optionalParams: any[]) => void;
20
20
  errorAdvanced: (options: {
21
21
  indent: boolean;
22
- logLevel: "error" | "verbose" | "info" | "warn";
22
+ logLevel: "verbose" | "info" | "warn" | "error";
23
23
  } & {
24
24
  tag?: string | undefined;
25
25
  }, message?: any, ...optionalParams: any[]) => void;
@@ -3,5 +3,8 @@ export declare const planFrameRanges: ({ framesPerLambda, frameRange, everyNthFr
3
3
  frameRange: [number, number];
4
4
  everyNthFrame: number;
5
5
  }) => {
6
- chunks: [number, number][];
6
+ chunks: [
7
+ number,
8
+ number
9
+ ][];
7
10
  };
@@ -40,11 +40,19 @@ const callLambda = async ({ functionName, type, payload, region, receivedStreami
40
40
  return json;
41
41
  };
42
42
  exports.callLambda = callLambda;
43
+ const parseJsonWithErrorSurfacing = (input) => {
44
+ try {
45
+ return JSON.parse(input);
46
+ }
47
+ catch (_a) {
48
+ throw new Error(`Cannot parse Lambda response as JSON. Response: ${input}`);
49
+ }
50
+ };
43
51
  const parseJson = (input) => {
44
52
  var _a;
45
- let json = JSON.parse(input);
53
+ let json = parseJsonWithErrorSurfacing(input);
46
54
  if ('statusCode' in json) {
47
- json = JSON.parse(json.body);
55
+ json = parseJsonWithErrorSurfacing(json.body);
48
56
  }
49
57
  if ('errorMessage' in json) {
50
58
  const err = new Error(json.errorMessage);
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import https from 'https';
4
2
  import http from 'node:http';
5
3
  import type { EnhancedErrorInfo } from '../functions/helpers/write-lambda-error';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "4.0.12",
3
+ "version": "4.0.14",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,10 +26,10 @@
26
26
  "aws-policies": "^1.0.1",
27
27
  "mime-types": "2.1.34",
28
28
  "zod": "3.21.4",
29
- "@remotion/bundler": "4.0.12",
30
- "@remotion/cli": "4.0.12",
31
- "@remotion/renderer": "4.0.12",
32
- "remotion": "4.0.12"
29
+ "remotion": "4.0.14",
30
+ "@remotion/cli": "4.0.14",
31
+ "@remotion/renderer": "4.0.14",
32
+ "@remotion/bundler": "4.0.14"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@jonny/eslint-config": "3.0.266",
@@ -44,11 +44,11 @@
44
44
  "typescript": "4.9.5",
45
45
  "vitest": "0.31.1",
46
46
  "zip-lib": "^0.7.2",
47
- "@remotion/bundler": "4.0.12",
48
- "@remotion/compositor-linux-arm64-gnu": "4.0.12"
47
+ "@remotion/bundler": "4.0.14",
48
+ "@remotion/compositor-linux-arm64-gnu": "4.0.14"
49
49
  },
50
50
  "peerDependencies": {
51
- "@remotion/bundler": "4.0.12"
51
+ "@remotion/bundler": "4.0.14"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
Binary file