@remotion/lambda 4.0.220 → 4.0.223
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/build.ts +60 -0
- package/dist/api/get-render-progress.js +1 -0
- package/dist/cli/log.d.ts +3 -3
- package/dist/functions/aws-implementation.js +2 -2
- package/dist/functions/helpers/get-current-region.js +1 -1
- package/dist/functions/helpers/get-progress.d.ts +2 -1
- package/dist/functions/helpers/get-progress.js +3 -2
- package/dist/functions/helpers/make-timeout-error.d.ts +4 -3
- package/dist/functions/helpers/make-timeout-error.js +3 -2
- package/dist/functions/helpers/make-timeout-message.d.ts +4 -3
- package/dist/functions/helpers/make-timeout-message.js +14 -10
- package/dist/functions/launch.js +6 -2
- package/dist/functions/progress.js +1 -0
- package/dist/functions/still.js +7 -3
- package/dist/index.d.ts +4 -1
- package/dist/index.js +5 -1
- package/dist/shared/is-flaky-error.js +1 -0
- package/package.json +12 -12
- package/remotionlambda-arm64.zip +0 -0
package/build.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {BundlerInternals} from '@remotion/bundler';
|
|
2
|
+
import {dir} from '@remotion/compositor-linux-arm64-gnu';
|
|
3
|
+
import fs, {cpSync, readdirSync} from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import {FUNCTION_ZIP_ARM64} from './src/shared/function-zip-path';
|
|
6
|
+
|
|
7
|
+
import zl from 'zip-lib';
|
|
8
|
+
|
|
9
|
+
const outdir = path.join(__dirname, `build-render`);
|
|
10
|
+
fs.mkdirSync(outdir, {
|
|
11
|
+
recursive: true,
|
|
12
|
+
});
|
|
13
|
+
const outfile = path.join(outdir, 'index.js');
|
|
14
|
+
|
|
15
|
+
fs.rmSync(outdir, {recursive: true});
|
|
16
|
+
fs.mkdirSync(outdir, {recursive: true});
|
|
17
|
+
const template = require.resolve(
|
|
18
|
+
path.join(__dirname, 'src', 'functions', 'index'),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
await BundlerInternals.esbuild.build({
|
|
22
|
+
platform: 'node',
|
|
23
|
+
target: 'node16',
|
|
24
|
+
bundle: true,
|
|
25
|
+
outfile,
|
|
26
|
+
entryPoints: [template],
|
|
27
|
+
treeShaking: true,
|
|
28
|
+
external: [],
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const filesInCwd = readdirSync(dir);
|
|
32
|
+
const filesToCopy = filesInCwd.filter(
|
|
33
|
+
(f) =>
|
|
34
|
+
f.startsWith('remotion') ||
|
|
35
|
+
f.endsWith('.so') ||
|
|
36
|
+
f.endsWith('.dll') ||
|
|
37
|
+
f.endsWith('.dylib') ||
|
|
38
|
+
f.startsWith('ffmpeg') ||
|
|
39
|
+
f.startsWith('ffprobe'),
|
|
40
|
+
);
|
|
41
|
+
for (const file of filesToCopy) {
|
|
42
|
+
cpSync(path.join(dir, file), path.join(outdir, file));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
fs.cpSync(
|
|
46
|
+
path.join(
|
|
47
|
+
__dirname,
|
|
48
|
+
'..',
|
|
49
|
+
'renderer',
|
|
50
|
+
'node_modules',
|
|
51
|
+
'source-map',
|
|
52
|
+
'lib',
|
|
53
|
+
'mappings.wasm',
|
|
54
|
+
),
|
|
55
|
+
`${outdir}/mappings.wasm`,
|
|
56
|
+
);
|
|
57
|
+
await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);
|
|
58
|
+
|
|
59
|
+
fs.rmSync(outdir, {recursive: true});
|
|
60
|
+
console.log('Bundled Lambda');
|
|
@@ -38,6 +38,7 @@ const getRenderProgress = async (input) => {
|
|
|
38
38
|
providerSpecifics: aws_implementation_1.awsImplementation,
|
|
39
39
|
memorySizeInMb: parsed.memorySizeInMb,
|
|
40
40
|
timeoutInMilliseconds: parsed.timeoutInSeconds * 1000,
|
|
41
|
+
functionName: input.functionName,
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
const result = await (0, call_lambda_1.callLambda)({
|
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
|
-
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
2
|
+
verbose: (options: import("@remotion/renderer/dist/logger").LogOptions & {
|
|
3
3
|
tag?: string;
|
|
4
4
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
5
5
|
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
6
|
-
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
|
-
error: (options: import("@remotion/renderer").LogOptions & {
|
|
6
|
+
warn: (options: import("@remotion/renderer/dist/logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
|
+
error: (options: import("@remotion/renderer/dist/logger").LogOptions & {
|
|
8
8
|
tag?: string;
|
|
9
9
|
}, ...args: Parameters<typeof console.log>) => void;
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.awsImplementation = void 0;
|
|
5
|
-
const
|
|
5
|
+
const node_events_1 = require("node:events");
|
|
6
6
|
const bucket_exists_1 = require("../api/bucket-exists");
|
|
7
7
|
const create_bucket_1 = require("../api/create-bucket");
|
|
8
8
|
const get_buckets_1 = require("../api/get-buckets");
|
|
@@ -23,7 +23,7 @@ if (/^AWS_Lambda_nodejs(?:18|20)[.]x$/.test((_a = process.env.AWS_EXECUTION_ENV)
|
|
|
23
23
|
process.env.DISABLE_FROM_SURFACE = '1';
|
|
24
24
|
process.env.NO_COLOR = '1';
|
|
25
25
|
// @ts-expect-error
|
|
26
|
-
globalThis._dumpUnreleasedBuffers = new
|
|
26
|
+
globalThis._dumpUnreleasedBuffers = new node_events_1.EventEmitter();
|
|
27
27
|
// @ts-expect-error
|
|
28
28
|
globalThis._dumpUnreleasedBuffers.setMaxListeners(201);
|
|
29
29
|
}
|
|
@@ -4,7 +4,7 @@ exports.getCurrentRegionInFunctionImplementation = void 0;
|
|
|
4
4
|
const is_in_lambda_1 = require("../../shared/is-in-lambda");
|
|
5
5
|
const getCurrentRegionInFunctionImplementation = () => {
|
|
6
6
|
if (!(0, is_in_lambda_1.isInsideLambda)()) {
|
|
7
|
-
throw new Error('Should not call
|
|
7
|
+
throw new Error('Should not call getCurrentRegionInFunctionImplementation() if not inside a lambda function');
|
|
8
8
|
}
|
|
9
9
|
if (!process.env.AWS_REGION) {
|
|
10
10
|
throw new Error('Expected process.env.AWS_REGION to be defined');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CloudProvider, ProviderSpecifics } from '@remotion/serverless';
|
|
2
2
|
import { type CustomCredentials } from '@remotion/serverless/client';
|
|
3
3
|
import type { GenericRenderProgress } from '../../shared/constants';
|
|
4
|
-
export declare const getProgress: <Provider extends CloudProvider>({ bucketName, renderId, expectedBucketOwner, region, memorySizeInMb, timeoutInMilliseconds, customCredentials, providerSpecifics, forcePathStyle, }: {
|
|
4
|
+
export declare const getProgress: <Provider extends CloudProvider>({ bucketName, renderId, expectedBucketOwner, region, memorySizeInMb, timeoutInMilliseconds, customCredentials, providerSpecifics, forcePathStyle, functionName, }: {
|
|
5
5
|
bucketName: string;
|
|
6
6
|
renderId: string;
|
|
7
7
|
expectedBucketOwner: string | null;
|
|
@@ -11,4 +11,5 @@ export declare const getProgress: <Provider extends CloudProvider>({ bucketName,
|
|
|
11
11
|
customCredentials: CustomCredentials<Provider> | null;
|
|
12
12
|
providerSpecifics: ProviderSpecifics<Provider>;
|
|
13
13
|
forcePathStyle: boolean;
|
|
14
|
+
functionName: string;
|
|
14
15
|
}) => Promise<GenericRenderProgress<Provider>>;
|
|
@@ -13,7 +13,7 @@ const get_overall_progress_s3_1 = require("./get-overall-progress-s3");
|
|
|
13
13
|
const inspect_errors_1 = require("./inspect-errors");
|
|
14
14
|
const make_timeout_error_1 = require("./make-timeout-error");
|
|
15
15
|
const render_has_audio_video_1 = require("./render-has-audio-video");
|
|
16
|
-
const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region, memorySizeInMb, timeoutInMilliseconds, customCredentials, providerSpecifics, forcePathStyle, }) => {
|
|
16
|
+
const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region, memorySizeInMb, timeoutInMilliseconds, customCredentials, providerSpecifics, forcePathStyle, functionName, }) => {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
18
18
|
const overallProgress = await (0, get_overall_progress_s3_1.getOverallProgressS3)({
|
|
19
19
|
renderId,
|
|
@@ -184,7 +184,8 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
184
184
|
renderMetadata,
|
|
185
185
|
renderId,
|
|
186
186
|
missingChunks: missingChunks !== null && missingChunks !== void 0 ? missingChunks : [],
|
|
187
|
-
|
|
187
|
+
region,
|
|
188
|
+
functionName,
|
|
188
189
|
})
|
|
189
190
|
: null,
|
|
190
191
|
...errorExplanations,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { CloudProvider, EnhancedErrorInfo
|
|
1
|
+
import type { CloudProvider, EnhancedErrorInfo } from '@remotion/serverless';
|
|
2
2
|
import type { RenderMetadata } from '@remotion/serverless/client';
|
|
3
|
-
export declare const makeTimeoutError: <Provider extends CloudProvider>({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId,
|
|
3
|
+
export declare const makeTimeoutError: <Provider extends CloudProvider>({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId, functionName, region, }: {
|
|
4
4
|
timeoutInMilliseconds: number;
|
|
5
5
|
renderMetadata: RenderMetadata<Provider>;
|
|
6
6
|
renderId: string;
|
|
7
7
|
missingChunks: number[];
|
|
8
|
-
|
|
8
|
+
functionName: string;
|
|
9
|
+
region: Provider["region"];
|
|
9
10
|
}) => EnhancedErrorInfo;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeTimeoutError = void 0;
|
|
4
4
|
const make_timeout_message_1 = require("./make-timeout-message");
|
|
5
|
-
const makeTimeoutError = ({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId,
|
|
5
|
+
const makeTimeoutError = ({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId, functionName, region, }) => {
|
|
6
6
|
const message = (0, make_timeout_message_1.makeTimeoutMessage)({
|
|
7
7
|
missingChunks,
|
|
8
8
|
renderMetadata,
|
|
9
9
|
timeoutInMilliseconds,
|
|
10
10
|
renderId,
|
|
11
|
-
|
|
11
|
+
functionName,
|
|
12
|
+
region,
|
|
12
13
|
});
|
|
13
14
|
const error = new Error(message);
|
|
14
15
|
return {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { CloudProvider
|
|
1
|
+
import type { CloudProvider } from '@remotion/serverless';
|
|
2
2
|
import type { RenderMetadata } from '@remotion/serverless/client';
|
|
3
|
-
export declare const makeTimeoutMessage: <Provider extends CloudProvider>({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId,
|
|
3
|
+
export declare const makeTimeoutMessage: <Provider extends CloudProvider>({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId, functionName, region, }: {
|
|
4
4
|
timeoutInMilliseconds: number;
|
|
5
5
|
missingChunks: number[];
|
|
6
6
|
renderMetadata: RenderMetadata<Provider>;
|
|
7
7
|
renderId: string;
|
|
8
|
-
|
|
8
|
+
region: Provider["region"];
|
|
9
|
+
functionName: string;
|
|
9
10
|
}) => string;
|
|
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/serverless/client");
|
|
|
5
5
|
const docs_url_1 = require("../../shared/docs-url");
|
|
6
6
|
const get_aws_urls_1 = require("../../shared/get-aws-urls");
|
|
7
7
|
const MAX_MISSING_CHUNKS = 5;
|
|
8
|
-
const makeChunkMissingMessage = ({ missingChunks, renderMetadata,
|
|
8
|
+
const makeChunkMissingMessage = ({ missingChunks, renderMetadata, region, }) => {
|
|
9
9
|
if (missingChunks.length === 0) {
|
|
10
10
|
return 'All chunks have been successfully rendered, but the main function has timed out.';
|
|
11
11
|
}
|
|
@@ -25,7 +25,7 @@ const makeChunkMissingMessage = ({ missingChunks, renderMetadata, providerSpecif
|
|
|
25
25
|
msg,
|
|
26
26
|
`▸ Logs for chunk ${ch}: ${(0, get_aws_urls_1.getCloudwatchRendererUrl)({
|
|
27
27
|
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
28
|
-
region:
|
|
28
|
+
region: region,
|
|
29
29
|
rendererFunctionName: null,
|
|
30
30
|
renderId: renderMetadata.renderId,
|
|
31
31
|
chunk: ch,
|
|
@@ -35,24 +35,28 @@ const makeChunkMissingMessage = ({ missingChunks, renderMetadata, providerSpecif
|
|
|
35
35
|
.slice(0, 5),
|
|
36
36
|
].join('\n');
|
|
37
37
|
};
|
|
38
|
-
const makeTimeoutMessage = ({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId,
|
|
38
|
+
const makeTimeoutMessage = ({ timeoutInMilliseconds, missingChunks, renderMetadata, renderId, functionName, region, }) => {
|
|
39
39
|
const cloudWatchRendererUrl = (0, get_aws_urls_1.getCloudwatchRendererUrl)({
|
|
40
40
|
renderId,
|
|
41
|
-
functionName
|
|
42
|
-
region:
|
|
43
|
-
rendererFunctionName:
|
|
41
|
+
functionName,
|
|
42
|
+
region: region,
|
|
43
|
+
rendererFunctionName: functionName,
|
|
44
44
|
chunk: null,
|
|
45
45
|
});
|
|
46
46
|
const cloudWatchLaunchUrl = (0, get_aws_urls_1.getCloudwatchMethodUrl)({
|
|
47
47
|
renderId,
|
|
48
|
-
functionName
|
|
48
|
+
functionName,
|
|
49
49
|
method: client_1.ServerlessRoutines.launch,
|
|
50
|
-
region:
|
|
51
|
-
rendererFunctionName:
|
|
50
|
+
region: region,
|
|
51
|
+
rendererFunctionName: functionName,
|
|
52
52
|
});
|
|
53
53
|
const message = [
|
|
54
54
|
`The main function timed out after ${timeoutInMilliseconds}ms.`,
|
|
55
|
-
makeChunkMissingMessage({
|
|
55
|
+
makeChunkMissingMessage({
|
|
56
|
+
missingChunks,
|
|
57
|
+
renderMetadata,
|
|
58
|
+
region,
|
|
59
|
+
}),
|
|
56
60
|
'',
|
|
57
61
|
`Consider increasing the timeout of your function.`,
|
|
58
62
|
`▸ You can use the "--timeout" parameter when deploying a function via CLI, or the "timeoutInSeconds" parameter when using the deployFunction() API.`,
|
package/dist/functions/launch.js
CHANGED
|
@@ -22,7 +22,7 @@ const overall_render_progress_1 = require("./helpers/overall-render-progress");
|
|
|
22
22
|
const stream_renderer_1 = require("./helpers/stream-renderer");
|
|
23
23
|
const timer_1 = require("./helpers/timer");
|
|
24
24
|
const innerLaunchHandler = async ({ functionName, params, options, overallProgress, registerCleanupTask, providerSpecifics, }) => {
|
|
25
|
-
var _a, _b, _c, _d, _e;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
26
|
if (params.type !== client_1.ServerlessRoutines.launch) {
|
|
27
27
|
throw new Error('Expected launch type');
|
|
28
28
|
}
|
|
@@ -230,10 +230,14 @@ const innerLaunchHandler = async ({ functionName, params, options, overallProgre
|
|
|
230
230
|
muted: params.muted,
|
|
231
231
|
metadata: params.metadata,
|
|
232
232
|
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
233
|
+
dimensions: {
|
|
234
|
+
width: comp.width * ((_d = params.scale) !== null && _d !== void 0 ? _d : 1),
|
|
235
|
+
height: comp.height * ((_e = params.scale) !== null && _e !== void 0 ? _e : 1),
|
|
236
|
+
},
|
|
233
237
|
};
|
|
234
238
|
const { key, renderBucketName, customCredentials } = (0, client_1.getExpectedOutName)(renderMetadata, params.bucketName, typeof params.outName === 'string' || typeof params.outName === 'undefined'
|
|
235
239
|
? null
|
|
236
|
-
: ((
|
|
240
|
+
: ((_g = (_f = params.outName) === null || _f === void 0 ? void 0 : _f.s3OutputProvider) !== null && _g !== void 0 ? _g : null));
|
|
237
241
|
if (!params.overwrite) {
|
|
238
242
|
const findOutputFile = (0, timer_1.timer)('Checking if output file already exists', params.logLevel);
|
|
239
243
|
const output = await (0, find_output_file_in_bucket_1.findOutputFileInBucket)({
|
|
@@ -26,6 +26,7 @@ const progressHandler = async (lambdaParams, options) => {
|
|
|
26
26
|
customCredentials: (_a = lambdaParams.s3OutputProvider) !== null && _a !== void 0 ? _a : null,
|
|
27
27
|
providerSpecifics: options.providerSpecifics,
|
|
28
28
|
forcePathStyle: lambdaParams.forcePathStyle,
|
|
29
|
+
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
29
30
|
});
|
|
30
31
|
return progress;
|
|
31
32
|
}
|
package/dist/functions/still.js
CHANGED
|
@@ -22,7 +22,7 @@ const get_output_url_from_metadata_1 = require("./helpers/get-output-url-from-me
|
|
|
22
22
|
const on_downloads_logger_1 = require("./helpers/on-downloads-logger");
|
|
23
23
|
const overall_render_progress_1 = require("./helpers/overall-render-progress");
|
|
24
24
|
const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, renderId, onStream, timeoutInMilliseconds, providerSpecifics, }, cleanup) => {
|
|
25
|
-
var _a, _b, _c, _d, _e;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
26
|
if (lambdaParams.type !== client_1.ServerlessRoutines.still) {
|
|
27
27
|
throw new TypeError('Expected still type');
|
|
28
28
|
}
|
|
@@ -132,6 +132,10 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
132
132
|
audioBitrate: null,
|
|
133
133
|
metadata: null,
|
|
134
134
|
functionName: process.env.AWS_LAMBDA_FUNCTION_NAME,
|
|
135
|
+
dimensions: {
|
|
136
|
+
height: composition.height * ((_d = lambdaParams.scale) !== null && _d !== void 0 ? _d : 1),
|
|
137
|
+
width: composition.width * ((_e = lambdaParams.scale) !== null && _e !== void 0 ? _e : 1),
|
|
138
|
+
},
|
|
135
139
|
};
|
|
136
140
|
const still = (0, overall_render_progress_1.makeInitialOverallRenderProgress)(timeoutInMilliseconds);
|
|
137
141
|
still.renderMetadata = renderMetadata;
|
|
@@ -188,7 +192,7 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
188
192
|
composition,
|
|
189
193
|
output: outputPath,
|
|
190
194
|
serveUrl,
|
|
191
|
-
envVariables: (
|
|
195
|
+
envVariables: (_f = lambdaParams.envVariables) !== null && _f !== void 0 ? _f : {},
|
|
192
196
|
frame: renderer_1.RenderInternals.convertToPositiveFrameIndex({
|
|
193
197
|
frame: lambdaParams.frame,
|
|
194
198
|
durationInFrames: composition.durationInFrames,
|
|
@@ -197,7 +201,7 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
197
201
|
serializedInputPropsWithCustomSchema,
|
|
198
202
|
overwrite: false,
|
|
199
203
|
puppeteerInstance: browserInstance.instance,
|
|
200
|
-
jpegQuality: (
|
|
204
|
+
jpegQuality: (_g = lambdaParams.jpegQuality) !== null && _g !== void 0 ? _g : renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY,
|
|
201
205
|
chromiumOptions: lambdaParams.chromiumOptions,
|
|
202
206
|
scale: lambdaParams.scale,
|
|
203
207
|
timeoutInMilliseconds: lambdaParams.timeoutInMilliseconds,
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ import { getFunctions } from './api/get-functions';
|
|
|
25
25
|
import { getOrCreateBucket } from './api/get-or-create-bucket';
|
|
26
26
|
import { getRegions } from './api/get-regions';
|
|
27
27
|
import type { GetRenderProgressInput } from './api/get-render-progress';
|
|
28
|
-
import { getRenderProgress } from './api/get-render-progress';
|
|
29
28
|
import type { GetSitesInput, GetSitesOutput } from './api/get-sites';
|
|
30
29
|
import type { SimulatePermissionsInput, SimulatePermissionsOutput } from './api/iam-validation/simulate';
|
|
31
30
|
import { simulatePermissions } from './api/iam-validation/simulate';
|
|
@@ -42,6 +41,10 @@ import type { WebhookPayload } from './shared/invoke-webhook';
|
|
|
42
41
|
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
43
42
|
*/
|
|
44
43
|
declare const renderMediaOnLambda: (options: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
46
|
+
*/
|
|
47
|
+
declare const getRenderProgress: (input: GetRenderProgressInput) => Promise<RenderProgress>;
|
|
45
48
|
/**
|
|
46
49
|
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
47
50
|
*/
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,6 @@ Object.defineProperty(exports, "getOrCreateBucket", { enumerable: true, get: fun
|
|
|
28
28
|
const get_regions_1 = require("./api/get-regions");
|
|
29
29
|
Object.defineProperty(exports, "getRegions", { enumerable: true, get: function () { return get_regions_1.getRegions; } });
|
|
30
30
|
const get_render_progress_1 = require("./api/get-render-progress");
|
|
31
|
-
Object.defineProperty(exports, "getRenderProgress", { enumerable: true, get: function () { return get_render_progress_1.getRenderProgress; } });
|
|
32
31
|
const get_sites_1 = require("./api/get-sites");
|
|
33
32
|
const simulate_1 = require("./api/iam-validation/simulate");
|
|
34
33
|
Object.defineProperty(exports, "simulatePermissions", { enumerable: true, get: function () { return simulate_1.simulatePermissions; } });
|
|
@@ -48,6 +47,11 @@ Object.defineProperty(exports, "LambdaInternals", { enumerable: true, get: funct
|
|
|
48
47
|
*/
|
|
49
48
|
const renderMediaOnLambda = render_media_on_lambda_1.renderMediaOnLambda;
|
|
50
49
|
exports.renderMediaOnLambda = renderMediaOnLambda;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
52
|
+
*/
|
|
53
|
+
const getRenderProgress = get_render_progress_1.getRenderProgress;
|
|
54
|
+
exports.getRenderProgress = getRenderProgress;
|
|
51
55
|
/**
|
|
52
56
|
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
53
57
|
*/
|
|
@@ -58,6 +58,7 @@ const isFlakyError = (err) => {
|
|
|
58
58
|
message.includes('ECONNRESET') ||
|
|
59
59
|
message.includes('ERR_CONNECTION_TIMED_OUT') ||
|
|
60
60
|
message.includes('ERR_NETWORK_CHANGED') ||
|
|
61
|
+
message.includes('A network error occurred') ||
|
|
61
62
|
message.includes('socket hang up')) {
|
|
62
63
|
return true;
|
|
63
64
|
}
|
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.
|
|
6
|
+
"version": "4.0.223",
|
|
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.
|
|
26
|
-
"@remotion/
|
|
27
|
-
"@remotion/
|
|
28
|
-
"@remotion/
|
|
29
|
-
"
|
|
30
|
-
"@remotion/
|
|
31
|
-
"remotion": "4.0.
|
|
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"
|
|
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.
|
|
41
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
40
|
+
"@remotion/bundler": "4.0.223",
|
|
41
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.223"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@remotion/bundler": "4.0.
|
|
44
|
+
"@remotion/bundler": "4.0.223"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
"testintegration": "vitest src/test/integration --run",
|
|
78
78
|
"lint": "eslint src --ext ts,tsx",
|
|
79
79
|
"test": "vitest src/test/unit --run",
|
|
80
|
-
"make": "bun
|
|
80
|
+
"make": "bun build.ts"
|
|
81
81
|
}
|
|
82
82
|
}
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|