@remotion/lambda 4.0.0-preload.13 → 4.0.0-publish.3

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 (132) hide show
  1. package/dist/admin/make-layer-public.js +3 -3
  2. package/dist/api/bucket-exists.d.ts +1 -1
  3. package/dist/api/clean-items.d.ts +1 -1
  4. package/dist/api/create-bucket.d.ts +1 -1
  5. package/dist/api/create-function.d.ts +4 -3
  6. package/dist/api/create-function.js +3 -2
  7. package/dist/api/delete-function.d.ts +1 -1
  8. package/dist/api/delete-site.d.ts +1 -1
  9. package/dist/api/deploy-function.d.ts +3 -2
  10. package/dist/api/deploy-function.js +3 -0
  11. package/dist/api/deploy-site.d.ts +3 -3
  12. package/dist/api/download-media.d.ts +2 -2
  13. package/dist/api/enable-s3-website.d.ts +1 -1
  14. package/dist/api/estimate-price.d.ts +2 -2
  15. package/dist/api/get-aws-client.d.ts +2 -2
  16. package/dist/api/get-aws-client.js +5 -1
  17. package/dist/api/get-buckets.d.ts +1 -1
  18. package/dist/api/get-function-info.d.ts +2 -2
  19. package/dist/api/get-functions.d.ts +2 -2
  20. package/dist/api/get-or-create-bucket.d.ts +1 -1
  21. package/dist/api/get-regions.d.ts +1 -1
  22. package/dist/api/get-render-progress.d.ts +2 -2
  23. package/dist/api/get-sites.d.ts +2 -2
  24. package/dist/api/iam-validation/role-permissions.d.ts +2 -1
  25. package/dist/api/iam-validation/simulate-rule.d.ts +1 -1
  26. package/dist/api/iam-validation/simulate.d.ts +2 -2
  27. package/dist/api/mock-functions.d.ts +3 -3
  28. package/dist/api/presign-url.d.ts +1 -1
  29. package/dist/api/render-media-on-lambda.d.ts +5 -4
  30. package/dist/api/render-media-on-lambda.js +3 -1
  31. package/dist/api/render-still-on-lambda.d.ts +4 -4
  32. package/dist/api/upload-dir.d.ts +2 -2
  33. package/dist/api/upload-dir.js +2 -1
  34. package/dist/cli/args.d.ts +4 -3
  35. package/dist/cli/commands/functions/deploy.js +6 -2
  36. package/dist/cli/commands/render/progress.d.ts +3 -3
  37. package/dist/cli/commands/render/progress.js +11 -3
  38. package/dist/cli/commands/render/render.js +9 -2
  39. package/dist/cli/commands/sites/ls.js +1 -2
  40. package/dist/cli/commands/sites/rm.js +2 -3
  41. package/dist/cli/commands/sites/rmall.js +2 -3
  42. package/dist/cli/commands/still.js +1 -2
  43. package/dist/cli/get-aws-region.d.ts +1 -1
  44. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +2 -2
  45. package/dist/cli/helpers/progress-bar.js +1 -2
  46. package/dist/cli/index.js +10 -0
  47. package/dist/defaults.js +5 -1
  48. package/dist/functions/chunk-optimization/can-use-optimization.d.ts +1 -1
  49. package/dist/functions/chunk-optimization/collect-data.d.ts +1 -1
  50. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +1 -1
  51. package/dist/functions/chunk-optimization/get-profile-duration.d.ts +1 -1
  52. package/dist/functions/chunk-optimization/is-valid-profile.d.ts +1 -1
  53. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts +1 -1
  54. package/dist/functions/chunk-optimization/optimize-profile.d.ts +1 -1
  55. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +5 -2
  56. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts +2 -2
  57. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +1 -1
  58. package/dist/functions/chunk-optimization/sort-by-duration.d.ts +1 -1
  59. package/dist/functions/chunk-optimization/types.d.ts +1 -1
  60. package/dist/functions/helpers/calculate-chunk-times.d.ts +1 -1
  61. package/dist/functions/helpers/calculate-price-from-bucket.d.ts +4 -4
  62. package/dist/functions/helpers/concat-videos.d.ts +5 -4
  63. package/dist/functions/helpers/concat-videos.js +7 -2
  64. package/dist/functions/helpers/create-post-render-data.d.ts +6 -6
  65. package/dist/functions/helpers/create-post-render-data.js +5 -5
  66. package/dist/functions/helpers/delete-chunks.d.ts +3 -3
  67. package/dist/functions/helpers/expected-out-name.d.ts +1 -1
  68. package/dist/functions/helpers/find-output-file-in-bucket.d.ts +2 -2
  69. package/dist/functions/helpers/format-costs-info.d.ts +1 -1
  70. package/dist/functions/helpers/get-browser-instance.d.ts +2 -1
  71. package/dist/functions/helpers/get-cleanup-progress.d.ts +2 -2
  72. package/dist/functions/helpers/get-current-architecture.d.ts +1 -1
  73. package/dist/functions/helpers/get-encoding-metadata.d.ts +2 -2
  74. package/dist/functions/helpers/get-files-to-delete.js +2 -2
  75. package/dist/functions/helpers/get-final-encoding-status.d.ts +2 -2
  76. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +1 -1
  77. package/dist/functions/helpers/get-output-url-from-metadata.d.ts +1 -1
  78. package/dist/functions/helpers/get-post-render-data.d.ts +2 -2
  79. package/dist/functions/helpers/get-progress.d.ts +2 -2
  80. package/dist/functions/helpers/get-progress.js +14 -11
  81. package/dist/functions/helpers/get-render-metadata.d.ts +2 -2
  82. package/dist/functions/helpers/get-retry-stats.d.ts +1 -1
  83. package/dist/functions/helpers/get-time-to-finish.d.ts +1 -1
  84. package/dist/functions/helpers/inspect-errors.d.ts +3 -3
  85. package/dist/functions/helpers/io.d.ts +5 -5
  86. package/dist/functions/helpers/print-cloudwatch-helper.d.ts +1 -1
  87. package/dist/functions/helpers/read-with-progress.d.ts +4 -3
  88. package/dist/functions/helpers/read-with-progress.js +6 -1
  89. package/dist/functions/helpers/validate-composition.d.ts +9 -4
  90. package/dist/functions/helpers/validate-composition.js +6 -1
  91. package/dist/functions/helpers/write-lambda-error.d.ts +1 -1
  92. package/dist/functions/helpers/write-post-render-data.d.ts +2 -2
  93. package/dist/functions/index.d.ts +3 -2
  94. package/dist/functions/info.d.ts +1 -1
  95. package/dist/functions/launch.d.ts +1 -1
  96. package/dist/functions/launch.js +7 -1
  97. package/dist/functions/progress.d.ts +1 -1
  98. package/dist/functions/renderer.d.ts +1 -1
  99. package/dist/functions/renderer.js +3 -5
  100. package/dist/functions/start.d.ts +1 -1
  101. package/dist/functions/still.d.ts +1 -1
  102. package/dist/functions/still.js +6 -0
  103. package/dist/index.d.ts +33 -18
  104. package/dist/pricing/price-per-1-s.d.ts +1 -1
  105. package/dist/shared/aws-clients.d.ts +1 -1
  106. package/dist/shared/call-lambda.d.ts +3 -3
  107. package/dist/shared/constants.d.ts +14 -10
  108. package/dist/shared/constants.js +1 -1
  109. package/dist/shared/convert-to-serve-url.d.ts +1 -1
  110. package/dist/shared/get-account-id.d.ts +1 -1
  111. package/dist/shared/get-function-version.d.ts +2 -2
  112. package/dist/shared/get-most-expensive-chunks.d.ts +8 -0
  113. package/dist/shared/get-most-expensive-chunks.js +25 -0
  114. package/dist/shared/hosted-layers.d.ts +2 -2
  115. package/dist/shared/hosted-layers.js +80 -80
  116. package/dist/shared/make-s3-key.d.ts +1 -0
  117. package/dist/shared/make-s3-key.js +11 -0
  118. package/dist/shared/make-s3-url.d.ts +1 -1
  119. package/dist/shared/random-hash.d.ts +2 -2
  120. package/dist/shared/random-hash.js +1 -1
  121. package/dist/shared/return-values.d.ts +7 -7
  122. package/dist/shared/return-values.js +0 -1
  123. package/dist/shared/stream-to-string.d.ts +2 -1
  124. package/dist/shared/validate-aws-region.d.ts +1 -1
  125. package/dist/shared/validate-custom-role-arn.d.ts +1 -0
  126. package/dist/shared/validate-custom-role-arn.js +11 -0
  127. package/dist/shared/validate-lambda-codec.d.ts +4 -0
  128. package/dist/shared/validate-lambda-codec.js +21 -0
  129. package/dist/shared/validate-outname.d.ts +1 -1
  130. package/dist/shared/validate-privacy.d.ts +1 -1
  131. package/package.json +9 -12
  132. package/remotionlambda.zip +0 -0
