@remotion/lambda 4.0.0-fastlambda.8 → 4.0.0-lambda.1

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.
Files changed (47) hide show
  1. package/dist/admin/make-layer-public.js +4 -4
  2. package/dist/api/clean-items.js +2 -5
  3. package/dist/api/create-function.d.ts +2 -1
  4. package/dist/api/create-function.js +3 -2
  5. package/dist/api/deploy-function.d.ts +1 -0
  6. package/dist/api/deploy-function.js +3 -0
  7. package/dist/api/get-aws-client.js +5 -1
  8. package/dist/api/upload-dir.js +4 -3
  9. package/dist/cli/args.d.ts +1 -0
  10. package/dist/cli/commands/functions/deploy.js +6 -2
  11. package/dist/cli/commands/render/render.js +8 -0
  12. package/dist/cli/index.js +10 -0
  13. package/dist/defaults.js +5 -1
  14. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +1 -4
  15. package/dist/functions/chunk-optimization/optimize-profile.d.ts +2 -8
  16. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +1 -4
  17. package/dist/functions/helpers/concat-videos.d.ts +2 -1
  18. package/dist/functions/helpers/concat-videos.js +7 -2
  19. package/dist/functions/helpers/create-post-render-data.d.ts +1 -1
  20. package/dist/functions/helpers/create-post-render-data.js +5 -5
  21. package/dist/functions/helpers/enhanced-error-info.d.ts +24 -0
  22. package/dist/functions/helpers/enhanced-error-info.js +2 -0
  23. package/dist/functions/helpers/get-browser-instance.js +3 -1
  24. package/dist/functions/helpers/get-files-to-delete.js +2 -2
  25. package/dist/functions/helpers/get-progress.js +14 -11
  26. package/dist/functions/helpers/io.js +5 -0
  27. package/dist/functions/helpers/validate-composition.d.ts +8 -3
  28. package/dist/functions/helpers/validate-composition.js +6 -1
  29. package/dist/functions/launch.js +6 -0
  30. package/dist/functions/renderer.js +3 -5
  31. package/dist/functions/still.js +6 -0
  32. package/dist/shared/constants.d.ts +4 -1
  33. package/dist/shared/constants.js +1 -1
  34. package/dist/shared/get-most-expensive-chunks.d.ts +8 -0
  35. package/dist/shared/get-most-expensive-chunks.js +25 -0
  36. package/dist/shared/hosted-layers.js +80 -80
  37. package/dist/shared/make-s3-key.d.ts +1 -0
  38. package/dist/shared/make-s3-key.js +11 -0
  39. package/dist/shared/p-limit.d.ts +1 -0
  40. package/dist/shared/p-limit.js +57 -0
  41. package/dist/shared/random-hash.d.ts +2 -2
  42. package/dist/shared/random-hash.js +1 -1
  43. package/dist/shared/stream-to-string.d.ts +1 -0
  44. package/dist/shared/validate-custom-role-arn.d.ts +1 -0
  45. package/dist/shared/validate-custom-role-arn.js +11 -0
  46. package/package.json +10 -12
  47. package/remotionlambda.zip +0 -0
@@ -61,6 +61,11 @@ const innerLaunchHandler = async (params, options) => {
61
61
  browserInstance,
62
62
  inputProps: params.inputProps,
63
63
  envVariables: params.envVariables,
64
+ ffmpegExecutable: null,
65
+ ffprobeExecutable: null,
66
+ timeoutInMilliseconds: params.timeoutInMilliseconds,
67
+ chromiumOptions: params.chromiumOptions,
68
+ port: null,
64
69
  });
65
70
  remotion_1.Internals.validateDurationInFrames(comp.durationInFrames, 'passed to <Component />');
66
71
  remotion_1.Internals.validateFps(comp.fps, 'passed to <Component />');
@@ -220,6 +225,7 @@ const innerLaunchHandler = async (params, options) => {
220
225
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
221
226
  codec: params.codec,
222
227
  expectedBucketOwner: options.expectedBucketOwner,
228
+ fps: comp.fps,
223
229
  });
224
230
  if (!encodingStop) {
225
231
  encodingStop = Date.now();
@@ -101,15 +101,13 @@ const renderHandler = async (params, options, logs) => {
101
101
  proResProfile: params.proResProfile,
102
102
  onDownload: (src) => {
103
103
  console.log('Downloading', src);
104
- return ({ percent }) => {
105
- if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(params.logLevel, 'verbose')) {
106
- console.log(`Download progress of ${src}: ${percent}`);
107
- }
108
- };
104
+ return () => undefined;
109
105
  },
110
106
  overwrite: false,
111
107
  chromiumOptions: params.chromiumOptions,
112
108
  scale: params.scale,
109
+ timeoutInMilliseconds: params.timeoutInMilliseconds,
110
+ port: null,
113
111
  });
