@remotion/lambda 4.0.288 → 4.0.290
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/admin/make-layer-public.js +1 -1
- package/dist/cli/commands/render/progress.js +11 -2
- package/dist/esm/index.mjs +128 -123
- package/dist/shared/hosted-layers.js +120 -120
- package/package.json +12 -12
- package/remotionlambda-arm64.zip +0 -0
- package/build.ts +0 -61
- package/bundle.ts +0 -23
- package/eslint.config.mjs +0 -36
|
@@ -49,7 +49,7 @@ const makeLayerPublic = async () => {
|
|
|
49
49
|
const { Version, LayerArn } = await lambda_client_1.LambdaClientInternals.getLambdaClient(region).send(new client_lambda_1.PublishLayerVersionCommand({
|
|
50
50
|
Content: {
|
|
51
51
|
S3Bucket: getBucketName(region),
|
|
52
|
-
S3Key: `remotion-layer-${layer}-
|
|
52
|
+
S3Key: `remotion-layer-${layer}-v14-arm64.zip`,
|
|
53
53
|
},
|
|
54
54
|
LayerName: layerName,
|
|
55
55
|
LicenseInfo: layer === 'chromium'
|
|
@@ -146,18 +146,20 @@ const makeTopRow = (overall) => {
|
|
|
146
146
|
.join(' • ');
|
|
147
147
|
return cli_1.CliInternals.chalk.gray(str);
|
|
148
148
|
};
|
|
149
|
+
const ARTIFACTS_SHOWN = 5;
|
|
149
150
|
const makeArtifactProgress = (artifactProgress) => {
|
|
150
151
|
if (artifactProgress.length === 0) {
|
|
151
152
|
return null;
|
|
152
153
|
}
|
|
153
|
-
|
|
154
|
+
const artifacts = artifactProgress
|
|
155
|
+
.slice(0, ARTIFACTS_SHOWN)
|
|
154
156
|
.map((artifact) => {
|
|
155
157
|
return [
|
|
156
158
|
// TODO: Whitelabel S3
|
|
157
159
|
cli_1.CliInternals.chalk.blue(`+ S3`.padEnd(cli_1.CliInternals.LABEL_WIDTH)),
|
|
158
160
|
cli_1.CliInternals.chalk.blue(cli_1.CliInternals.makeHyperlink({
|
|
159
161
|
url: artifact.s3Url,
|
|
160
|
-
fallback: artifact.
|
|
162
|
+
fallback: artifact.s3Key,
|
|
161
163
|
text: artifact.s3Key,
|
|
162
164
|
})),
|
|
163
165
|
cli_1.CliInternals.chalk.gray(`${cli_1.CliInternals.formatBytes(artifact.sizeInBytes)}`),
|
|
@@ -165,6 +167,13 @@ const makeArtifactProgress = (artifactProgress) => {
|
|
|
165
167
|
})
|
|
166
168
|
.filter(serverless_1.truthy)
|
|
167
169
|
.join('\n');
|
|
170
|
+
const moreSizeCombined = artifactProgress
|
|
171
|
+
.slice(ARTIFACTS_SHOWN)
|
|
172
|
+
.reduce((acc, artifact) => acc + artifact.sizeInBytes, 0);
|
|
173
|
+
const more = artifactProgress.length > ARTIFACTS_SHOWN
|
|
174
|
+
? cli_1.CliInternals.chalk.gray(`${' '.repeat(cli_1.CliInternals.LABEL_WIDTH)} ${artifactProgress.length - ARTIFACTS_SHOWN} more artifact${artifactProgress.length - ARTIFACTS_SHOWN === 1 ? '' : 's'} ${cli_1.CliInternals.formatBytes(moreSizeCombined)}`)
|
|
175
|
+
: null;
|
|
176
|
+
return [artifacts, more].filter(serverless_1.truthy).join('\n');
|
|
168
177
|
};
|
|
169
178
|
exports.makeArtifactProgress = makeArtifactProgress;
|
|
170
179
|
const makeProgressString = ({ downloadInfo, overall, }) => {
|