@remotion/lambda 4.0.223 → 4.0.225

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.
@@ -97,7 +97,7 @@ const streamRenderer = ({ payload, functionName, outdir, overallProgress, files,
97
97
  })
98
98
  .catch((err) => {
99
99
  var _a, _b;
100
- const shouldRetry = (_b = (_a = err.message) === null || _a === void 0 ? void 0 : _a.includes('Error: aborted')) !== null && _b !== void 0 ? _b : false;
100
+ const shouldRetry = (_b = (_a = err.stack) === null || _a === void 0 ? void 0 : _a.includes('Error: aborted')) !== null && _b !== void 0 ? _b : false;
101
101
  resolve({
102
102
  type: 'error',
103
103
  error: err.stack,
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.223",
6
+ "version": "4.0.225",
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.223",
26
- "@remotion/cli": "4.0.223",
27
- "@remotion/studio-server": "4.0.223",
28
- "@remotion/streaming": "4.0.223",
29
- "remotion": "4.0.223",
30
- "@remotion/renderer": "4.0.223",
31
- "@remotion/serverless": "4.0.223"
25
+ "@remotion/bundler": "4.0.225",
26
+ "@remotion/renderer": "4.0.225",
27
+ "@remotion/studio-server": "4.0.225",
28
+ "remotion": "4.0.225",
29
+ "@remotion/cli": "4.0.225",
30
+ "@remotion/serverless": "4.0.225",
31
+ "@remotion/streaming": "4.0.225"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/mime-types": "2.1.1",
@@ -37,11 +37,11 @@
37
37
  "pureimage": "0.4.13",
38
38
  "vitest": "0.31.1",
39
39
  "zip-lib": "^0.7.2",
40
- "@remotion/bundler": "4.0.223",
41
- "@remotion/compositor-linux-arm64-gnu": "4.0.223"
40
+ "@remotion/bundler": "4.0.225",
41
+ "@remotion/compositor-linux-arm64-gnu": "4.0.225"
42
42
  },
43
43
  "peerDependencies": {
44
- "@remotion/bundler": "4.0.223"
44
+ "@remotion/bundler": "4.0.225"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
Binary file
@@ -1 +0,0 @@
1
- export {};
@@ -1,75 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
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
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- const bundler_1 = require("@remotion/bundler");
30
- const compositor_linux_arm64_gnu_1 = require("@remotion/compositor-linux-arm64-gnu");
31
- const node_fs_1 = __importStar(require("node:fs"));
32
- const node_path_1 = __importDefault(require("node:path"));
33
- const quit_1 = require("../cli/helpers/quit");
34
- const function_zip_path_1 = require("../shared/function-zip-path");
35
- const zl = require("zip-lib");
36
- const bundleLambda = async () => {
37
- const outdir = node_path_1.default.join(__dirname, '..', `build-render`);
38
- node_fs_1.default.mkdirSync(outdir, {
39
- recursive: true,
40
- });
41
- const outfile = node_path_1.default.join(outdir, 'index.js');
42
- node_fs_1.default.rmSync(outdir, { recursive: true });
43
- node_fs_1.default.mkdirSync(outdir, { recursive: true });
44
- const template = require.resolve(node_path_1.default.join(__dirname, '..', 'functions', 'index'));
45
- await bundler_1.BundlerInternals.esbuild.build({
46
- platform: 'node',
47
- target: 'node16',
48
- bundle: true,
49
- outfile,
50
- entryPoints: [template],
51
- treeShaking: true,
52
- external: [],
53
- });
54
- const filesInCwd = (0, node_fs_1.readdirSync)(compositor_linux_arm64_gnu_1.dir);
55
- const filesToCopy = filesInCwd.filter((f) => f.startsWith('remotion') ||
56
- f.endsWith('.so') ||
57
- f.endsWith('.dll') ||
58
- f.endsWith('.dylib') ||
59
- f.startsWith('ffmpeg') ||
60
- f.startsWith('ffprobe'));
61
- for (const file of filesToCopy) {
62
- (0, node_fs_1.cpSync)(node_path_1.default.join(compositor_linux_arm64_gnu_1.dir, file), node_path_1.default.join(outdir, file));
63
- }
64
- node_fs_1.default.cpSync(node_path_1.default.join(__dirname, '..', '..', '..', 'renderer', 'node_modules', 'source-map', 'lib', 'mappings.wasm'), `${outdir}/mappings.wasm`);
65
- await zl.archiveFolder(outdir, function_zip_path_1.FUNCTION_ZIP_ARM64);
66
- node_fs_1.default.rmSync(outdir, { recursive: true });
67
- };
68
- bundleLambda()
69
- .then(() => {
70
- console.log('Bundled Lambda');
71
- })
72
- .catch((err) => {
73
- console.log(err);
74
- (0, quit_1.quit)(1);
75
- });