@@ -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: 4,
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: 4,
14
+ version: 5,
15
15
  },
16
16
  {
17
17
  layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
18
- version: 4,
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: 4,
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: 4,
28
+ version: 5,
29
29
  },
30
30
  {
31
31
  layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
32
- version: 4,
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: 4,
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: 4,
42
+ version: 5,
43
43
  },
44
44
  {
45
45
  layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
46
- version: 4,
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: 4,
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: 4,
56
+ version: 5,
57
57
  },
58
58
  {
59
59
  layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
60
- version: 4,
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: 4,
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: 4,
70
+ version: 5,
71
71
  },
72
72
  {
73
73
  layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
74
- version: 4,
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: 4,
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: 4,
84
+ version: 5,
85
85
  },
86
86
  {
87
87
  layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
88
- version: 4,
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: 4,
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: 4,
98
+ version: 5,
99
99
  },
100
100
  {
101
101
  layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
102
- version: 4,
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: 8,
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: 8,
112
+ version: 9,
113
113
  },
114
114
  {
115
115
  layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
116
- version: 8,
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: 4,
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: 4,
126
+ version: 5,
127
127
  },
128
128
  {
129
129
  layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',
130
- version: 4,
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: 4,
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: 4,
140
+ version: 5,
141
141
  },
