@remotion/lambda 4.0.0-imgloading.2 → 4.0.0-july8th.12

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 (446) hide show
  1. package/dist/admin/bundle-lambda.d.ts.map +1 -0
  2. package/dist/admin/bundle-lambda.js.map +1 -0
  3. package/dist/admin/make-layer-public.d.ts.map +1 -0
  4. package/dist/admin/make-layer-public.js +3 -3
  5. package/dist/admin/make-layer-public.js.map +1 -0
  6. package/dist/api/bucket-exists.d.ts +1 -1
  7. package/dist/api/bucket-exists.d.ts.map +1 -0
  8. package/dist/api/bucket-exists.js.map +1 -0
  9. package/dist/api/clean-items.d.ts +1 -1
  10. package/dist/api/clean-items.d.ts.map +1 -0
  11. package/dist/api/clean-items.js.map +1 -0
  12. package/dist/api/create-bucket.d.ts +1 -1
  13. package/dist/api/create-bucket.d.ts.map +1 -0
  14. package/dist/api/create-bucket.js.map +1 -0
  15. package/dist/api/create-function.d.ts +4 -3
  16. package/dist/api/create-function.d.ts.map +1 -0
  17. package/dist/api/create-function.js +3 -2
  18. package/dist/api/create-function.js.map +1 -0
  19. package/dist/api/delete-function.d.ts +1 -1
  20. package/dist/api/delete-function.d.ts.map +1 -0
  21. package/dist/api/delete-function.js.map +1 -0
  22. package/dist/api/delete-site.d.ts +1 -1
  23. package/dist/api/delete-site.d.ts.map +1 -0
  24. package/dist/api/delete-site.js.map +1 -0
  25. package/dist/api/deploy-function.d.ts +3 -2
  26. package/dist/api/deploy-function.d.ts.map +1 -0
  27. package/dist/api/deploy-function.js +3 -0
  28. package/dist/api/deploy-function.js.map +1 -0
  29. package/dist/api/deploy-site.d.ts +3 -3
  30. package/dist/api/deploy-site.d.ts.map +1 -0
  31. package/dist/api/deploy-site.js.map +1 -0
  32. package/dist/api/download-media.d.ts +2 -2
  33. package/dist/api/download-video.d.ts +14 -0
  34. package/dist/api/download-video.d.ts.map +1 -0
  35. package/dist/api/download-video.js +62 -0
  36. package/dist/api/download-video.js.map +1 -0
  37. package/dist/api/enable-s3-website.d.ts +1 -1
  38. package/dist/api/enable-s3-website.d.ts.map +1 -0
  39. package/dist/api/enable-s3-website.js.map +1 -0
  40. package/dist/api/estimate-price.d.ts +2 -2
  41. package/dist/api/get-aws-client.d.ts +2 -2
  42. package/dist/api/get-aws-client.js +5 -1
  43. package/dist/api/get-buckets.d.ts +1 -1
  44. package/dist/api/get-buckets.d.ts.map +1 -0
  45. package/dist/api/get-buckets.js.map +1 -0
  46. package/dist/api/get-function-info.d.ts +2 -2
  47. package/dist/api/get-function-info.d.ts.map +1 -0
  48. package/dist/api/get-function-info.js.map +1 -0
  49. package/dist/api/get-functions.d.ts +2 -2
  50. package/dist/api/get-functions.d.ts.map +1 -0
  51. package/dist/api/get-functions.js.map +1 -0
  52. package/dist/api/get-or-create-bucket.d.ts +1 -1
  53. package/dist/api/get-or-create-bucket.d.ts.map +1 -0
  54. package/dist/api/get-or-create-bucket.js.map +1 -0
  55. package/dist/api/get-regions.d.ts +1 -1
  56. package/dist/api/get-render-progress.d.ts +2 -2
  57. package/dist/api/get-render-progress.d.ts.map +1 -0
  58. package/dist/api/get-render-progress.js.map +1 -0
  59. package/dist/api/get-sites.d.ts +2 -2
  60. package/dist/api/get-sites.d.ts.map +1 -0
  61. package/dist/api/get-sites.js.map +1 -0
  62. package/dist/api/iam-validation/required-permissions.d.ts +6 -0
  63. package/dist/api/iam-validation/required-permissions.d.ts.map +1 -0
  64. package/dist/api/iam-validation/required-permissions.js +68 -0
  65. package/dist/api/iam-validation/required-permissions.js.map +1 -0
  66. package/dist/api/iam-validation/role-permissions.d.ts +2 -1
  67. package/dist/api/iam-validation/role-permissions.d.ts.map +1 -0
  68. package/dist/api/iam-validation/role-permissions.js.map +1 -0
  69. package/dist/api/iam-validation/simulate-rule.d.ts +1 -1
  70. package/dist/api/iam-validation/simulate-rule.d.ts.map +1 -0
  71. package/dist/api/iam-validation/simulate-rule.js.map +1 -0
  72. package/dist/api/iam-validation/simulate.d.ts +2 -2
  73. package/dist/api/iam-validation/simulate.d.ts.map +1 -0
  74. package/dist/api/iam-validation/simulate.js.map +1 -0
  75. package/dist/api/iam-validation/suggested-policy.d.ts.map +1 -0
  76. package/dist/api/iam-validation/suggested-policy.js.map +1 -0
  77. package/dist/api/mock-functions.d.ts +3 -3
  78. package/dist/api/mock-functions.d.ts.map +1 -0
  79. package/dist/api/mock-functions.js.map +1 -0
  80. package/dist/api/presign-url.d.ts +1 -1
  81. package/dist/api/render-media-on-lambda.d.ts +5 -4
  82. package/dist/api/render-media-on-lambda.js +3 -1
  83. package/dist/api/render-still-on-lambda.d.ts +4 -4
  84. package/dist/api/render-still-on-lambda.d.ts.map +1 -0
  85. package/dist/api/render-still-on-lambda.js.map +1 -0
  86. package/dist/api/render-video-on-lambda.d.ts +45 -0
  87. package/dist/api/render-video-on-lambda.d.ts.map +1 -0
  88. package/dist/api/render-video-on-lambda.js +56 -0
  89. package/dist/api/render-video-on-lambda.js.map +1 -0
  90. package/dist/api/upload-dir.d.ts +2 -2
  91. package/dist/api/upload-dir.d.ts.map +1 -0
  92. package/dist/api/upload-dir.js +2 -1
  93. package/dist/api/upload-dir.js.map +1 -0
  94. package/dist/api/validate-frames-per-lambda.d.ts +2 -0
  95. package/dist/api/validate-frames-per-lambda.d.ts.map +1 -0
  96. package/dist/api/validate-frames-per-lambda.js +26 -0
  97. package/dist/api/validate-frames-per-lambda.js.map +1 -0
  98. package/dist/cli/args.d.ts +4 -3
  99. package/dist/cli/args.d.ts.map +1 -0
  100. package/dist/cli/args.js.map +1 -0
  101. package/dist/cli/commands/functions/deploy.d.ts.map +1 -0
  102. package/dist/cli/commands/functions/deploy.js +6 -2
  103. package/dist/cli/commands/functions/deploy.js.map +1 -0
  104. package/dist/cli/commands/functions/index.d.ts.map +1 -0
  105. package/dist/cli/commands/functions/index.js.map +1 -0
  106. package/dist/cli/commands/functions/ls.d.ts.map +1 -0
  107. package/dist/cli/commands/functions/ls.js.map +1 -0
  108. package/dist/cli/commands/functions/rm.d.ts.map +1 -0
  109. package/dist/cli/commands/functions/rm.js.map +1 -0
  110. package/dist/cli/commands/policies/policies.d.ts.map +1 -0
  111. package/dist/cli/commands/policies/policies.js.map +1 -0
  112. package/dist/cli/commands/policies/role.d.ts.map +1 -0
  113. package/dist/cli/commands/policies/role.js.map +1 -0
  114. package/dist/cli/commands/policies/user.d.ts.map +1 -0
  115. package/dist/cli/commands/policies/user.js.map +1 -0
  116. package/dist/cli/commands/policies/validate.d.ts.map +1 -0
  117. package/dist/cli/commands/policies/validate.js.map +1 -0
  118. package/dist/cli/commands/render/progress.d.ts +3 -3
  119. package/dist/cli/commands/render/progress.d.ts.map +1 -0
  120. package/dist/cli/commands/render/progress.js +11 -3
  121. package/dist/cli/commands/render/progress.js.map +1 -0
  122. package/dist/cli/commands/render/render.d.ts.map +1 -0
  123. package/dist/cli/commands/render/render.js +9 -2
  124. package/dist/cli/commands/render/render.js.map +1 -0
  125. package/dist/cli/commands/sites/create.d.ts.map +1 -0
  126. package/dist/cli/commands/sites/create.js.map +1 -0
  127. package/dist/cli/commands/sites/index.d.ts.map +1 -0
  128. package/dist/cli/commands/sites/index.js.map +1 -0
  129. package/dist/cli/commands/sites/ls.d.ts.map +1 -0
  130. package/dist/cli/commands/sites/ls.js +1 -2
  131. package/dist/cli/commands/sites/ls.js.map +1 -0
  132. package/dist/cli/commands/sites/rm.d.ts.map +1 -0
  133. package/dist/cli/commands/sites/rm.js +2 -3
  134. package/dist/cli/commands/sites/rm.js.map +1 -0
  135. package/dist/cli/commands/sites/rmall.js +2 -3
  136. package/dist/cli/commands/still.d.ts.map +1 -0
  137. package/dist/cli/commands/still.js +1 -2
  138. package/dist/cli/commands/still.js.map +1 -0
  139. package/dist/cli/get-aws-region.d.ts +1 -1
  140. package/dist/cli/get-aws-region.d.ts.map +1 -0
  141. package/dist/cli/get-aws-region.js.map +1 -0
  142. package/dist/cli/help.d.ts.map +1 -0
  143. package/dist/cli/help.js.map +1 -0
  144. package/dist/cli/helpers/confirm.d.ts.map +1 -0
  145. package/dist/cli/helpers/confirm.js.map +1 -0
  146. package/dist/cli/helpers/date-string.d.ts.map +1 -0
  147. package/dist/cli/helpers/date-string.js.map +1 -0
  148. package/dist/cli/helpers/find-function-name.d.ts.map +1 -0
  149. package/dist/cli/helpers/find-function-name.js.map +1 -0
  150. package/dist/cli/helpers/format-bytes.d.ts.map +1 -0
  151. package/dist/cli/helpers/format-bytes.js.map +1 -0
  152. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +2 -2
  153. package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +1 -0
  154. package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +1 -0
  155. package/dist/cli/helpers/progress-bar.d.ts.map +1 -0
  156. package/dist/cli/helpers/progress-bar.js +1 -2
  157. package/dist/cli/helpers/progress-bar.js.map +1 -0
  158. package/dist/cli/helpers/quit.d.ts.map +1 -0
  159. package/dist/cli/helpers/quit.js.map +1 -0
  160. package/dist/cli/index.d.ts.map +1 -0
  161. package/dist/cli/index.js +10 -0
  162. package/dist/cli/index.js.map +1 -0
  163. package/dist/cli/log.d.ts.map +1 -0
  164. package/dist/cli/log.js.map +1 -0
  165. package/dist/client.d.ts.map +1 -0
  166. package/dist/client.js.map +1 -0
  167. package/dist/defaults.d.ts.map +1 -0
  168. package/dist/defaults.js +5 -1
  169. package/dist/defaults.js.map +1 -0
  170. package/dist/functions/chunk-optimization/can-use-optimization.d.ts +1 -1
  171. package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +1 -0
  172. package/dist/functions/chunk-optimization/can-use-optimization.js.map +1 -0
  173. package/dist/functions/chunk-optimization/collect-data.d.ts +1 -1
  174. package/dist/functions/chunk-optimization/collect-data.d.ts.map +1 -0
  175. package/dist/functions/chunk-optimization/collect-data.js.map +1 -0
  176. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +2 -5
  177. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -0
  178. package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js.map +1 -0
  179. package/dist/functions/chunk-optimization/get-profile-duration.d.ts +1 -1
  180. package/dist/functions/chunk-optimization/get-profile-duration.d.ts.map +1 -0
  181. package/dist/functions/chunk-optimization/get-profile-duration.js.map +1 -0
  182. package/dist/functions/chunk-optimization/is-valid-profile.d.ts +1 -1
  183. package/dist/functions/chunk-optimization/is-valid-profile.d.ts.map +1 -0
  184. package/dist/functions/chunk-optimization/is-valid-profile.js.map +1 -0
  185. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts +1 -1
  186. package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts.map +1 -0
  187. package/dist/functions/chunk-optimization/optimize-invocation-order.js.map +1 -0
  188. package/dist/functions/chunk-optimization/optimize-profile.d.ts +3 -9
  189. package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -0
  190. package/dist/functions/chunk-optimization/optimize-profile.js.map +1 -0
  191. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +1 -1
  192. package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -0
  193. package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +1 -0
  194. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts +2 -2
  195. package/dist/functions/chunk-optimization/s3-optimization-file.d.ts.map +1 -0
  196. package/dist/functions/chunk-optimization/s3-optimization-file.js.map +1 -0
  197. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +2 -5
  198. package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -0
  199. package/dist/functions/chunk-optimization/simulate-frame-ranges.js.map +1 -0
  200. package/dist/functions/chunk-optimization/sort-by-duration.d.ts +1 -1
  201. package/dist/functions/chunk-optimization/sort-by-duration.d.ts.map +1 -0
  202. package/dist/functions/chunk-optimization/sort-by-duration.js.map +1 -0
  203. package/dist/functions/chunk-optimization/types.d.ts +1 -1
  204. package/dist/functions/chunk-optimization/types.d.ts.map +1 -0
  205. package/dist/functions/chunk-optimization/types.js.map +1 -0
  206. package/dist/functions/fire.d.ts +3 -0
  207. package/dist/functions/fire.d.ts.map +1 -0
  208. package/dist/functions/fire.js +25 -0
  209. package/dist/functions/fire.js.map +1 -0
  210. package/dist/functions/helpers/calculate-chunk-times.d.ts +1 -1
  211. package/dist/functions/helpers/calculate-chunk-times.d.ts.map +1 -0
  212. package/dist/functions/helpers/calculate-chunk-times.js.map +1 -0
  213. package/dist/functions/helpers/calculate-price-from-bucket.d.ts +4 -4
  214. package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -0
  215. package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -0
  216. package/dist/functions/helpers/clean-tmpdir.d.ts.map +1 -0
  217. package/dist/functions/helpers/clean-tmpdir.js.map +1 -0
  218. package/dist/functions/helpers/concat-videos.d.ts +5 -4
  219. package/dist/functions/helpers/concat-videos.d.ts.map +1 -0
  220. package/dist/functions/helpers/concat-videos.js +7 -2
  221. package/dist/functions/helpers/concat-videos.js.map +1 -0
  222. package/dist/functions/helpers/create-post-render-data.d.ts +6 -6
  223. package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -0
  224. package/dist/functions/helpers/create-post-render-data.js +5 -5
  225. package/dist/functions/helpers/create-post-render-data.js.map +1 -0
  226. package/dist/functions/helpers/delete-chunks.d.ts +3 -3
  227. package/dist/functions/helpers/delete-chunks.d.ts.map +1 -0
  228. package/dist/functions/helpers/delete-chunks.js.map +1 -0
  229. package/dist/functions/helpers/expected-out-name.d.ts +1 -1
  230. package/dist/functions/helpers/expected-out-name.d.ts.map +1 -0
  231. package/dist/functions/helpers/expected-out-name.js.map +1 -0
  232. package/dist/functions/helpers/find-output-file-in-bucket.d.ts +2 -2
  233. package/dist/functions/helpers/find-output-file-in-bucket.d.ts.map +1 -0
  234. package/dist/functions/helpers/find-output-file-in-bucket.js.map +1 -0
  235. package/dist/functions/helpers/format-costs-info.d.ts +1 -1
  236. package/dist/functions/helpers/format-costs-info.d.ts.map +1 -0
  237. package/dist/functions/helpers/format-costs-info.js.map +1 -0
  238. package/dist/functions/helpers/get-browser-instance.d.ts +2 -1
  239. package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -0
  240. package/dist/functions/helpers/get-browser-instance.js.map +1 -0
  241. package/dist/functions/helpers/get-chromium-executable-path.d.ts.map +1 -0
  242. package/dist/functions/helpers/get-chromium-executable-path.js.map +1 -0
  243. package/dist/functions/helpers/get-cleanup-progress.d.ts +2 -2
  244. package/dist/functions/helpers/get-cleanup-progress.d.ts.map +1 -0
  245. package/dist/functions/helpers/get-cleanup-progress.js.map +1 -0
  246. package/dist/functions/helpers/get-current-architecture.d.ts +1 -1
  247. package/dist/functions/helpers/get-current-region.d.ts.map +1 -0
  248. package/dist/functions/helpers/get-current-region.js.map +1 -0
  249. package/dist/functions/helpers/get-encoding-metadata.d.ts +2 -2
  250. package/dist/functions/helpers/get-encoding-metadata.d.ts.map +1 -0
  251. package/dist/functions/helpers/get-encoding-metadata.js.map +1 -0
  252. package/dist/functions/helpers/get-files-in-folder.d.ts.map +1 -0
  253. package/dist/functions/helpers/get-files-in-folder.js.map +1 -0
  254. package/dist/functions/helpers/get-files-to-delete.d.ts.map +1 -0
  255. package/dist/functions/helpers/get-files-to-delete.js +2 -2
  256. package/dist/functions/helpers/get-files-to-delete.js.map +1 -0
  257. package/dist/functions/helpers/get-final-encoding-status.d.ts +2 -2
  258. package/dist/functions/helpers/get-final-encoding-status.d.ts.map +1 -0
  259. package/dist/functions/helpers/get-final-encoding-status.js.map +1 -0
  260. package/dist/functions/helpers/get-folder-size.d.ts.map +1 -0
  261. package/dist/functions/helpers/get-folder-size.js.map +1 -0
  262. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +1 -1
  263. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +1 -0
  264. package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -0
  265. package/dist/functions/helpers/get-output-url-from-metadata.d.ts +1 -1
  266. package/dist/functions/helpers/get-overall-progress.d.ts.map +1 -0
  267. package/dist/functions/helpers/get-overall-progress.js.map +1 -0
  268. package/dist/functions/helpers/get-post-render-data.d.ts +2 -2
  269. package/dist/functions/helpers/get-post-render-data.d.ts.map +1 -0
  270. package/dist/functions/helpers/get-post-render-data.js.map +1 -0
  271. package/dist/functions/helpers/get-progress.d.ts +2 -2
  272. package/dist/functions/helpers/get-progress.d.ts.map +1 -0
  273. package/dist/functions/helpers/get-progress.js +14 -11
  274. package/dist/functions/helpers/get-progress.js.map +1 -0
  275. package/dist/functions/helpers/get-render-metadata.d.ts +2 -2
  276. package/dist/functions/helpers/get-render-metadata.d.ts.map +1 -0
  277. package/dist/functions/helpers/get-render-metadata.js.map +1 -0
  278. package/dist/functions/helpers/get-retry-stats.d.ts +1 -1
  279. package/dist/functions/helpers/get-retry-stats.d.ts.map +1 -0
  280. package/dist/functions/helpers/get-retry-stats.js.map +1 -0
  281. package/dist/functions/helpers/get-time-to-finish.d.ts +1 -1
  282. package/dist/functions/helpers/get-time-to-finish.d.ts.map +1 -0
  283. package/dist/functions/helpers/get-time-to-finish.js.map +1 -0
  284. package/dist/functions/helpers/inspect-errors.d.ts +3 -3
  285. package/dist/functions/helpers/inspect-errors.d.ts.map +1 -0
  286. package/dist/functions/helpers/inspect-errors.js.map +1 -0
  287. package/dist/functions/helpers/io.d.ts +5 -5
  288. package/dist/functions/helpers/io.d.ts.map +1 -0
  289. package/dist/functions/helpers/io.js.map +1 -0
  290. package/dist/functions/helpers/is-enosp-err.d.ts.map +1 -0
  291. package/dist/functions/helpers/is-enosp-err.js.map +1 -0
  292. package/dist/functions/helpers/is-fatal-error.d.ts +3 -0
  293. package/dist/functions/helpers/is-fatal-error.d.ts.map +1 -0
  294. package/dist/functions/helpers/is-fatal-error.js +8 -0
  295. package/dist/functions/helpers/is-fatal-error.js.map +1 -0
  296. package/dist/functions/helpers/is-warm.d.ts.map +1 -0
  297. package/dist/functions/helpers/is-warm.js.map +1 -0
  298. package/dist/functions/helpers/min-max.d.ts.map +1 -0
  299. package/dist/functions/helpers/min-max.js.map +1 -0
  300. package/dist/functions/helpers/print-cloudwatch-helper.d.ts +1 -1
  301. package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +1 -0
  302. package/dist/functions/helpers/print-cloudwatch-helper.js.map +1 -0
  303. package/dist/functions/helpers/read-with-progress.d.ts +3 -2
  304. package/dist/functions/helpers/read-with-progress.js +13 -1
  305. package/dist/functions/helpers/timer.d.ts.map +1 -0
  306. package/dist/functions/helpers/timer.js.map +1 -0
  307. package/dist/functions/helpers/upload-browser-logs.d.ts +11 -0
  308. package/dist/functions/helpers/upload-browser-logs.d.ts.map +1 -0
  309. package/dist/functions/helpers/upload-browser-logs.js +18 -0
  310. package/dist/functions/helpers/upload-browser-logs.js.map +1 -0
  311. package/dist/functions/helpers/validate-composition.d.ts +9 -4
  312. package/dist/functions/helpers/validate-composition.d.ts.map +1 -0
  313. package/dist/functions/helpers/validate-composition.js +6 -1
  314. package/dist/functions/helpers/validate-composition.js.map +1 -0
  315. package/dist/functions/helpers/write-lambda-error.d.ts +1 -1
  316. package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -0
  317. package/dist/functions/helpers/write-lambda-error.js.map +1 -0
  318. package/dist/functions/helpers/write-post-render-data.d.ts +2 -2
  319. package/dist/functions/helpers/write-post-render-data.d.ts.map +1 -0
  320. package/dist/functions/helpers/write-post-render-data.js.map +1 -0
  321. package/dist/functions/index.d.ts +3 -2
  322. package/dist/functions/index.d.ts.map +1 -0
  323. package/dist/functions/index.js.map +1 -0
  324. package/dist/functions/info.d.ts +1 -1
  325. package/dist/functions/info.d.ts.map +1 -0
  326. package/dist/functions/info.js.map +1 -0
  327. package/dist/functions/launch.d.ts +1 -1
  328. package/dist/functions/launch.d.ts.map +1 -0
  329. package/dist/functions/launch.js +7 -1
  330. package/dist/functions/launch.js.map +1 -0
  331. package/dist/functions/progress.d.ts +1 -1
  332. package/dist/functions/progress.d.ts.map +1 -0
  333. package/dist/functions/progress.js.map +1 -0
  334. package/dist/functions/renderer.d.ts +1 -1
  335. package/dist/functions/renderer.d.ts.map +1 -0
  336. package/dist/functions/renderer.js +3 -5
  337. package/dist/functions/renderer.js.map +1 -0
  338. package/dist/functions/start.d.ts +1 -1
  339. package/dist/functions/start.d.ts.map +1 -0
  340. package/dist/functions/start.js.map +1 -0
  341. package/dist/functions/still.d.ts +1 -1
  342. package/dist/functions/still.d.ts.map +1 -0
  343. package/dist/functions/still.js +6 -0
  344. package/dist/functions/still.js.map +1 -0
  345. package/dist/index.d.ts +33 -18
  346. package/dist/index.d.ts.map +1 -0
  347. package/dist/index.js.map +1 -0
  348. package/dist/internals.d.ts.map +1 -0
  349. package/dist/internals.js.map +1 -0
  350. package/dist/pricing/aws-regions.d.ts.map +1 -0
  351. package/dist/pricing/aws-regions.js.map +1 -0
  352. package/dist/pricing/calculate-price.d.ts +15 -0
  353. package/dist/pricing/calculate-price.d.ts.map +1 -0
  354. package/dist/pricing/calculate-price.js +34 -0
  355. package/dist/pricing/calculate-price.js.map +1 -0
  356. package/dist/pricing/price-per-1-s.d.ts +1 -1
  357. package/dist/pricing/price-per-1-s.d.ts.map +1 -0
  358. package/dist/pricing/price-per-1-s.js.map +1 -0
  359. package/dist/regions.d.ts.map +1 -0
  360. package/dist/regions.js.map +1 -0
  361. package/dist/shared/await.d.ts.map +1 -0
  362. package/dist/shared/await.js.map +1 -0
  363. package/dist/shared/aws-clients.d.ts +1 -1
  364. package/dist/shared/aws-clients.d.ts.map +1 -0
  365. package/dist/shared/aws-clients.js.map +1 -0
  366. package/dist/shared/bundle-site.d.ts.map +1 -0
  367. package/dist/shared/bundle-site.js.map +1 -0
  368. package/dist/shared/call-lambda.d.ts +3 -3
  369. package/dist/shared/call-lambda.d.ts.map +1 -0
  370. package/dist/shared/call-lambda.js.map +1 -0
  371. package/dist/shared/check-credentials.d.ts.map +1 -0
  372. package/dist/shared/check-credentials.js.map +1 -0
  373. package/dist/shared/chunk.d.ts.map +1 -0
  374. package/dist/shared/chunk.js.map +1 -0
  375. package/dist/shared/constants.d.ts +14 -10
  376. package/dist/shared/constants.d.ts.map +1 -0
  377. package/dist/shared/constants.js +1 -1
  378. package/dist/shared/constants.js.map +1 -0
  379. package/dist/shared/convert-to-serve-url.d.ts +1 -1
  380. package/dist/shared/docs-url.d.ts.map +1 -0
  381. package/dist/shared/docs-url.js.map +1 -0
  382. package/dist/shared/function-zip-path.d.ts.map +1 -0
  383. package/dist/shared/function-zip-path.js.map +1 -0
  384. package/dist/shared/get-account-id.d.ts +1 -1
  385. package/dist/shared/get-account-id.d.ts.map +1 -0
  386. package/dist/shared/get-account-id.js.map +1 -0
  387. package/dist/shared/get-file-extension-from-codec.d.ts +3 -0
  388. package/dist/shared/get-file-extension-from-codec.d.ts.map +1 -0
  389. package/dist/shared/get-file-extension-from-codec.js +33 -0
  390. package/dist/shared/get-file-extension-from-codec.js.map +1 -0
  391. package/dist/shared/get-function-version.d.ts +2 -2
  392. package/dist/shared/get-function-version.d.ts.map +1 -0
  393. package/dist/shared/get-function-version.js.map +1 -0
  394. package/dist/shared/get-most-expensive-chunks.d.ts +8 -0
  395. package/dist/shared/get-most-expensive-chunks.js +25 -0
  396. package/dist/shared/hosted-layers.d.ts +2 -2
  397. package/dist/shared/hosted-layers.d.ts.map +1 -0
  398. package/dist/shared/hosted-layers.js +80 -80
  399. package/dist/shared/hosted-layers.js.map +1 -0
  400. package/dist/shared/is-in-lambda.d.ts.map +1 -0
  401. package/dist/shared/is-in-lambda.js.map +1 -0
  402. package/dist/shared/make-s3-key.d.ts +1 -0
  403. package/dist/shared/make-s3-key.js +11 -0
  404. package/dist/shared/make-s3-url.d.ts +1 -1
  405. package/dist/shared/make-s3-url.d.ts.map +1 -0
  406. package/dist/shared/make-s3-url.js.map +1 -0
  407. package/dist/shared/parse-lambda-initialized-key.d.ts.map +1 -0
  408. package/dist/shared/parse-lambda-initialized-key.js.map +1 -0
  409. package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -0
  410. package/dist/shared/parse-lambda-timings-key.js.map +1 -0
  411. package/dist/shared/random-hash.d.ts +2 -2
  412. package/dist/shared/random-hash.d.ts.map +1 -0
  413. package/dist/shared/random-hash.js +1 -1
  414. package/dist/shared/random-hash.js.map +1 -0
  415. package/dist/shared/return-values.d.ts +7 -7
  416. package/dist/shared/return-values.d.ts.map +1 -0
  417. package/dist/shared/return-values.js +0 -1
  418. package/dist/shared/return-values.js.map +1 -0
  419. package/dist/shared/sleep.d.ts.map +1 -0
  420. package/dist/shared/sleep.js.map +1 -0
  421. package/dist/shared/stream-to-string.d.ts +2 -1
  422. package/dist/shared/stream-to-string.d.ts.map +1 -0
  423. package/dist/shared/stream-to-string.js.map +1 -0
  424. package/dist/shared/tmpdir.d.ts +3 -0
  425. package/dist/shared/tmpdir.d.ts.map +1 -0
  426. package/dist/shared/tmpdir.js +23 -0
  427. package/dist/shared/tmpdir.js.map +1 -0
  428. package/dist/shared/validate-aws-region.d.ts +1 -1
  429. package/dist/shared/validate-aws-region.d.ts.map +1 -0
  430. package/dist/shared/validate-aws-region.js.map +1 -0
  431. package/dist/shared/validate-custom-role-arn.d.ts +1 -0
  432. package/dist/shared/validate-custom-role-arn.js +11 -0
  433. package/dist/shared/validate-lambda-codec.d.ts +4 -0
  434. package/dist/shared/validate-lambda-codec.js +21 -0
  435. package/dist/shared/validate-memory-size.d.ts.map +1 -0
  436. package/dist/shared/validate-memory-size.js.map +1 -0
  437. package/dist/shared/validate-outname.d.ts +1 -1
  438. package/dist/shared/validate-privacy.d.ts +1 -1
  439. package/dist/shared/validate-privacy.d.ts.map +1 -0
  440. package/dist/shared/validate-privacy.js.map +1 -0
  441. package/dist/shared/validate-retries.d.ts.map +1 -0
  442. package/dist/shared/validate-retries.js.map +1 -0
  443. package/dist/shared/validate-timeout.d.ts.map +1 -0
  444. package/dist/shared/validate-timeout.js.map +1 -0
  445. package/package.json +9 -12
  446. package/remotionlambda.zip +0 -0
