@remotion/lambda 4.0.405 → 4.0.407
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/api/deploy-site.d.ts +3 -3
- package/dist/api/download-media.d.ts +15 -1
- package/dist/api/download-media.js +9 -2
- package/dist/cli/commands/render/render.js +3 -0
- package/dist/cli/commands/still.js +4 -0
- package/dist/cli/log.d.ts +11 -11
- package/dist/esm/index.mjs +26 -7
- package/dist/functions/helpers/read-with-progress.d.ts +2 -1
- package/dist/functions/helpers/read-with-progress.js +2 -1
- package/dist/internals.d.ts +3 -3
- package/package.json +12 -12
- package/remotionlambda-arm64.zip +0 -0
|
@@ -66,11 +66,11 @@ export declare const internalDeploySite: (args_0: MandatoryParameters & {
|
|
|
66
66
|
getValue: ({ commandLine }: {
|
|
67
67
|
commandLine: Record<string, unknown>;
|
|
68
68
|
}) => {
|
|
69
|
-
value:
|
|
69
|
+
value: "error" | "info" | "trace" | "verbose" | "warn";
|
|
70
70
|
source: string;
|
|
71
71
|
};
|
|
72
|
-
setConfig: (newLogLevel:
|
|
73
|
-
type:
|
|
72
|
+
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
73
|
+
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
74
74
|
};
|
|
75
75
|
readonly throwIfSiteExists: {
|
|
76
76
|
cliFlag: string;
|
|
@@ -4,6 +4,18 @@ import type { LogLevel } from '@remotion/renderer';
|
|
|
4
4
|
import type { ProviderSpecifics } from '@remotion/serverless';
|
|
5
5
|
import { type CustomCredentials } from '@remotion/serverless';
|
|
6
6
|
import type { LambdaReadFileProgress } from '../functions/helpers/read-with-progress';
|
|
7
|
+
type InternalDownloadMediaInput = {
|
|
8
|
+
region: AwsRegion;
|
|
9
|
+
bucketName: string;
|
|
10
|
+
renderId: string;
|
|
11
|
+
outPath: string;
|
|
12
|
+
onProgress: LambdaReadFileProgress;
|
|
13
|
+
customCredentials: CustomCredentials<AwsProvider> | null;
|
|
14
|
+
logLevel: LogLevel;
|
|
15
|
+
forcePathStyle: boolean;
|
|
16
|
+
requestHandler: RequestHandler | null;
|
|
17
|
+
signal: AbortSignal;
|
|
18
|
+
};
|
|
7
19
|
export type DownloadMediaInput = {
|
|
8
20
|
region: AwsRegion;
|
|
9
21
|
bucketName: string;
|
|
@@ -14,13 +26,15 @@ export type DownloadMediaInput = {
|
|
|
14
26
|
logLevel?: LogLevel;
|
|
15
27
|
forcePathStyle?: boolean;
|
|
16
28
|
requestHandler?: RequestHandler;
|
|
29
|
+
signal?: AbortSignal;
|
|
17
30
|
};
|
|
18
31
|
export type DownloadMediaOutput = {
|
|
19
32
|
outputPath: string;
|
|
20
33
|
sizeInBytes: number;
|
|
21
34
|
};
|
|
22
|
-
export declare const internalDownloadMedia: (input:
|
|
35
|
+
export declare const internalDownloadMedia: (input: InternalDownloadMediaInput & {
|
|
23
36
|
providerSpecifics: ProviderSpecifics<AwsProvider>;
|
|
24
37
|
forcePathStyle: boolean;
|
|
25
38
|
}) => Promise<DownloadMediaOutput>;
|
|
26
39
|
export declare const downloadMedia: (input: DownloadMediaInput) => Promise<DownloadMediaOutput>;
|
|
40
|
+
export {};
|
|
@@ -11,7 +11,7 @@ const serverless_1 = require("@remotion/serverless");
|
|
|
11
11
|
const node_path_1 = __importDefault(require("node:path"));
|
|
12
12
|
const read_with_progress_1 = require("../functions/helpers/read-with-progress");
|
|
13
13
|
const internalDownloadMedia = async (input) => {
|
|
14
|
-
var _a, _b, _c, _d;
|
|
14
|
+
var _a, _b, _c, _d, _e;
|
|
15
15
|
const expectedBucketOwner = await input.providerSpecifics.getAccountId({
|
|
16
16
|
region: input.region,
|
|
17
17
|
});
|
|
@@ -45,7 +45,8 @@ const internalDownloadMedia = async (input) => {
|
|
|
45
45
|
customCredentials,
|
|
46
46
|
logLevel: (_c = input.logLevel) !== null && _c !== void 0 ? _c : 'info',
|
|
47
47
|
forcePathStyle: (_d = input.forcePathStyle) !== null && _d !== void 0 ? _d : false,
|
|
48
|
-
requestHandler: input.requestHandler,
|
|
48
|
+
requestHandler: (_e = input.requestHandler) !== null && _e !== void 0 ? _e : undefined,
|
|
49
|
+
abortSignal: input.signal,
|
|
49
50
|
});
|
|
50
51
|
return {
|
|
51
52
|
outputPath,
|
|
@@ -58,10 +59,16 @@ exports.internalDownloadMedia = internalDownloadMedia;
|
|
|
58
59
|
* @see [Documentation](https://remotion.dev/docs/lambda/downloadmedia)
|
|
59
60
|
*/
|
|
60
61
|
const downloadMedia = (input) => {
|
|
62
|
+
var _a, _b, _c, _d, _e;
|
|
61
63
|
return (0, exports.internalDownloadMedia)({
|
|
62
64
|
...input,
|
|
63
65
|
providerSpecifics: lambda_client_1.LambdaClientInternals.awsImplementation,
|
|
64
66
|
forcePathStyle: false,
|
|
67
|
+
onProgress: (_a = input.onProgress) !== null && _a !== void 0 ? _a : (() => undefined),
|
|
68
|
+
logLevel: (_b = input.logLevel) !== null && _b !== void 0 ? _b : 'info',
|
|
69
|
+
customCredentials: (_c = input.customCredentials) !== null && _c !== void 0 ? _c : null,
|
|
70
|
+
signal: (_d = input.signal) !== null && _d !== void 0 ? _d : new AbortController().signal,
|
|
71
|
+
requestHandler: (_e = input.requestHandler) !== null && _e !== void 0 ? _e : undefined,
|
|
65
72
|
});
|
|
66
73
|
};
|
|
67
74
|
exports.downloadMedia = downloadMedia;
|
|
@@ -354,6 +354,9 @@ const renderCommand = async ({ args, remotionRoot, logLevel, providerSpecifics,
|
|
|
354
354
|
},
|
|
355
355
|
providerSpecifics: providerSpecifics,
|
|
356
356
|
forcePathStyle: args_1.parsedLambdaCli['force-path-style'],
|
|
357
|
+
signal: new AbortController().signal,
|
|
358
|
+
customCredentials: null,
|
|
359
|
+
requestHandler: null,
|
|
357
360
|
});
|
|
358
361
|
downloadOrNothing = download;
|
|
359
362
|
progressBar.update((0, progress_1.makeProgressString)({
|
|
@@ -216,6 +216,10 @@ const stillCommand = async ({ args, remotionRoot, logLevel, providerSpecifics, }
|
|
|
216
216
|
logLevel,
|
|
217
217
|
providerSpecifics: providerSpecifics,
|
|
218
218
|
forcePathStyle: args_1.parsedLambdaCli['force-path-style'],
|
|
219
|
+
signal: new AbortController().signal,
|
|
220
|
+
customCredentials: null,
|
|
221
|
+
onProgress: () => undefined,
|
|
222
|
+
requestHandler: null,
|
|
219
223
|
});
|
|
220
224
|
const relativePath = path_1.default.relative(process.cwd(), outputPath);
|
|
221
225
|
log_1.Log.info({ indent: false, logLevel }, chalk.blue('↓'.padEnd(cli_1.CliInternals.LABEL_WIDTH)), chalk.blue(cli_1.CliInternals.makeHyperlink({
|
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
|
-
formatLogs: (logLevel:
|
|
3
|
-
tag?: string;
|
|
4
|
-
}, args:
|
|
2
|
+
formatLogs: (logLevel: "error" | "info" | "trace" | "verbose" | "warn", options: import("@remotion/renderer").LogOptions & {
|
|
3
|
+
tag?: string | undefined;
|
|
4
|
+
}, args: [message?: any, ...optionalParams: any[]]) => string[];
|
|
5
5
|
trace: (options: import("@remotion/renderer").LogOptions & {
|
|
6
|
-
tag?: string;
|
|
7
|
-
}, message?: any, ...optionalParams: any[]) =>
|
|
6
|
+
tag?: string | undefined;
|
|
7
|
+
}, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
8
8
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
9
|
-
tag?: string;
|
|
10
|
-
}, message?: any, ...optionalParams: any[]) =>
|
|
11
|
-
info: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) =>
|
|
12
|
-
warn: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) =>
|
|
9
|
+
tag?: string | undefined;
|
|
10
|
+
}, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
11
|
+
info: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
12
|
+
warn: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
13
13
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
14
|
-
tag?: string;
|
|
15
|
-
}, message?: any, ...optionalParams: any[]) =>
|
|
14
|
+
tag?: string | undefined;
|
|
15
|
+
}, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
16
16
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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.
|
|
8607
|
+
version: "4.0.407",
|
|
8608
8608
|
description: "Render Remotion videos on AWS Lambda",
|
|
8609
8609
|
main: "dist/index.js",
|
|
8610
8610
|
sideEffects: false,
|
|
@@ -10306,7 +10306,8 @@ var lambdaDownloadFileWithProgress = async ({
|
|
|
10306
10306
|
customCredentials,
|
|
10307
10307
|
logLevel,
|
|
10308
10308
|
forcePathStyle,
|
|
10309
|
-
requestHandler
|
|
10309
|
+
requestHandler,
|
|
10310
|
+
abortSignal
|
|
10310
10311
|
}) => {
|
|
10311
10312
|
const client = LambdaClientInternals7.getS3Client({
|
|
10312
10313
|
region,
|
|
@@ -10331,7 +10332,8 @@ var lambdaDownloadFileWithProgress = async ({
|
|
|
10331
10332
|
},
|
|
10332
10333
|
to: () => outputPath,
|
|
10333
10334
|
indent: false,
|
|
10334
|
-
logLevel
|
|
10335
|
+
logLevel,
|
|
10336
|
+
abortSignal
|
|
10335
10337
|
});
|
|
10336
10338
|
return { sizeInBytes, to };
|
|
10337
10339
|
};
|
|
@@ -10373,7 +10375,8 @@ var internalDownloadMedia = async (input) => {
|
|
|
10373
10375
|
customCredentials,
|
|
10374
10376
|
logLevel: input.logLevel ?? "info",
|
|
10375
10377
|
forcePathStyle: input.forcePathStyle ?? false,
|
|
10376
|
-
requestHandler: input.requestHandler
|
|
10378
|
+
requestHandler: input.requestHandler ?? undefined,
|
|
10379
|
+
abortSignal: input.signal
|
|
10377
10380
|
});
|
|
10378
10381
|
return {
|
|
10379
10382
|
outputPath,
|
|
@@ -10384,7 +10387,14 @@ var downloadMedia = (input) => {
|
|
|
10384
10387
|
return internalDownloadMedia({
|
|
10385
10388
|
...input,
|
|
10386
10389
|
providerSpecifics: LambdaClientInternals8.awsImplementation,
|
|
10387
|
-
forcePathStyle: false
|
|
10390
|
+
forcePathStyle: false,
|
|
10391
|
+
onProgress: input.onProgress ?? (() => {
|
|
10392
|
+
return;
|
|
10393
|
+
}),
|
|
10394
|
+
logLevel: input.logLevel ?? "info",
|
|
10395
|
+
customCredentials: input.customCredentials ?? null,
|
|
10396
|
+
signal: input.signal ?? new AbortController().signal,
|
|
10397
|
+
requestHandler: input.requestHandler ?? undefined
|
|
10388
10398
|
});
|
|
10389
10399
|
};
|
|
10390
10400
|
|
|
@@ -11950,7 +11960,10 @@ var renderCommand = async ({
|
|
|
11950
11960
|
}), false);
|
|
11951
11961
|
},
|
|
11952
11962
|
providerSpecifics,
|
|
11953
|
-
forcePathStyle: parsedLambdaCli["force-path-style"]
|
|
11963
|
+
forcePathStyle: parsedLambdaCli["force-path-style"],
|
|
11964
|
+
signal: new AbortController().signal,
|
|
11965
|
+
customCredentials: null,
|
|
11966
|
+
requestHandler: null
|
|
11954
11967
|
});
|
|
11955
11968
|
downloadOrNothing = download;
|
|
11956
11969
|
progressBar.update(makeProgressString({
|
|
@@ -12695,7 +12708,13 @@ var stillCommand = async ({
|
|
|
12695
12708
|
renderId: res.renderId,
|
|
12696
12709
|
logLevel,
|
|
12697
12710
|
providerSpecifics,
|
|
12698
|
-
forcePathStyle: parsedLambdaCli["force-path-style"]
|
|
12711
|
+
forcePathStyle: parsedLambdaCli["force-path-style"],
|
|
12712
|
+
signal: new AbortController().signal,
|
|
12713
|
+
customCredentials: null,
|
|
12714
|
+
onProgress: () => {
|
|
12715
|
+
return;
|
|
12716
|
+
},
|
|
12717
|
+
requestHandler: null
|
|
12699
12718
|
});
|
|
12700
12719
|
const relativePath = path8.relative(process.cwd(), outputPath);
|
|
12701
12720
|
Log.info({ indent: false, logLevel }, chalk.blue("↓".padEnd(CliInternals21.LABEL_WIDTH)), chalk.blue(CliInternals21.makeHyperlink({
|
|
@@ -6,7 +6,7 @@ export type LambdaReadFileProgress = (progress: {
|
|
|
6
6
|
downloaded: number;
|
|
7
7
|
percent: number;
|
|
8
8
|
}) => unknown;
|
|
9
|
-
export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, forcePathStyle, requestHandler, }: {
|
|
9
|
+
export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, forcePathStyle, requestHandler, abortSignal, }: {
|
|
10
10
|
bucketName: string;
|
|
11
11
|
key: string;
|
|
12
12
|
region: AwsRegion;
|
|
@@ -17,6 +17,7 @@ export declare const lambdaDownloadFileWithProgress: ({ bucketName, key, region,
|
|
|
17
17
|
logLevel: LogLevel;
|
|
18
18
|
forcePathStyle: boolean;
|
|
19
19
|
requestHandler: RequestHandler;
|
|
20
|
+
abortSignal: AbortSignal;
|
|
20
21
|
}) => Promise<{
|
|
21
22
|
sizeInBytes: number;
|
|
22
23
|
to: string;
|
|
@@ -5,7 +5,7 @@ const client_s3_1 = require("@aws-sdk/client-s3");
|
|
|
5
5
|
const s3_request_presigner_1 = require("@aws-sdk/s3-request-presigner");
|
|
6
6
|
const lambda_client_1 = require("@remotion/lambda-client");
|
|
7
7
|
const renderer_1 = require("@remotion/renderer");
|
|
8
|
-
const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, forcePathStyle, requestHandler, }) => {
|
|
8
|
+
const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expectedBucketOwner, outputPath, onProgress, customCredentials, logLevel, forcePathStyle, requestHandler, abortSignal, }) => {
|
|
9
9
|
const client = lambda_client_1.LambdaClientInternals.getS3Client({
|
|
10
10
|
region,
|
|
11
11
|
customCredentials,
|
|
@@ -31,6 +31,7 @@ const lambdaDownloadFileWithProgress = async ({ bucketName, key, region, expecte
|
|
|
31
31
|
to: () => outputPath,
|
|
32
32
|
indent: false,
|
|
33
33
|
logLevel,
|
|
34
|
+
abortSignal,
|
|
34
35
|
});
|
|
35
36
|
return { sizeInBytes, to };
|
|
36
37
|
};
|
package/dist/internals.d.ts
CHANGED
|
@@ -32,11 +32,11 @@ export declare const LambdaInternals: {
|
|
|
32
32
|
getValue: ({ commandLine }: {
|
|
33
33
|
commandLine: Record<string, unknown>;
|
|
34
34
|
}) => {
|
|
35
|
-
value:
|
|
35
|
+
value: "error" | "info" | "trace" | "verbose" | "warn";
|
|
36
36
|
source: string;
|
|
37
37
|
};
|
|
38
|
-
setConfig: (newLogLevel:
|
|
39
|
-
type:
|
|
38
|
+
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
39
|
+
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
40
40
|
};
|
|
41
41
|
readonly throwIfSiteExists: {
|
|
42
42
|
cliFlag: string;
|
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.407",
|
|
7
7
|
"description": "Render Remotion videos on AWS Lambda",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
"@aws-sdk/client-cloudwatch-logs": "3.936.0",
|
|
29
29
|
"@aws-sdk/client-service-quotas": "3.936.0",
|
|
30
30
|
"@aws-sdk/lib-storage": "3.936.0",
|
|
31
|
-
"@remotion/bundler": "4.0.
|
|
32
|
-
"@remotion/cli": "4.0.
|
|
33
|
-
"@remotion/lambda-client": "4.0.
|
|
34
|
-
"@remotion/renderer": "4.0.
|
|
35
|
-
"@remotion/serverless": "4.0.
|
|
36
|
-
"@remotion/streaming": "4.0.
|
|
31
|
+
"@remotion/bundler": "4.0.407",
|
|
32
|
+
"@remotion/cli": "4.0.407",
|
|
33
|
+
"@remotion/lambda-client": "4.0.407",
|
|
34
|
+
"@remotion/renderer": "4.0.407",
|
|
35
|
+
"@remotion/serverless": "4.0.407",
|
|
36
|
+
"@remotion/streaming": "4.0.407",
|
|
37
37
|
"@smithy/abort-controller": "4.0.1",
|
|
38
|
-
"remotion": "4.0.
|
|
38
|
+
"remotion": "4.0.407",
|
|
39
39
|
"zod": "3.22.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@remotion/bundler": "4.0.
|
|
42
|
+
"@remotion/bundler": "4.0.407",
|
|
43
43
|
"@types/express": "^5.0.0",
|
|
44
44
|
"express": "4.21.0",
|
|
45
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.407",
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.407",
|
|
47
47
|
"mime-types": "2.1.34",
|
|
48
48
|
"@types/mime-types": "2.1.1",
|
|
49
49
|
"@types/minimist": "1.2.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/node": "20.12.14"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@remotion/bundler": "4.0.
|
|
57
|
+
"@remotion/bundler": "4.0.407"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|