142
142
  {
143
143
  layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
144
- version: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 8,
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: 8,
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: 8,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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: 4,
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;
@@ -1,4 +1,4 @@
1
- import { AwsRegion } from '../pricing/aws-regions';
1
+ import type { AwsRegion } from '../pricing/aws-regions';
2
2
  export declare const makeS3ServeUrl: ({ bucketName, subFolder, region, }: {
3
3
  bucketName: string;
4
4
  subFolder: string;
@@ -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,10 +1,10 @@
1
- import { infoHandler } from '../functions/info';
2
- import { launchHandler } from '../functions/launch';
3
- import { progressHandler } from '../functions/progress';
4
- import { rendererHandler } from '../functions/renderer';
5
- import { startHandler } from '../functions/start';
6
- import { stillHandler } from '../functions/still';
7
- import { LambdaRoutines } from './constants';
1
+ import type { infoHandler } from '../functions/info';
2
+ import type { launchHandler } from '../functions/launch';
3
+ import type { progressHandler } from '../functions/progress';
4
+ import type { rendererHandler } from '../functions/renderer';
5
+ import type { startHandler } from '../functions/start';
6
+ import type { stillHandler } from '../functions/still';
7
+ import type { LambdaRoutines } from './constants';
8
8
  export interface LambdaReturnValues {
9
9
  [LambdaRoutines.start]: ReturnType<typeof startHandler>;
10
10
  [LambdaRoutines.launch]: ReturnType<typeof launchHandler>;
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const constants_1 = require("./constants");
@@ -1,3 +1,4 @@
1
1
  /// <reference types="node" />
2
- import { Readable } from 'stream';
2
+ /// <reference types="node" />
3
+ import type { Readable } from 'stream';
3
4
  export declare function streamToString(stream: Readable | Buffer): string | Promise<string>;
@@ -1,2 +1,2 @@
1
- import { AwsRegion } from '../pricing/aws-regions';
1
+ import type { AwsRegion } from '../pricing/aws-regions';
2
2
  export declare function validateAwsRegion(region: unknown): asserts region is AwsRegion;
@@ -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;
@@ -0,0 +1,4 @@
1
+ declare const lambdaCodecs: readonly ["h264-mkv", "h264", "vp8", "mp3", "aac", "wav"];
2
+ export declare type LambdaCodec = typeof lambdaCodecs[number];
3
+ export declare const validateLambdaCodec: (codec: unknown) => LambdaCodec;
4
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateLambdaCodec = void 0;
4
+ const lambdaCodecs = ['h264-mkv', 'h264', 'vp8', 'mp3', 'aac', 'wav'];
5
+ const validateLambdaCodec = (codec) => {
6
+ if (typeof codec !== 'string') {
7
+ throw new TypeError('"codec" must be a string ');
8
+ }
9
+ if (!lambdaCodecs.includes(codec)) {
10
+ throw new TypeError("'" +
11
+ codec +
12
+ "' is not a valid codec for Lambda. The following values are supported: " +
13
+ lambdaCodecs.join(', '));
14
+ }
15
+ if (codec === 'h264-mkv') {
16
+ console.warn('The "h264-mkv" codec for renderMediaOnLambda() is deprecated - it\'s now just "h264".');
17
+ return 'h264';
18
+ }
19
+ return codec;
20
+ };
21
+ exports.validateLambdaCodec = validateLambdaCodec;
@@ -1,2 +1,2 @@
1
- import { OutNameInput } from './constants';
1
+ import type { OutNameInput } from './constants';
2
2
  export declare const validateOutname: (outName: OutNameInput | undefined | null) => void;
@@ -1,2 +1,2 @@
1
- import { Privacy } from './constants';
1
+ import type { Privacy } from './constants';
2
2
  export declare function validatePrivacy(privacy: unknown): asserts privacy is Privacy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "4.0.0-preload.13+f7b159495",
3
+ "version": "4.0.0-publish.3+61971d192",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -31,38 +31,35 @@
31
31
  "@aws-sdk/client-service-quotas": "3.58.0",
32
32
  "@aws-sdk/lib-storage": "3.58.0",
33
33
  "@aws-sdk/s3-request-presigner": "3.58.0",
34
- "@remotion/bundler": "4.0.0-preload.13+f7b159495",
35
- "@remotion/cli": "4.0.0-preload.13+f7b159495",
36
- "@remotion/renderer": "4.0.0-preload.13+f7b159495",
34
+ "@remotion/bundler": "4.0.0-publish.3+61971d192",
35
+ "@remotion/cli": "4.0.0-publish.3+61971d192",
36
+ "@remotion/renderer": "4.0.0-publish.3+61971d192",
37
37
  "aws-policies": "^1.0.1",
38
- "dotenv": "^10.0.0",
39
38
  "mime-types": "2.1.34",
40
- "minimist": "1.2.6",
41
- "remotion": "4.0.0-preload.13+f7b159495"
39
+ "remotion": "4.0.0-publish.3+61971d192"
42
40
  },
43
41
  "peerDependencies": {
44
42
  "react": ">=16.8.0",
45
43
  "react-dom": ">=16.8.0"
46
44
  },
47
45
  "devDependencies": {
48
- "@jonny/eslint-config": "3.0.259",
46
+ "@jonny/eslint-config": "3.0.266",
49
47
  "@types/jest": "^27.0.2",
50
48
  "@types/mime-types": "2.1.1",
51
49
  "@types/minimist": "1.2.2",
52
50
  "@types/node": "^14.14.14",
53
51
  "@types/prompt": "^1.1.0",
54
52
  "eslint": "8.13.0",
55
- "execa": "5.1.1",
56
53
  "jest": "^27.2.4",
57
54
  "prettier": "^2.4.1",
58
55
  "prettier-plugin-organize-imports": "^2.3.4",
59
56
  "ts-jest": "^27.0.5",
60
- "ts-node": "^9.1.1",
61
- "typescript": "^4.5.5",
57
+ "ts-node": "^10.8.0",
58
+ "typescript": "^4.7.0",
62
59
  "zip-lib": "^0.7.2"
63
60
  },
64
61
  "publishConfig": {
65
62
  "access": "public"
66
63
  },
67
- "gitHead": "f7b1594951e881444050f2f9d4af8d442bbec942"
64
+ "gitHead": "61971d1927db43af8654095ad5467effd994938e"
68
65
  }
Binary file