@remotion/lambda 4.0.102 → 4.0.103
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/LICENSE.md +1 -1
- package/dist/admin/bundle-lambda.js +34 -4
- package/dist/api/deploy-site.d.ts +3 -2
- package/dist/api/deploy-site.js +2 -1
- package/dist/cli/commands/sites/create.js +1 -0
- package/dist/functions/helpers/get-chromium-executable-path.js +0 -1
- package/dist/shared/bundle-site.d.ts +1 -0
- package/package.json +8 -8
- package/remotionlambda-arm64.zip +0 -0
package/LICENSE.md
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
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
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
const bundler_1 = require("@remotion/bundler");
|
|
7
30
|
const compositor_linux_arm64_gnu_1 = require("@remotion/compositor-linux-arm64-gnu");
|
|
8
|
-
const node_fs_1 =
|
|
31
|
+
const node_fs_1 = __importStar(require("node:fs"));
|
|
9
32
|
const node_path_1 = __importDefault(require("node:path"));
|
|
10
33
|
const quit_1 = require("../cli/helpers/quit");
|
|
11
34
|
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
@@ -28,9 +51,16 @@ const bundleLambda = async () => {
|
|
|
28
51
|
treeShaking: true,
|
|
29
52
|
external: [],
|
|
30
53
|
});
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
}
|
|
34
64
|
node_fs_1.default.cpSync(node_path_1.default.join(__dirname, '..', '..', '..', 'renderer', 'node_modules', 'source-map', 'lib', 'mappings.wasm'), `${outdir}/mappings.wasm`);
|
|
35
65
|
await zl.archiveFolder(outdir, function_zip_path_1.FUNCTION_ZIP_ARM64);
|
|
36
66
|
node_fs_1.default.rmSync(outdir, { recursive: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WebpackOverrideFn } from '@remotion/bundler';
|
|
1
|
+
import type { GitSource, WebpackOverrideFn } from '@remotion/bundler';
|
|
2
2
|
import type { AwsRegion } from '../pricing/aws-regions';
|
|
3
3
|
import type { UploadDirProgress } from './upload-dir';
|
|
4
4
|
export type DeploySiteInput = {
|
|
@@ -17,6 +17,7 @@ export type DeploySiteInput = {
|
|
|
17
17
|
bypassBucketNameValidation?: boolean;
|
|
18
18
|
};
|
|
19
19
|
privacy?: 'public' | 'no-acl';
|
|
20
|
+
gitSource?: GitSource | null;
|
|
20
21
|
};
|
|
21
22
|
export type DeploySiteOutput = Promise<{
|
|
22
23
|
serveUrl: string;
|
|
@@ -36,4 +37,4 @@ export type DeploySiteOutput = Promise<{
|
|
|
36
37
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
37
38
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
38
39
|
*/
|
|
39
|
-
export declare const deploySite: ({ bucketName, entryPoint, siteName, options, region, privacy: passedPrivacy, }: DeploySiteInput) => DeploySiteOutput;
|
|
40
|
+
export declare const deploySite: ({ bucketName, entryPoint, siteName, options, region, privacy: passedPrivacy, gitSource, }: DeploySiteInput) => DeploySiteOutput;
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -19,7 +19,7 @@ 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 deploySiteRaw = async ({ bucketName, entryPoint, siteName, options, region, privacy: passedPrivacy, }) => {
|
|
22
|
+
const deploySiteRaw = async ({ bucketName, entryPoint, siteName, options, region, privacy: passedPrivacy, gitSource, }) => {
|
|
23
23
|
var _a, _b, _c, _d;
|
|
24
24
|
(0, validate_aws_region_1.validateAwsRegion)(region);
|
|
25
25
|
(0, validate_bucketname_1.validateBucketName)(bucketName, {
|
|
@@ -56,6 +56,7 @@ const deploySiteRaw = async ({ bucketName, entryPoint, siteName, options, region
|
|
|
56
56
|
ignoreRegisterRootWarning: options === null || options === void 0 ? void 0 : options.ignoreRegisterRootWarning,
|
|
57
57
|
onProgress: (_c = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _c !== void 0 ? _c : (() => undefined),
|
|
58
58
|
entryPoint,
|
|
59
|
+
gitSource,
|
|
59
60
|
}),
|
|
60
61
|
]);
|
|
61
62
|
const { toDelete, toUpload, existingCount } = await (0, get_s3_operations_1.getS3DiffOperations)({
|
|
@@ -102,6 +102,7 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
102
102
|
},
|
|
103
103
|
region: (0, get_aws_region_1.getAwsRegion)(),
|
|
104
104
|
privacy: args_1.parsedLambdaCli.privacy,
|
|
105
|
+
gitSource: null,
|
|
105
106
|
});
|
|
106
107
|
const uploadDuration = Date.now() - uploadStart;
|
|
107
108
|
multiProgress.deployProgress = {
|
|
@@ -7,7 +7,6 @@ if (/^AWS_Lambda_nodejs(?:18)[.]x$/.test((_a = process.env.AWS_EXECUTION_ENV) !=
|
|
|
7
7
|
process.env.FONTCONFIG_PATH = '/opt';
|
|
8
8
|
process.env.FONTCONFIG_FILE = '/opt/fonts.conf';
|
|
9
9
|
process.env.READ_ONLY_FS = '1';
|
|
10
|
-
process.env.COMPOSITOR_DIR = './';
|
|
11
10
|
process.env.NO_COLOR = '1';
|
|
12
11
|
}
|
|
13
12
|
const executablePath = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.103",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,10 +26,10 @@
|
|
|
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/
|
|
31
|
-
"remotion": "4.0.
|
|
32
|
-
"
|
|
29
|
+
"@remotion/bundler": "4.0.103",
|
|
30
|
+
"@remotion/cli": "4.0.103",
|
|
31
|
+
"@remotion/renderer": "4.0.103",
|
|
32
|
+
"remotion": "4.0.103"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@jonny/eslint-config": "3.0.276",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"ts-node": "^10.8.0",
|
|
44
44
|
"vitest": "0.31.1",
|
|
45
45
|
"zip-lib": "^0.7.2",
|
|
46
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
47
|
-
"@remotion/bundler": "4.0.
|
|
46
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.103",
|
|
47
|
+
"@remotion/bundler": "4.0.103"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@remotion/bundler": "4.0.
|
|
50
|
+
"@remotion/bundler": "4.0.103"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|