114
112
  const endRendered = Date.now();
115
113
  console.log('Adding silent audio, chunk', params.chunk);
@@ -48,6 +48,11 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
48
48
  composition: lambdaParams.composition,
49
49
  inputProps: lambdaParams.inputProps,
50
50
  envVariables: lambdaParams.envVariables,
51
+ ffmpegExecutable: null,
52
+ ffprobeExecutable: null,
53
+ chromiumOptions: lambdaParams.chromiumOptions,
54
+ timeoutInMilliseconds: lambdaParams.timeoutInMilliseconds,
55
+ port: null,
51
56
  });
52
57
  const renderMetadata = {
53
58
  startedDate: Date.now(),
@@ -91,6 +96,7 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
91
96
  quality: lambdaParams.quality,
92
97
  chromiumOptions: lambdaParams.chromiumOptions,
93
98
  scale: lambdaParams.scale,
99
+ timeoutInMilliseconds: lambdaParams.timeoutInMilliseconds,
94
100
  });
95
101
  const { key: outName, renderBucketName } = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName);
96
102
  const { size } = await fs_1.default.promises.stat(outputPath);
@@ -3,6 +3,7 @@ import { Codec, FrameRange, ImageFormat, LogLevel, PixelFormat, ProResProfile, V
3
3
  import { ChunkRetry } from '../functions/helpers/get-retry-stats';
4
4
  import { EnhancedErrorInfo } from '../functions/helpers/write-lambda-error';
5
5
  import { AwsRegion } from '../pricing/aws-regions';
6
+ import { ExpensiveChunk } from './get-most-expensive-chunks';
6
7
  import { LambdaArchitecture } from './validate-architecture';
7
8
  export declare const MIN_MEMORY = 512;
8
9
  export declare const MAX_MEMORY = 10240;
@@ -210,7 +211,7 @@ export declare type RenderMetadata = {
210
211
  renderId: string;
211
212
  outName: OutNameInput | undefined;
212
213
  };
213
- export declare type LambdaVersions = '2022-05-18' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
214
+ export declare type LambdaVersions = '2022-06-22' | '2022-06-21' | '2022-06-14' | '2022-06-08' | '2022-06-07' | '2022-06-02' | '2022-05-31' | '2022-05-28' | '2022-05-27' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
214
215
  export declare const CURRENT_VERSION: LambdaVersions;
215
216
  export declare type PostRenderData = {
216
217
  cost: {
@@ -233,6 +234,7 @@ export declare type PostRenderData = {
233
234
  timeToRenderChunks: number;
234
235
  timeToInvokeLambdas: number;
235
236
  retriesInfo: ChunkRetry[];
237
+ mostExpensiveFrameRanges: ExpensiveChunk[] | undefined;
236
238
  };
237
239
  export declare type CostsInfo = {
238
240
  accruedSoFar: number;
@@ -267,6 +269,7 @@ export declare type RenderProgress = {
267
269
  timeToInvokeLambdas: number | null;
268
270
  overallProgress: number;
269
271
  retriesInfo: ChunkRetry[];
272
+ mostExpensiveFrameRanges: ExpensiveChunk[] | null;
270
273
  };
271
274
  export declare type Privacy = 'public' | 'private';
272
275
  export declare const LAMBDA_CONCURRENCY_LIMIT_QUOTA = "L-B99A9384";
@@ -84,6 +84,6 @@ var LambdaRoutines;
84
84
  LambdaRoutines["renderer"] = "renderer";
85
85
  LambdaRoutines["still"] = "still";
86
86
  })(LambdaRoutines = exports.LambdaRoutines || (exports.LambdaRoutines = {}));
87
- exports.CURRENT_VERSION = '2022-05-18';
87
+ exports.CURRENT_VERSION = '2022-06-22';
88
88
  exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = 'L-B99A9384';
89
89
  exports.LAMBDA_BURST_LIMIT_QUOTA = 'L-548AE339';
@@ -0,0 +1,8 @@
1
+ import { ParsedTiming } from './parse-lambda-timings-key';
2
+ export declare const OVERHEAD_TIME_PER_LAMBDA = 100;
3
+ export declare type ExpensiveChunk = {
4
+ chunk: number;
5
+ frameRange: [number, number];
6
+ timeInMilliseconds: number;
7
+ };
8
+ export declare const getMostExpensiveChunks: (parsedTimings: ParsedTiming[], framesPerLambda: number) => ExpensiveChunk[];
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMostExpensiveChunks = exports.OVERHEAD_TIME_PER_LAMBDA = void 0;
4
+ exports.OVERHEAD_TIME_PER_LAMBDA = 100;
5
+ const getMostExpensiveChunks = (parsedTimings, framesPerLambda) => {
6
+ const mostExpensiveChunks = parsedTimings
7
+ .slice(0)
8
+ .sort((a, b) => {
9
+ const durA = a.rendered - a.start;
10
+ const durB = b.rendered - b.start;
11
+ return durB - durA;
12
+ })
13
+ .slice(0, 5);
14
+ return mostExpensiveChunks.map((c) => {
15
+ return {
16
+ timeInMilliseconds: c.rendered - c.start,
17
+ chunk: c.chunk,
18
+ frameRange: [
19
+ framesPerLambda * c.chunk,
20
+ framesPerLambda * (c.chunk + 1) - 1,
21
+ ],
22
+ };
23
+ });
24
+ };
25
+ exports.getMostExpensiveChunks = getMostExpensiveChunks;
@@ -6,284 +6,284 @@ exports.hostedLayers = {
6
6
  arm64: {
7
7
  'ap-northeast-1': [
8
8
  {
9
- layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-remotion-arm64',
10
- version: 3,
9
+ layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-arm64',
10
+ version: 1,
11
11
  },
12
12
  {
13
13
  layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
14
- version: 3,
14
+ version: 5,
15
15
  },
16
16
  {
17
17
  layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
18
- version: 3,
18
+ version: 5,
19
19
  },
20
20
  ],
21
21
  'ap-south-1': [
22
22
  {
23
- layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-remotion-arm64',
24
- version: 3,
23
+ layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
24
+ version: 1,
25
25
  },
26
26
  {
27
27
  layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
28
- version: 3,
28
+ version: 5,
29
29
  },
30
30
  {
31
31
  layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
32
- version: 3,
32
+ version: 5,
33
33
  },
34
34
  ],
35
35
  'ap-southeast-1': [
36
36
  {
37
- layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-remotion-arm64',
38
- version: 3,
37
+ layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-arm64',
38
+ version: 1,
39
39
  },
40
40
  {
41
41
  layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
42
- version: 3,
42
+ version: 5,
43
43
  },
44
44
  {
45
45
  layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
46
- version: 3,
46
+ version: 5,
47
47
  },
48
48
  ],
49
49
  'ap-southeast-2': [
50
50
  {
51
- layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-remotion-arm64',
52
- version: 3,
51
+ layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-arm64',
52
+ version: 1,
53
53
  },
54
54
  {
55
55
  layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
56
- version: 3,
56
+ version: 5,
57
57
  },
58
58
  {
59
59
  layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
60
- version: 3,
60
+ version: 5,
61
61
  },
62
62
  ],
63
63
  'eu-central-1': [
64
64
  {
65
- layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-remotion-arm64',
66
- version: 3,
65
+ layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-arm64',
66
+ version: 1,
67
67
  },
68
68
  {
69
69
  layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
70
- version: 3,
70
+ version: 5,
71
71
  },
72
72
  {
73
73
  layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
74
- version: 3,
74
+ version: 5,
75
75
  },
76
76
  ],
77
77
  'eu-west-1': [
78
78
  {
79
- layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-remotion-arm64',
80
- version: 3,
79
+ layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-arm64',
80
+ version: 1,
81
81
  },
82
82
  {
83
83
  layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
84
- version: 3,
84
+ version: 5,
85
85
  },
86
86
  {
87
87
  layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
88
- version: 3,
88
+ version: 5,
89
89
  },
90
90
  ],
91
91
  'eu-west-2': [
92
92
  {
93
- layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-remotion-arm64',
94
- version: 3,
93
+ layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-arm64',
94
+ version: 1,
95
95
  },
96
96
  {
97
97
  layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
98
- version: 3,
98
+ version: 5,
99
99
  },
100
100
  {
101
101
  layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
102
- version: 3,
102
+ version: 5,
103
103
  },
104
104
  ],
105
105
  'us-east-1': [
106
106
  {
107
- layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-remotion-arm64',
108
- version: 7,
107
+ layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
108
+ version: 1,
109
109
  },
110
110
  {
111
111
  layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
112
- version: 7,
112
+ version: 9,
113
113
  },
114
114
  {
115
115
  layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
116
- version: 7,
116
+ version: 9,
117
117
  },
118
118
  ],
119
119
  'us-east-2': [
120
120
  {
121
- layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-remotion-arm64',
122
- version: 3,
121
+ layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-arm64',
122
+ version: 1,
123
123
  },
124
124
  {
125
125
  layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
126
- version: 3,
126
+ version: 5,
127
127
  },
128
128
  {
129
129
  layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',
130
- version: 3,
130
+ version: 5,
131
131
  },
132
132
  ],
133
133
  'us-west-2': [
134
134
  {
135
- layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-remotion-arm64',
136
- version: 3,
135
+ layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-arm64',
136
+ version: 1,
137
137
  },
138
138
  {
139
139
  layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
140
- version: 3,
140
+ version: 5,
141
141
  },
142
142
  {
143
143
  layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
144
- version: 3,
144
+ version: 5,
145
145
  },
146
146
  ],
147
147
  },
148
148
  x86_64: {
149
149
  'ap-northeast-1': [
150
150
  {
151
- layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-remotion-x86_64',
152
- version: 3,
151
+ layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-x86_64',
152
+ version: 1,
153
153
  },
154
154
  {
155
155
  layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
156
- version: 3,
156
+ version: 5,
157
157
  },
158
158
  {
159
159
  layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-x86_64',
160
- version: 3,
160
+ version: 5,
161
161
  },
162
162
  ],
163
163
  'ap-south-1': [
164
164
  {
165
- layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-remotion-x86_64',
166
- version: 3,
165
+ layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-x86_64',
166
+ version: 1,
167
167
  },
168
168
  {
169
169
  layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
170
- version: 3,
170
+ version: 5,
171
171
  },
172
172
  {
173
173
  layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-x86_64',
174
- version: 3,
174
+ version: 5,
175
175
  },
176
176
  ],
177
177
  'ap-southeast-1': [
178
178
  {
179
- layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-remotion-x86_64',
180
- version: 3,
179
+ layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-x86_64',
180
+ version: 1,
181
181
  },
182
182
  {
183
183
  layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
184
- version: 3,
184
+ version: 5,
185
185
  },
186
186
  {
187
187
  layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-x86_64',
188
- version: 3,
188
+ version: 5,
189
189
  },
190
190
  ],
191
191
  'ap-southeast-2': [
192
192
  {
193
- layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-remotion-x86_64',
194
- version: 3,
193
+ layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-x86_64',
194
+ version: 1,
195
195
  },
196
196
  {
197
197
  layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
198
- version: 3,
198
+ version: 5,
199
199
  },
200
200
  {
201
201
  layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-x86_64',
202
- version: 3,
202
+ version: 5,
203
203
  },
204
204
  ],
205
205
  'eu-central-1': [
206
206
  {
207
- layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-remotion-x86_64',
208
- version: 3,
207
+ layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-x86_64',
208
+ version: 1,
209
209
  },
210
210
  {
211
211
  layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
212
- version: 3,
212
+ version: 5,
213
213
  },
214
214
  {
215
215
  layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-x86_64',
216
- version: 3,
216
+ version: 5,
217
217
  },
218
218
  ],
219
219
  'eu-west-1': [
220
220
  {
221
- layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-remotion-x86_64',
222
- version: 3,
221
+ layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-x86_64',
222
+ version: 1,
223
223
  },
224
224
  {
225
225
  layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
226
- version: 3,
226
+ version: 5,
227
227
  },
228
228
  {
229
229
  layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-x86_64',
230
- version: 3,
230
+ version: 5,
231
231
  },
232
232
  ],
233
233
  'eu-west-2': [
234
234
  {
235
- layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-remotion-x86_64',
236
- version: 3,
235
+ layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-x86_64',
236
+ version: 1,
237
237
  },
238
238
  {
239
239
  layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
240
- version: 3,
240
+ version: 5,
241
241
  },
242
242
  {
243
243
  layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-x86_64',
244
- version: 3,
244
+ version: 5,
245
245
  },
246
246
  ],
247
247
  'us-east-1': [
248
248
  {
249
- layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-remotion-x86_64',
250
- version: 7,
249
+ layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-x86_64',
250
+ version: 1,
251
251
  },
252
252
  {
253
253
  layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
254
- version: 7,
254
+ version: 9,
255
255
  },
256
256
  {
257
257
  layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-x86_64',
258
- version: 7,
258
+ version: 9,
259
259
  },
260
260
  ],
261
261
  'us-east-2': [
262
262
  {
263
- layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-remotion-x86_64',
264
- version: 3,
263
+ layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-x86_64',
264
+ version: 1,
265
265
  },
266
266
  {
267
267
  layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
268
- version: 3,
268
+ version: 5,
269
269
  },
270
270
  {
271
271
  layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-x86_64',
272
- version: 3,
272
+ version: 5,
273
273
  },
274
274
  ],
275
275
  'us-west-2': [
276
276
  {
277
- layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-remotion-x86_64',
278
- version: 3,
277
+ layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-x86_64',
278
+ version: 1,
279
279
  },
280
280
  {
281
281
  layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
282
- version: 3,
282
+ version: 5,
283
283
  },
284
284
  {
285
285
  layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-x86_64',
286
- version: 3,
286
+ version: 5,
287
287
  },
288
288
  ],
289
289
  },
@@ -0,0 +1 @@
1
+ export declare const makeS3Key: (folder: string, dir: string, filePath: string) => string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.makeS3Key = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const makeS3Key = (folder, dir, filePath) => {
9
+ return `${folder}/${path_1.default.relative(dir, filePath).split(path_1.default.sep).join('/')}`;
10
+ };
11
+ exports.makeS3Key = makeS3Key;
@@ -0,0 +1 @@
1
+ export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType_1>(fn: (..._arguments: Arguments) => ReturnType_1 | PromiseLike<ReturnType_1>, ...args: Arguments) => Promise<ReturnType_1>;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pLimit = void 0;
4
+ const pLimit = (concurrency) => {
5
+ const queue = [];
6
+ let activeCount = 0;
7
+ const next = () => {
8
+ var _a;
9
+ activeCount--;
10
+ if (queue.length > 0) {
11
+ (_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
12
+ }
13
+ };
14
+ const run = async (fn, resolve, ...args) => {
15
+ activeCount++;
16
+ // eslint-disable-next-line require-await
17
+ const result = (async () => fn(...args))();
18
+ resolve(result);
19
+ try {
20
+ await result;
21
+ }
22
+ catch (_a) { }
23
+ next();
24
+ };
25
+ const enqueue = (fn, resolve, ...args) => {
26
+ queue.push(() => run(fn, resolve, ...args));
27
+ (async () => {
28
+ var _a;
29
+ // This function needs to wait until the next microtask before comparing
30
+ // `activeCount` to `concurrency`, because `activeCount` is updated asynchronously
31
+ // when the run function is dequeued and called. The comparison in the if-statement
32
+ // needs to happen asynchronously as well to get an up-to-date value for `activeCount`.
33
+ await Promise.resolve();
34
+ if (activeCount < concurrency && queue.length > 0) {
35
+ (_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
36
+ }
37
+ })();
38
+ };
39
+ const generator = (fn, ...args) => new Promise((resolve) => {
40
+ enqueue(fn, resolve, ...args);
41
+ });
42
+ Object.defineProperties(generator, {
43
+ activeCount: {
44
+ get: () => activeCount,
45
+ },
46
+ pendingCount: {
47
+ get: () => queue.length,
48
+ },
49
+ clearQueue: {
50
+ value: () => {
51
+ queue.length = 0;
52
+ },
53
+ },
54
+ });
55
+ return generator;
56
+ };
57
+ exports.pLimit = pLimit;
@@ -1,3 +1,3 @@
1
- export declare const randomHash: (options?: {
1
+ export declare const randomHash: (_options?: {
2
2
  randomInTests: boolean;
3
- } | undefined) => string;
3
+ }) => string;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.randomHash = void 0;
4
4
  const alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789';
5
5
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
- const randomHash = (options) => {
6
+ const randomHash = (_options) => {
7
7
  return new Array(10)
8
8
  .fill(1)
9
9
  .map(() => {
@@ -1,3 +1,4 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { Readable } from 'stream';
3
4
  export declare function streamToString(stream: Readable | Buffer): string | Promise<string>;
@@ -0,0 +1 @@
1
+ export declare const validateCustomRoleArn: (customRoleArn: unknown) => void;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateCustomRoleArn = void 0;
4
+ const validateCustomRoleArn = (customRoleArn) => {
5
+ if (typeof customRoleArn !== 'undefined' &&
6
+ typeof customRoleArn !== 'string') {
7
+ throw new TypeError('A custom role ARN must either be "undefined" or a string, but instead got: ' +
8
+ JSON.stringify(customRoleArn));
9
+ }
10
+ };
11
+ exports.validateCustomRoleArn = validateCustomRoleArn;