@remotion/lambda 4.0.285 → 4.0.286

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.
@@ -62,7 +62,7 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
62
62
  }
63
63
  const { FunctionName, FunctionArn } = await lambda_client_1.LambdaClientInternals.getLambdaClient(region).send(new client_lambda_1.CreateFunctionCommand({
64
64
  Code: {
65
- ZipFile: (0, node_fs_1.readFileSync)(zipFile),
65
+ ZipFile: new Uint8Array((0, node_fs_1.readFileSync)(zipFile)),
66
66
  },
67
67
  FunctionName: functionName,
68
68
  Handler: 'index.handler',
package/dist/cli/log.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export declare const Log: {
2
2
  trace: (options: import("@remotion/renderer").LogOptions & {
3
3
  tag?: string;
4
- }, ...args: Parameters<typeof console.log>) => boolean | void;
4
+ }, message?: any, ...optionalParams: any[]) => boolean | void;
5
5
  verbose: (options: import("@remotion/renderer").LogOptions & {
6
6
  tag?: string;
7
- }, ...args: Parameters<typeof console.log>) => boolean | void;
8
- info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
9
- warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => boolean | void;
7
+ }, message?: any, ...optionalParams: any[]) => boolean | void;
8
+ info: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
9
+ warn: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => boolean | void;
10
10
  error: (options: import("@remotion/renderer").LogOptions & {
11
11
  tag?: string;
12
- }, ...args: Parameters<typeof console.log>) => boolean | void;
12
+ }, message?: any, ...optionalParams: any[]) => boolean | void;
13
13
  };
@@ -8604,7 +8604,7 @@ var require_package = __commonJS((exports, module) => {
8604
8604
  url: "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
8605
8605
  },
8606
8606
  name: "@remotion/lambda",
8607
- version: "4.0.285",
8607
+ version: "4.0.286",
8608
8608
  description: "Render Remotion videos on AWS Lambda",
8609
8609
  main: "dist/index.js",
8610
8610
  sideEffects: false,
@@ -8649,7 +8649,7 @@ var require_package = __commonJS((exports, module) => {
8649
8649
  "@types/minimist": "1.2.2",
8650
8650
  "@types/prompt": "^1.1.0",
8651
8651
  eslint: "9.19.0",
8652
- next: "15.2.3",
8652
+ next: "15.2.4",
8653
8653
  pureimage: "0.4.13",
8654
8654
  "zip-lib": "^0.7.2"
8655
8655
  },
@@ -9622,7 +9622,7 @@ var createFunction = async ({
9622
9622
  }
9623
9623
  const { FunctionName, FunctionArn } = await LambdaClientInternals3.getLambdaClient(region).send(new CreateFunctionCommand({
9624
9624
  Code: {
9625
- ZipFile: readFileSync(zipFile)
9625
+ ZipFile: new Uint8Array(readFileSync(zipFile))
9626
9626
  },
9627
9627
  FunctionName: functionName,
9628
9628
  Handler: "index.handler",
@@ -7,7 +7,10 @@ exports.getEtagOfFile = void 0;
7
7
  const node_crypto_1 = __importDefault(require("node:crypto"));
8
8
  const node_fs_1 = __importDefault(require("node:fs"));
9
9
  const chunk = 1024 * 1024 * 5; // 5MB
10
- const md5 = (data) => node_crypto_1.default.createHash('md5').update(data).digest('hex');
10
+ const md5 = (data) => node_crypto_1.default
11
+ .createHash('md5')
12
+ .update(data)
13
+ .digest('hex');
11
14
  const getEtagOfFile = (filePath, onProgress) => {
12
15
  const calc = async () => {
13
16
  const size = await node_fs_1.default.promises.stat(filePath).then((s) => s.size);
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.readDirectory = void 0;
27
37
  const fs = __importStar(require("node:fs"));
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.285",
6
+ "version": "4.0.286",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -20,13 +20,13 @@
20
20
  "@aws-sdk/lib-storage": "3.738.0",
21
21
  "@smithy/abort-controller": "4.0.1",
22
22
  "zod": "3.22.3",
23
- "@remotion/bundler": "4.0.285",
24
- "@remotion/lambda-client": "4.0.285",
25
- "@remotion/cli": "4.0.285",
26
- "@remotion/renderer": "4.0.285",
27
- "@remotion/serverless": "4.0.285",
28
- "@remotion/streaming": "4.0.285",
29
- "remotion": "4.0.285"
23
+ "@remotion/bundler": "4.0.286",
24
+ "@remotion/lambda-client": "4.0.286",
25
+ "@remotion/cli": "4.0.286",
26
+ "@remotion/renderer": "4.0.286",
27
+ "@remotion/serverless": "4.0.286",
28
+ "@remotion/streaming": "4.0.286",
29
+ "remotion": "4.0.286"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/express": "^5.0.0",
@@ -36,15 +36,15 @@
36
36
  "@types/minimist": "1.2.2",
37
37
  "@types/prompt": "^1.1.0",
38
38
  "eslint": "9.19.0",
39
- "next": "15.2.3",
39
+ "next": "15.2.4",
40
40
  "pureimage": "0.4.13",
41
41
  "zip-lib": "^0.7.2",
42
- "@remotion/bundler": "4.0.285",
43
- "@remotion/compositor-linux-arm64-gnu": "4.0.285",
44
- "@remotion/eslint-config-internal": "4.0.285"
42
+ "@remotion/bundler": "4.0.286",
43
+ "@remotion/compositor-linux-arm64-gnu": "4.0.286",
44
+ "@remotion/eslint-config-internal": "4.0.286"
45
45
  },
46
46
  "peerDependencies": {
47
- "@remotion/bundler": "4.0.285"
47
+ "@remotion/bundler": "4.0.286"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
Binary file