@@ -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;
@@ -1,5 +1,5 @@
1
- import { AwsRegion } from '../pricing/aws-regions';
2
- import { LambdaArchitecture } from './validate-architecture';
1
+ import type { AwsRegion } from '../pricing/aws-regions';
2
+ import type { LambdaArchitecture } from './validate-architecture';
3
3
  export declare const REMOTION_HOSTED_LAYER_ARN = "arn:aws:lambda:*:678892195805:layer:remotion-binaries-*";
4
4
  export declare type HostedLayers = {
5
5
  [architecture in LambdaArchitecture]: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosted-layers.d.ts","sourceRoot":"","sources":["../../src/shared/hosted-layers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,IAAI,CAAC;AAE7B,eAAO,MAAM,YAAY,EAAE;KACzB,GAAG,IAAI,SAAS,GAAG;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KAChB,EAAE;CAuWH,CAAC"}
@@ -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
+ {"version":3,"file":"hosted-layers.js","sourceRoot":"","sources":["../../src/shared/hosted-layers.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-in-lambda.d.ts","sourceRoot":"","sources":["../../src/shared/is-in-lambda.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAwC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-in-lambda.js","sourceRoot":"","sources":["../../src/shared/is-in-lambda.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC"}
@@ -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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-s3-url.d.ts","sourceRoot":"","sources":["../../src/shared/make-s3-url.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,eAAO,MAAM,cAAc;gBAKd,MAAM;eACP,MAAM;YACT,SAAS;MACd,MAEH,CAAC;AAIF,eAAO,MAAM,eAAe,QAAS,MAAM,WAU1C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-s3-url.js","sourceRoot":"","sources":["../../src/shared/make-s3-url.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAGrB,MAAM,cAAc,GAAG,CAAC,EAC9B,UAAU,EACV,SAAS,EACT,MAAM,GAKN,EAAU,EAAE;IACZ,OAAO,WAAW,UAAU,OAAO,MAAM,kBAAkB,SAAS,aAAa,CAAC;AACnF,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB;AAEF,MAAM,SAAS,GAA4B,EAAE,CAAC;AAEvC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE;IAC9C,IAAI,SAAS,CAAC,GAAG,CAAC,EAAE;QACnB,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;KACtB;IAED,MAAM,IAAI,GAAG,gBAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEhE,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAEtB,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAVW,QAAA,eAAe,mBAU1B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-lambda-initialized-key.d.ts","sourceRoot":"","sources":["../../src/shared/parse-lambda-initialized-key.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,QAAS,MAAM;;;;CAepD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-lambda-initialized-key.js","sourceRoot":"","sources":["../../src/shared/parse-lambda-initialized-key.ts"],"names":[],"mappings":";;;AAAO,MAAM,yBAAyB,GAAG,CAAC,GAAW,EAAE,EAAE;IACxD,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CACtB,yEAAyE,CACzE,CAAC;IACF,IAAI,CAAC,KAAK,EAAE;QACX,MAAM,IAAI,KAAK,CACd,yBAAyB,GAAG,2CAA2C,CACvE,CAAC;KACF;IAED,OAAO;QACN,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,yBAAyB,6BAepC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-lambda-timings-key.d.ts","sourceRoot":"","sources":["../../src/shared/parse-lambda-timings-key.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,QAAS,MAAM;;;;;CAgBhD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-lambda-timings-key.js","sourceRoot":"","sources":["../../src/shared/parse-lambda-timings-key.ts"],"names":[],"mappings":";;;AAAO,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CACtB,sFAAsF,CACtF,CAAC;IACF,IAAI,CAAC,KAAK,EAAE;QACX,MAAM,IAAI,KAAK,CACd,yBAAyB,GAAG,2CAA2C,CACvE,CAAC;KACF;IAED,OAAO;QACN,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC1B,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,qBAAqB,yBAgBhC"}
@@ -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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random-hash.d.ts","sourceRoot":"","sources":["../../src/shared/random-hash.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAO,MAO7B,CAAC"}
@@ -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(() => {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random-hash.js","sourceRoot":"","sources":["../../src/shared/random-hash.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAEjD,MAAM,UAAU,GAAG,GAAW,EAAE;IACtC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC;SAClB,IAAI,CAAC,CAAC,CAAC;SACP,GAAG,CAAC,GAAG,EAAE;QACT,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC,CAAC;AACZ,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB"}
@@ -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>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"return-values.d.ts","sourceRoot":"","sources":["../../src/shared/return-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IAClC,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IACxD,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAC1D,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9D,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC5D,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACtD,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACtD,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;CACxD"}
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const constants_1 = require("./constants");
@@ -0,0 +1 @@
1
+ {"version":3,"file":"return-values.js","sourceRoot":"","sources":["../../src/shared/return-values.ts"],"names":[],"mappings":";;AAOA,2CAA2C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../src/shared/sleep.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,aAAc,MAAM,qBAIrC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sleep.js","sourceRoot":"","sources":["../../src/shared/sleep.ts"],"names":[],"mappings":";;;AAAO,MAAM,KAAK,GAAG,CAAC,QAAgB,EAAE,EAAE;IACzC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC9B,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,KAAK,SAIhB"}
@@ -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>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-to-string.d.ts","sourceRoot":"","sources":["../../src/shared/stream-to-string.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,4BAWvD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-to-string.js","sourceRoot":"","sources":["../../src/shared/stream-to-string.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAAC,MAAyB;IACvD,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC5B,OAAO,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;KAChC;IAED,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC9C,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9D,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QACzC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;AACJ,CAAC;AAXD,wCAWC"}
@@ -0,0 +1,3 @@
1
+ export declare const isInLambda: boolean;
2
+ export declare const tmpDir: (str: string) => string;
3
+ //# sourceMappingURL=tmpdir.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmpdir.d.ts","sourceRoot":"","sources":["../../src/shared/tmpdir.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,SAAwC,CAAC;AAEhE,eAAO,MAAM,MAAM,QAAS,MAAM,WAUjC,CAAC"}
@@ -0,0 +1,23 @@
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.tmpDir = exports.isInLambda = void 0;
7
+ const fs_1 = require("fs");
8
+ const os_1 = __importDefault(require("os"));
9
+ const path_1 = __importDefault(require("path"));
10
+ const random_hash_1 = require("./random-hash");
11
+ exports.isInLambda = Boolean(process.env.LAMBDA_TASK_ROOT);
12
+ const tmpDir = (str) => {
13
+ if (exports.isInLambda) {
14
+ const dir = '/tmp/' + str + (0, random_hash_1.randomHash)();
15
+ (0, fs_1.mkdirSync)(dir);
16
+ return dir;
17
+ }
18
+ const newDir = path_1.default.join(os_1.default.tmpdir(), str + (0, random_hash_1.randomHash)());
19
+ (0, fs_1.mkdirSync)(newDir);
20
+ return newDir;
21
+ };
22
+ exports.tmpDir = tmpDir;
23
+ //# sourceMappingURL=tmpdir.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmpdir.js","sourceRoot":"","sources":["../../src/shared/tmpdir.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA6B;AAC7B,4CAAoB;AACpB,gDAAwB;AACxB,+CAAyC;AAE5B,QAAA,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAEzD,MAAM,MAAM,GAAG,CAAC,GAAW,EAAE,EAAE;IACrC,IAAI,kBAAU,EAAE;QACf,MAAM,GAAG,GAAG,OAAO,GAAG,GAAG,GAAG,IAAA,wBAAU,GAAE,CAAC;QACzC,IAAA,cAAS,EAAC,GAAG,CAAC,CAAC;QACf,OAAO,GAAG,CAAC;KACX;IAED,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,MAAM,EAAE,EAAE,GAAG,GAAG,IAAA,wBAAU,GAAE,CAAC,CAAC;IAC1D,IAAA,cAAS,EAAC,MAAM,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAVW,QAAA,MAAM,UAUjB"}
@@ -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
+ {"version":3,"file":"validate-aws-region.d.ts","sourceRoot":"","sources":["../../src/shared/validate-aws-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAc,MAAM,wBAAwB,CAAC;AAE9D,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,OAAO,GACb,OAAO,CAAC,MAAM,IAAI,SAAS,CAQ7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-aws-region.js","sourceRoot":"","sources":["../../src/shared/validate-aws-region.ts"],"names":[],"mappings":";;;AAAA,wDAA8D;AAE9D,SAAgB,iBAAiB,CAChC,MAAe;IAEf,IAAI,CAAC,yBAAW,CAAC,QAAQ,CAAC,MAAmB,CAAC,EAAE;QAC/C,MAAM,IAAI,SAAS,CAClB,GAAG,MAAM,+CAA+C,yBAAW,CAAC,IAAI,CACvE,IAAI,CACJ,EAAE,CACH,CAAC;KACF;AACF,CAAC;AAVD,8CAUC"}
@@ -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 {};