@remotion/lambda 4.0.140 → 4.0.142
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 +77 -9
- package/dist/api/deploy-site.js +29 -21
- package/dist/api/render-still-on-lambda.d.ts +1 -0
- package/dist/api/render-still-on-lambda.js +2 -1
- package/dist/cli/commands/sites/create.js +13 -6
- package/dist/cli/log.d.ts +4 -4
- package/dist/functions/helpers/find-output-file-in-bucket.js +1 -1
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts +4 -1
- package/dist/functions/helpers/get-output-url-from-metadata.js +5 -2
- package/dist/functions/helpers/merge-chunks.js +1 -1
- package/dist/functions/still.d.ts +1 -0
- package/dist/functions/still.js +3 -1
- package/dist/internals.d.ts +59 -0
- package/dist/internals.js +2 -0
- package/package.json +9 -8
- package/remotionlambda-arm64.zip +0 -0
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { GitSource, WebpackOverrideFn } from '@remotion/bundler';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToOptions } from '@remotion/renderer';
|
|
3
|
+
import type { BrowserSafeApis } from '@remotion/renderer/client';
|
|
3
4
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
4
5
|
import type { UploadDirProgress } from './upload-dir';
|
|
5
|
-
|
|
6
|
+
type MandatoryParameters = {
|
|
6
7
|
entryPoint: string;
|
|
7
8
|
bucketName: string;
|
|
8
9
|
region: AwsRegion;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
};
|
|
11
|
+
type OptionalParameters = {
|
|
12
|
+
siteName: string;
|
|
13
|
+
options: {
|
|
11
14
|
onBundleProgress?: (progress: number) => void;
|
|
12
15
|
onUploadProgress?: (upload: UploadDirProgress) => void;
|
|
13
16
|
webpackOverride?: WebpackOverrideFn;
|
|
@@ -17,10 +20,11 @@ export type DeploySiteInput = {
|
|
|
17
20
|
rootDir?: string;
|
|
18
21
|
bypassBucketNameValidation?: boolean;
|
|
19
22
|
};
|
|
20
|
-
privacy
|
|
21
|
-
gitSource
|
|
22
|
-
|
|
23
|
-
}
|
|
23
|
+
privacy: 'public' | 'no-acl';
|
|
24
|
+
gitSource: GitSource | null;
|
|
25
|
+
indent: boolean;
|
|
26
|
+
} & ToOptions<typeof BrowserSafeApis.optionsMap.deploySiteLambda>;
|
|
27
|
+
export type DeploySiteInput = MandatoryParameters & Partial<OptionalParameters>;
|
|
24
28
|
export type DeploySiteOutput = Promise<{
|
|
25
29
|
serveUrl: string;
|
|
26
30
|
siteName: string;
|
|
@@ -30,6 +34,61 @@ export type DeploySiteOutput = Promise<{
|
|
|
30
34
|
untouchedFiles: number;
|
|
31
35
|
};
|
|
32
36
|
}>;
|
|
37
|
+
export declare const internalDeploySite: (args_0: MandatoryParameters & {
|
|
38
|
+
siteName: string;
|
|
39
|
+
options: {
|
|
40
|
+
onBundleProgress?: ((progress: number) => void) | undefined;
|
|
41
|
+
onUploadProgress?: ((upload: UploadDirProgress) => void) | undefined;
|
|
42
|
+
webpackOverride?: WebpackOverrideFn | undefined;
|
|
43
|
+
ignoreRegisterRootWarning?: boolean | undefined;
|
|
44
|
+
enableCaching?: boolean | undefined;
|
|
45
|
+
publicDir?: string | null | undefined;
|
|
46
|
+
rootDir?: string | undefined;
|
|
47
|
+
bypassBucketNameValidation?: boolean | undefined;
|
|
48
|
+
};
|
|
49
|
+
privacy: 'public' | 'no-acl';
|
|
50
|
+
gitSource: GitSource | null;
|
|
51
|
+
indent: boolean;
|
|
52
|
+
} & ToOptions<{
|
|
53
|
+
readonly logLevel: {
|
|
54
|
+
cliFlag: "log";
|
|
55
|
+
name: string;
|
|
56
|
+
ssrName: string;
|
|
57
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
docLink: string;
|
|
59
|
+
getValue: ({ commandLine }: {
|
|
60
|
+
commandLine: Record<string, unknown>;
|
|
61
|
+
}) => {
|
|
62
|
+
value: "verbose" | "info" | "warn" | "error";
|
|
63
|
+
source: string;
|
|
64
|
+
};
|
|
65
|
+
setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
66
|
+
type: "verbose" | "info" | "warn" | "error";
|
|
67
|
+
};
|
|
68
|
+
readonly throwIfSiteExists: {
|
|
69
|
+
cliFlag: string;
|
|
70
|
+
description: () => string;
|
|
71
|
+
docLink: string;
|
|
72
|
+
getValue: ({ commandLine }: {
|
|
73
|
+
commandLine: Record<string, unknown>;
|
|
74
|
+
}) => {
|
|
75
|
+
source: string;
|
|
76
|
+
value: boolean;
|
|
77
|
+
};
|
|
78
|
+
name: string;
|
|
79
|
+
setConfig: () => never;
|
|
80
|
+
ssrName: string;
|
|
81
|
+
type: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>) => Promise<{
|
|
84
|
+
serveUrl: string;
|
|
85
|
+
siteName: string;
|
|
86
|
+
stats: {
|
|
87
|
+
uploadedFiles: number;
|
|
88
|
+
deletedFiles: number;
|
|
89
|
+
untouchedFiles: number;
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
33
92
|
/**
|
|
34
93
|
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
35
94
|
* @see [Documentation](https://remotion.dev/docs/lambda/deploysite)
|
|
@@ -39,4 +98,13 @@ export type DeploySiteOutput = Promise<{
|
|
|
39
98
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
40
99
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
41
100
|
*/
|
|
42
|
-
export declare const deploySite: (args: DeploySiteInput) =>
|
|
101
|
+
export declare const deploySite: (args: DeploySiteInput) => Promise<{
|
|
102
|
+
serveUrl: string;
|
|
103
|
+
siteName: string;
|
|
104
|
+
stats: {
|
|
105
|
+
uploadedFiles: number;
|
|
106
|
+
deletedFiles: number;
|
|
107
|
+
untouchedFiles: number;
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
110
|
+
export {};
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.deploySite = void 0;
|
|
6
|
+
exports.deploySite = exports.internalDeploySite = void 0;
|
|
7
7
|
const pure_1 = require("@remotion/renderer/pure");
|
|
8
8
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
9
|
const io_1 = require("../functions/helpers/io");
|
|
@@ -19,15 +19,13 @@ const validate_privacy_1 = require("../shared/validate-privacy");
|
|
|
19
19
|
const validate_site_name_1 = require("../shared/validate-site-name");
|
|
20
20
|
const bucket_exists_1 = require("./bucket-exists");
|
|
21
21
|
const upload_dir_1 = require("./upload-dir");
|
|
22
|
-
const
|
|
22
|
+
const mandatoryDeploySite = async ({ bucketName, entryPoint, siteName, options, region, privacy, gitSource, throwIfSiteExists, }) => {
|
|
23
23
|
var _a, _b, _c, _d;
|
|
24
24
|
(0, validate_aws_region_1.validateAwsRegion)(region);
|
|
25
25
|
(0, validate_bucketname_1.validateBucketName)(bucketName, {
|
|
26
26
|
mustStartWithRemotion: !(options === null || options === void 0 ? void 0 : options.bypassBucketNameValidation),
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
(0, validate_site_name_1.validateSiteName)(siteId);
|
|
30
|
-
const privacy = passedPrivacy !== null && passedPrivacy !== void 0 ? passedPrivacy : 'public';
|
|
28
|
+
(0, validate_site_name_1.validateSiteName)(siteName);
|
|
31
29
|
(0, validate_privacy_1.validatePrivacy)(privacy, false);
|
|
32
30
|
const accountId = await (0, get_account_id_1.getAccountId)({ region });
|
|
33
31
|
const bucketExists = await (0, bucket_exists_1.bucketExistsInRegion)({
|
|
@@ -38,7 +36,7 @@ const internalDeploySite = async ({ bucketName, entryPoint, siteName, options, r
|
|
|
38
36
|
if (!bucketExists) {
|
|
39
37
|
throw new Error(`No bucket with the name ${bucketName} exists`);
|
|
40
38
|
}
|
|
41
|
-
const subFolder = (0, constants_1.getSitesKey)(
|
|
39
|
+
const subFolder = (0, constants_1.getSitesKey)(siteName);
|
|
42
40
|
const [files, bundled] = await Promise.all([
|
|
43
41
|
(0, io_1.lambdaLs)({
|
|
44
42
|
bucketName,
|
|
@@ -59,6 +57,13 @@ const internalDeploySite = async ({ bucketName, entryPoint, siteName, options, r
|
|
|
59
57
|
gitSource,
|
|
60
58
|
}),
|
|
61
59
|
]);
|
|
60
|
+
if (throwIfSiteExists && files.length > 0) {
|
|
61
|
+
throw new Error('`throwIfSiteExists` was passed as true, but there are already files in this folder: ' +
|
|
62
|
+
files
|
|
63
|
+
.slice(0, 5)
|
|
64
|
+
.map((f) => f.Key)
|
|
65
|
+
.join(', '));
|
|
66
|
+
}
|
|
62
67
|
const { toDelete, toUpload, existingCount } = await (0, get_s3_operations_1.getS3DiffOperations)({
|
|
63
68
|
objects: files,
|
|
64
69
|
bundle: bundled,
|
|
@@ -90,7 +95,7 @@ const internalDeploySite = async ({ bucketName, entryPoint, siteName, options, r
|
|
|
90
95
|
}
|
|
91
96
|
return {
|
|
92
97
|
serveUrl: (0, make_s3_url_1.makeS3ServeUrl)({ bucketName, subFolder, region }),
|
|
93
|
-
siteName
|
|
98
|
+
siteName,
|
|
94
99
|
stats: {
|
|
95
100
|
uploadedFiles: toUpload.length,
|
|
96
101
|
deletedFiles: toDelete.length,
|
|
@@ -98,19 +103,7 @@ const internalDeploySite = async ({ bucketName, entryPoint, siteName, options, r
|
|
|
98
103
|
},
|
|
99
104
|
};
|
|
100
105
|
};
|
|
101
|
-
|
|
102
|
-
return internalDeploySite({
|
|
103
|
-
bucketName: args.bucketName,
|
|
104
|
-
entryPoint: args.entryPoint,
|
|
105
|
-
region: args.region,
|
|
106
|
-
gitSource: args.gitSource,
|
|
107
|
-
options: args.options,
|
|
108
|
-
privacy: args.privacy,
|
|
109
|
-
siteName: args.siteName,
|
|
110
|
-
indent: false,
|
|
111
|
-
logLevel: 'info',
|
|
112
|
-
});
|
|
113
|
-
};
|
|
106
|
+
exports.internalDeploySite = pure_1.NoReactAPIs.wrapWithErrorHandling(mandatoryDeploySite);
|
|
114
107
|
/**
|
|
115
108
|
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
116
109
|
* @see [Documentation](https://remotion.dev/docs/lambda/deploysite)
|
|
@@ -120,4 +113,19 @@ const deploySiteRaw = (args) => {
|
|
|
120
113
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
121
114
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
122
115
|
*/
|
|
123
|
-
|
|
116
|
+
const deploySite = (args) => {
|
|
117
|
+
var _a, _b, _c, _d, _e;
|
|
118
|
+
return (0, exports.internalDeploySite)({
|
|
119
|
+
bucketName: args.bucketName,
|
|
120
|
+
entryPoint: args.entryPoint,
|
|
121
|
+
region: args.region,
|
|
122
|
+
gitSource: (_a = args.gitSource) !== null && _a !== void 0 ? _a : null,
|
|
123
|
+
options: (_b = args.options) !== null && _b !== void 0 ? _b : {},
|
|
124
|
+
privacy: (_c = args.privacy) !== null && _c !== void 0 ? _c : 'public',
|
|
125
|
+
siteName: (_d = args.siteName) !== null && _d !== void 0 ? _d : (0, random_hash_1.randomHash)(),
|
|
126
|
+
indent: false,
|
|
127
|
+
logLevel: 'info',
|
|
128
|
+
throwIfSiteExists: (_e = args.throwIfSiteExists) !== null && _e !== void 0 ? _e : false,
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
exports.deploySite = deploySite;
|
|
@@ -39,6 +39,7 @@ const internalRenderStillOnLambda = async (input) => {
|
|
|
39
39
|
return {
|
|
40
40
|
estimatedPrice: res.estimatedPrice,
|
|
41
41
|
url: res.output,
|
|
42
|
+
outKey: res.outKey,
|
|
42
43
|
sizeInBytes: res.size,
|
|
43
44
|
bucketName: res.bucketName,
|
|
44
45
|
renderId: res.renderId,
|
|
@@ -102,7 +103,7 @@ const renderStillOnLambda = (input) => {
|
|
|
102
103
|
logLevel: input.dumpBrowserLogs ? 'verbose' : (_o = input.logLevel) !== null && _o !== void 0 ? _o : 'info',
|
|
103
104
|
offthreadVideoCacheSizeInBytes: (_p = input.offthreadVideoCacheSizeInBytes) !== null && _p !== void 0 ? _p : null,
|
|
104
105
|
scale: (_q = input.scale) !== null && _q !== void 0 ? _q : 1,
|
|
105
|
-
timeoutInMilliseconds: (_r = input.timeoutInMilliseconds) !== null && _r !== void 0 ? _r :
|
|
106
|
+
timeoutInMilliseconds: (_r = input.timeoutInMilliseconds) !== null && _r !== void 0 ? _r : 30000,
|
|
106
107
|
dumpBrowserLogs: false,
|
|
107
108
|
});
|
|
108
109
|
};
|
|
@@ -5,9 +5,10 @@ const cli_1 = require("@remotion/cli");
|
|
|
5
5
|
const config_1 = require("@remotion/cli/config");
|
|
6
6
|
const client_1 = require("@remotion/renderer/client");
|
|
7
7
|
const no_react_1 = require("remotion/no-react");
|
|
8
|
-
const deploy_site_1 = require("../../../api/deploy-site");
|
|
9
8
|
const get_or_create_bucket_1 = require("../../../api/get-or-create-bucket");
|
|
9
|
+
const internals_1 = require("../../../internals");
|
|
10
10
|
const constants_1 = require("../../../shared/constants");
|
|
11
|
+
const random_hash_1 = require("../../../shared/random-hash");
|
|
11
12
|
const validate_site_name_1 = require("../../../shared/validate-site-name");
|
|
12
13
|
const args_1 = require("../../args");
|
|
13
14
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
@@ -15,9 +16,9 @@ const progress_bar_1 = require("../../helpers/progress-bar");
|
|
|
15
16
|
const quit_1 = require("../../helpers/quit");
|
|
16
17
|
const log_1 = require("../../log");
|
|
17
18
|
exports.SITES_CREATE_SUBCOMMAND = 'create';
|
|
18
|
-
const { folderExpiryOption, publicDirOption } = client_1.BrowserSafeApis.options;
|
|
19
|
+
const { folderExpiryOption, publicDirOption, throwIfSiteExistsOption } = client_1.BrowserSafeApis.options;
|
|
19
20
|
const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
20
|
-
var _a, _b, _c;
|
|
21
|
+
var _a, _b, _c, _d;
|
|
21
22
|
const { file, reason } = cli_1.CliInternals.findEntryPoint({
|
|
22
23
|
args,
|
|
23
24
|
remotionRoot,
|
|
@@ -83,9 +84,12 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
83
84
|
const publicDir = publicDirOption.getValue({
|
|
84
85
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
85
86
|
}).value;
|
|
86
|
-
const
|
|
87
|
+
const throwIfSiteExists = throwIfSiteExistsOption.getValue({
|
|
88
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
89
|
+
}).value;
|
|
90
|
+
const { serveUrl, siteName, stats } = await internals_1.LambdaInternals.internalDeploySite({
|
|
87
91
|
entryPoint: file,
|
|
88
|
-
siteName: desiredSiteName,
|
|
92
|
+
siteName: desiredSiteName !== null && desiredSiteName !== void 0 ? desiredSiteName : (0, random_hash_1.randomHash)(),
|
|
89
93
|
bucketName,
|
|
90
94
|
options: {
|
|
91
95
|
publicDir,
|
|
@@ -114,8 +118,11 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
114
118
|
bypassBucketNameValidation: Boolean(args_1.parsedLambdaCli['force-bucket-name']),
|
|
115
119
|
},
|
|
116
120
|
region: (0, get_aws_region_1.getAwsRegion)(),
|
|
117
|
-
privacy: args_1.parsedLambdaCli.privacy,
|
|
121
|
+
privacy: (_d = args_1.parsedLambdaCli.privacy) !== null && _d !== void 0 ? _d : 'public',
|
|
118
122
|
gitSource: null,
|
|
123
|
+
indent: false,
|
|
124
|
+
logLevel,
|
|
125
|
+
throwIfSiteExists,
|
|
119
126
|
});
|
|
120
127
|
const uploadDuration = Date.now() - uploadStart;
|
|
121
128
|
multiProgress.deployProgress = {
|
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
2
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
3
3
|
tag?: string | undefined;
|
|
4
|
-
},
|
|
5
|
-
info: (options: import("@remotion/renderer").LogOptions,
|
|
6
|
-
warn: (options: import("@remotion/renderer").LogOptions,
|
|
4
|
+
}, ...args: any[]) => void;
|
|
5
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
|
|
6
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
|
|
7
7
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
8
8
|
tag?: string | undefined;
|
|
9
|
-
},
|
|
9
|
+
}, ...args: any[]) => void;
|
|
10
10
|
};
|
|
@@ -20,7 +20,7 @@ const findOutputFileInBucket = async ({ region, renderMetadata, bucketName, cust
|
|
|
20
20
|
return {
|
|
21
21
|
lastModified: (_a = head.LastModified) === null || _a === void 0 ? void 0 : _a.getTime(),
|
|
22
22
|
size: head.ContentLength,
|
|
23
|
-
url: (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(renderMetadata, bucketName, customCredentials),
|
|
23
|
+
url: (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(renderMetadata, bucketName, customCredentials).url,
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
catch (err) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { RenderMetadata } from '../../defaults';
|
|
2
2
|
import type { CustomCredentials } from '../../shared/aws-clients';
|
|
3
|
-
export declare const getOutputUrlFromMetadata: (renderMetadata: RenderMetadata, bucketName: string, customCredentials: CustomCredentials | null) =>
|
|
3
|
+
export declare const getOutputUrlFromMetadata: (renderMetadata: RenderMetadata, bucketName: string, customCredentials: CustomCredentials | null) => {
|
|
4
|
+
url: string;
|
|
5
|
+
key: string;
|
|
6
|
+
};
|
|
@@ -4,7 +4,10 @@ exports.getOutputUrlFromMetadata = void 0;
|
|
|
4
4
|
const expected_out_name_1 = require("./expected-out-name");
|
|
5
5
|
const get_current_region_1 = require("./get-current-region");
|
|
6
6
|
const getOutputUrlFromMetadata = (renderMetadata, bucketName, customCredentials) => {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const { key, renderBucketName } = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName, customCredentials);
|
|
8
|
+
return {
|
|
9
|
+
url: `https://s3.${(0, get_current_region_1.getCurrentRegionInFunction)()}.amazonaws.com/${renderBucketName}/${key}`,
|
|
10
|
+
key,
|
|
11
|
+
};
|
|
9
12
|
};
|
|
10
13
|
exports.getOutputUrlFromMetadata = getOutputUrlFromMetadata;
|
|
@@ -180,7 +180,7 @@ const mergeChunksAndFinishRender = async (options) => {
|
|
|
180
180
|
region: (0, get_current_region_1.getCurrentRegionInFunction)(),
|
|
181
181
|
serialized: options.serializedResolvedProps,
|
|
182
182
|
});
|
|
183
|
-
const outputUrl = (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(options.renderMetadata, options.bucketName, options.customCredentials);
|
|
183
|
+
const { url: outputUrl } = (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(options.renderMetadata, options.bucketName, options.customCredentials);
|
|
184
184
|
const postRenderData = (0, create_post_render_data_1.createPostRenderData)({
|
|
185
185
|
expectedBucketOwner: options.expectedBucketOwner,
|
|
186
186
|
region: (0, get_current_region_1.getCurrentRegionInFunction)(),
|
package/dist/functions/still.js
CHANGED
|
@@ -204,13 +204,15 @@ const innerStillHandler = async ({ params: lambdaParams, expectedBucketOwner, re
|
|
|
204
204
|
// overestimate the price, but will only have a miniscule effect (~0.2%)
|
|
205
205
|
diskSizeInMb: constants_1.MAX_EPHEMERAL_STORAGE_IN_MB,
|
|
206
206
|
});
|
|
207
|
+
const { key: outKey, url } = (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(renderMetadata, bucketName, customCredentials);
|
|
207
208
|
return {
|
|
208
209
|
type: 'success',
|
|
209
|
-
output:
|
|
210
|
+
output: url,
|
|
210
211
|
size,
|
|
211
212
|
bucketName,
|
|
212
213
|
estimatedPrice: (0, format_costs_info_1.formatCostsInfo)(estimatedPrice),
|
|
213
214
|
renderId,
|
|
215
|
+
outKey,
|
|
214
216
|
};
|
|
215
217
|
};
|
|
216
218
|
const stillHandler = async (options) => {
|
package/dist/internals.d.ts
CHANGED
|
@@ -27,4 +27,63 @@ export declare const LambdaInternals: {
|
|
|
27
27
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
28
28
|
deleteAfter: "1-day" | "3-days" | "7-days" | "30-days" | null;
|
|
29
29
|
}>;
|
|
30
|
+
internalDeploySite: (args_0: {
|
|
31
|
+
entryPoint: string;
|
|
32
|
+
bucketName: string;
|
|
33
|
+
region: "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-south-1" | "ap-east-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "me-south-1" | "sa-east-1";
|
|
34
|
+
} & {
|
|
35
|
+
siteName: string;
|
|
36
|
+
options: {
|
|
37
|
+
onBundleProgress?: ((progress: number) => void) | undefined;
|
|
38
|
+
onUploadProgress?: ((upload: import("./api/upload-dir").UploadDirProgress) => void) | undefined;
|
|
39
|
+
webpackOverride?: import("@remotion/bundler").WebpackOverrideFn | undefined;
|
|
40
|
+
ignoreRegisterRootWarning?: boolean | undefined;
|
|
41
|
+
enableCaching?: boolean | undefined;
|
|
42
|
+
publicDir?: string | null | undefined;
|
|
43
|
+
rootDir?: string | undefined;
|
|
44
|
+
bypassBucketNameValidation?: boolean | undefined;
|
|
45
|
+
};
|
|
46
|
+
privacy: "public" | "no-acl";
|
|
47
|
+
gitSource: import("@remotion/bundler").GitSource | null;
|
|
48
|
+
indent: boolean;
|
|
49
|
+
} & import("@remotion/renderer").ToOptions<{
|
|
50
|
+
readonly logLevel: {
|
|
51
|
+
cliFlag: "log";
|
|
52
|
+
name: string;
|
|
53
|
+
ssrName: string;
|
|
54
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
docLink: string;
|
|
56
|
+
getValue: ({ commandLine }: {
|
|
57
|
+
commandLine: Record<string, unknown>;
|
|
58
|
+
}) => {
|
|
59
|
+
value: "verbose" | "info" | "warn" | "error";
|
|
60
|
+
source: string;
|
|
61
|
+
};
|
|
62
|
+
setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
63
|
+
type: "verbose" | "info" | "warn" | "error";
|
|
64
|
+
};
|
|
65
|
+
readonly throwIfSiteExists: {
|
|
66
|
+
cliFlag: string;
|
|
67
|
+
description: () => string;
|
|
68
|
+
docLink: string;
|
|
69
|
+
getValue: ({ commandLine }: {
|
|
70
|
+
commandLine: Record<string, unknown>;
|
|
71
|
+
}) => {
|
|
72
|
+
source: string;
|
|
73
|
+
value: boolean;
|
|
74
|
+
};
|
|
75
|
+
name: string;
|
|
76
|
+
setConfig: () => never;
|
|
77
|
+
ssrName: string;
|
|
78
|
+
type: boolean;
|
|
79
|
+
};
|
|
80
|
+
}>) => Promise<{
|
|
81
|
+
serveUrl: string;
|
|
82
|
+
siteName: string;
|
|
83
|
+
stats: {
|
|
84
|
+
uploadedFiles: number;
|
|
85
|
+
deletedFiles: number;
|
|
86
|
+
untouchedFiles: number;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
30
89
|
};
|
package/dist/internals.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LambdaInternals = void 0;
|
|
4
|
+
const deploy_site_1 = require("./api/deploy-site");
|
|
4
5
|
const make_lambda_payload_1 = require("./api/make-lambda-payload");
|
|
5
6
|
const index_1 = require("./cli/index");
|
|
6
7
|
exports.LambdaInternals = {
|
|
@@ -8,4 +9,5 @@ exports.LambdaInternals = {
|
|
|
8
9
|
makeLambdaRenderMediaPayload: make_lambda_payload_1.makeLambdaRenderMediaPayload,
|
|
9
10
|
getRenderProgressPayload: make_lambda_payload_1.getRenderProgressPayload,
|
|
10
11
|
makeLambdaRenderStillPayload: make_lambda_payload_1.makeLambdaRenderStillPayload,
|
|
12
|
+
internalDeploySite: deploy_site_1.internalDeploySite,
|
|
11
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.142",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,16 +26,17 @@
|
|
|
26
26
|
"aws-policies": "^1.0.1",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"zod": "3.22.3",
|
|
29
|
-
"@remotion/bundler": "4.0.
|
|
30
|
-
"@remotion/cli": "4.0.
|
|
31
|
-
"@remotion/renderer": "4.0.
|
|
32
|
-
"remotion": "4.0.
|
|
29
|
+
"@remotion/bundler": "4.0.142",
|
|
30
|
+
"@remotion/cli": "4.0.142",
|
|
31
|
+
"@remotion/renderer": "4.0.142",
|
|
32
|
+
"remotion": "4.0.142"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@jonny/eslint-config": "3.0.281",
|
|
36
36
|
"@types/mime-types": "2.1.1",
|
|
37
37
|
"@types/minimist": "1.2.2",
|
|
38
38
|
"@types/node": "18.14.6",
|
|
39
|
+
"@types/react": "18.2.48",
|
|
39
40
|
"@types/prompt": "^1.1.0",
|
|
40
41
|
"eslint": "8.56.0",
|
|
41
42
|
"prettier": "3.2.5",
|
|
@@ -44,11 +45,11 @@
|
|
|
44
45
|
"ts-node": "10.9.2",
|
|
45
46
|
"vitest": "0.31.1",
|
|
46
47
|
"zip-lib": "^0.7.2",
|
|
47
|
-
"@remotion/bundler": "4.0.
|
|
48
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
48
|
+
"@remotion/bundler": "4.0.142",
|
|
49
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.142"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
|
-
"@remotion/bundler": "4.0.
|
|
52
|
+
"@remotion/bundler": "4.0.142"
|
|
52
53
|
},
|
|
53
54
|
"publishConfig": {
|
|
54
55
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|