@remotion/lambda 3.0.0-pnpm.295 → 3.0.0-symbols.457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -0
- package/.turbo/turbo-lint.log +33 -0
- package/.turbo/turbo-test.log +24 -0
- package/LICENSE.md +2 -2
- package/README.md +1 -10
- package/dist/admin/bundle-lambda.d.ts +0 -0
- package/dist/admin/bundle-lambda.d.ts.map +0 -0
- package/dist/admin/bundle-lambda.js +3 -3
- package/dist/admin/bundle-lambda.js.map +1 -1
- package/dist/admin/make-layer-public.d.ts +0 -0
- package/dist/admin/make-layer-public.d.ts.map +0 -0
- package/dist/admin/make-layer-public.js +65 -48
- package/dist/admin/make-layer-public.js.map +1 -1
- package/dist/api/bucket-exists.d.ts +0 -0
- package/dist/api/bucket-exists.d.ts.map +0 -0
- package/dist/api/bucket-exists.js +0 -0
- package/dist/api/bucket-exists.js.map +0 -0
- package/dist/api/clean-items.d.ts +0 -0
- package/dist/api/clean-items.d.ts.map +0 -0
- package/dist/api/clean-items.js +0 -0
- package/dist/api/clean-items.js.map +0 -0
- package/dist/api/create-bucket.d.ts +0 -0
- package/dist/api/create-bucket.d.ts.map +0 -0
- package/dist/api/create-bucket.js +0 -0
- package/dist/api/create-bucket.js.map +0 -0
- package/dist/api/create-function.d.ts +4 -1
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js +6 -3
- package/dist/api/create-function.js.map +1 -1
- package/dist/api/delete-function.d.ts +1 -1
- package/dist/api/delete-function.d.ts.map +0 -0
- package/dist/api/delete-function.js +1 -1
- package/dist/api/delete-function.js.map +0 -0
- package/dist/api/delete-site.d.ts +0 -0
- package/dist/api/delete-site.d.ts.map +0 -0
- package/dist/api/delete-site.js +0 -0
- package/dist/api/delete-site.js.map +0 -0
- package/dist/api/deploy-function.d.ts +5 -0
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +19 -4
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-site.d.ts +0 -0
- package/dist/api/deploy-site.d.ts.map +0 -0
- package/dist/api/deploy-site.js +1 -1
- package/dist/api/deploy-site.js.map +1 -1
- package/dist/api/download-media.d.ts +0 -0
- package/dist/api/download-media.d.ts.map +1 -1
- package/dist/api/download-media.js +7 -17
- package/dist/api/download-media.js.map +1 -1
- package/dist/api/enable-s3-website.d.ts +0 -0
- package/dist/api/enable-s3-website.d.ts.map +0 -0
- package/dist/api/enable-s3-website.js +0 -0
- package/dist/api/enable-s3-website.js.map +0 -0
- package/dist/api/estimate-price.d.ts +5 -1
- package/dist/api/estimate-price.d.ts.map +1 -1
- package/dist/api/estimate-price.js +21 -4
- package/dist/api/estimate-price.js.map +1 -1
- package/dist/api/get-aws-client.d.ts +3 -1
- package/dist/api/get-aws-client.d.ts.map +1 -1
- package/dist/api/get-aws-client.js +3 -1
- package/dist/api/get-aws-client.js.map +1 -1
- package/dist/api/get-buckets.d.ts +0 -0
- package/dist/api/get-buckets.d.ts.map +0 -0
- package/dist/api/get-buckets.js +0 -0
- package/dist/api/get-buckets.js.map +0 -0
- package/dist/api/get-function-info.d.ts +1 -0
- package/dist/api/get-function-info.d.ts.map +1 -1
- package/dist/api/get-function-info.js +3 -1
- package/dist/api/get-function-info.js.map +1 -1
- package/dist/api/get-functions.d.ts +0 -0
- package/dist/api/get-functions.d.ts.map +1 -1
- package/dist/api/get-functions.js +28 -2
- package/dist/api/get-functions.js.map +1 -1
- package/dist/api/get-or-create-bucket.d.ts +0 -0
- package/dist/api/get-or-create-bucket.d.ts.map +0 -0
- package/dist/api/get-or-create-bucket.js +0 -0
- package/dist/api/get-or-create-bucket.js.map +0 -0
- package/dist/api/get-regions.d.ts +0 -0
- package/dist/api/get-regions.d.ts.map +0 -0
- package/dist/api/get-regions.js +0 -0
- package/dist/api/get-regions.js.map +0 -0
- package/dist/api/get-render-progress.d.ts +0 -0
- package/dist/api/get-render-progress.d.ts.map +1 -1
- package/dist/api/get-render-progress.js +2 -1
- package/dist/api/get-render-progress.js.map +1 -1
- package/dist/api/get-sites.d.ts +0 -0
- package/dist/api/get-sites.d.ts.map +0 -0
- package/dist/api/get-sites.js +0 -0
- package/dist/api/get-sites.js.map +0 -0
- package/dist/api/iam-validation/role-permissions.d.ts +0 -0
- package/dist/api/iam-validation/role-permissions.d.ts.map +0 -0
- package/dist/api/iam-validation/role-permissions.js +0 -0
- package/dist/api/iam-validation/role-permissions.js.map +0 -0
- package/dist/api/iam-validation/simulate-rule.d.ts +0 -0
- package/dist/api/iam-validation/simulate-rule.d.ts.map +0 -0
- package/dist/api/iam-validation/simulate-rule.js +0 -0
- package/dist/api/iam-validation/simulate-rule.js.map +0 -0
- package/dist/api/iam-validation/simulate.d.ts +0 -0
- package/dist/api/iam-validation/simulate.d.ts.map +0 -0
- package/dist/api/iam-validation/simulate.js +0 -0
- package/dist/api/iam-validation/simulate.js.map +0 -0
- package/dist/api/iam-validation/suggested-policy.d.ts +0 -0
- package/dist/api/iam-validation/suggested-policy.d.ts.map +0 -0
- package/dist/api/iam-validation/suggested-policy.js +0 -0
- package/dist/api/iam-validation/suggested-policy.js.map +0 -0
- package/dist/api/iam-validation/user-permissions.d.ts +2 -2
- package/dist/api/iam-validation/user-permissions.d.ts.map +1 -1
- package/dist/api/iam-validation/user-permissions.js +10 -0
- package/dist/api/iam-validation/user-permissions.js.map +1 -1
- package/dist/api/mock-functions.d.ts +0 -0
- package/dist/api/mock-functions.d.ts.map +0 -0
- package/dist/api/mock-functions.js +0 -0
- package/dist/api/mock-functions.js.map +0 -0
- package/dist/api/presign-url.d.ts +0 -0
- package/dist/api/presign-url.d.ts.map +0 -0
- package/dist/api/presign-url.js +1 -1
- package/dist/api/presign-url.js.map +1 -1
- package/dist/api/render-media-on-lambda.d.ts +5 -4
- package/dist/api/render-media-on-lambda.d.ts.map +1 -1
- package/dist/api/render-media-on-lambda.js +5 -3
- package/dist/api/render-media-on-lambda.js.map +1 -1
- package/dist/api/render-still-on-lambda.d.ts +4 -1
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +4 -2
- package/dist/api/render-still-on-lambda.js.map +1 -1
- package/dist/api/upload-dir.d.ts +1 -1
- package/dist/api/upload-dir.d.ts.map +1 -1
- package/dist/api/upload-dir.js +7 -5
- package/dist/api/upload-dir.js.map +1 -1
- package/dist/cli/args.d.ts +4 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +0 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/functions/deploy.d.ts +0 -0
- package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
- package/dist/cli/commands/functions/deploy.js +19 -9
- package/dist/cli/commands/functions/deploy.js.map +1 -1
- package/dist/cli/commands/functions/index.d.ts +0 -0
- package/dist/cli/commands/functions/index.d.ts.map +0 -0
- package/dist/cli/commands/functions/index.js +0 -0
- package/dist/cli/commands/functions/index.js.map +0 -0
- package/dist/cli/commands/functions/ls.d.ts +0 -0
- package/dist/cli/commands/functions/ls.d.ts.map +1 -1
- package/dist/cli/commands/functions/ls.js +3 -0
- package/dist/cli/commands/functions/ls.js.map +1 -1
- package/dist/cli/commands/functions/rm.d.ts +0 -0
- package/dist/cli/commands/functions/rm.d.ts.map +0 -0
- package/dist/cli/commands/functions/rm.js +0 -0
- package/dist/cli/commands/functions/rm.js.map +0 -0
- package/dist/cli/commands/functions/rmall.d.ts +0 -0
- package/dist/cli/commands/functions/rmall.d.ts.map +0 -0
- package/dist/cli/commands/functions/rmall.js +0 -0
- package/dist/cli/commands/functions/rmall.js.map +0 -0
- package/dist/cli/commands/policies/policies.d.ts +0 -0
- package/dist/cli/commands/policies/policies.d.ts.map +0 -0
- package/dist/cli/commands/policies/policies.js +0 -0
- package/dist/cli/commands/policies/policies.js.map +0 -0
- package/dist/cli/commands/policies/role.d.ts +0 -0
- package/dist/cli/commands/policies/role.d.ts.map +0 -0
- package/dist/cli/commands/policies/role.js +0 -0
- package/dist/cli/commands/policies/role.js.map +0 -0
- package/dist/cli/commands/policies/user.d.ts +0 -0
- package/dist/cli/commands/policies/user.d.ts.map +0 -0
- package/dist/cli/commands/policies/user.js +0 -0
- package/dist/cli/commands/policies/user.js.map +0 -0
- package/dist/cli/commands/policies/validate.d.ts +0 -0
- package/dist/cli/commands/policies/validate.d.ts.map +0 -0
- package/dist/cli/commands/policies/validate.js +0 -0
- package/dist/cli/commands/policies/validate.js.map +0 -0
- package/dist/cli/commands/quotas/increase.d.ts +3 -0
- package/dist/cli/commands/quotas/increase.d.ts.map +1 -0
- package/dist/cli/commands/quotas/increase.js +58 -0
- package/dist/cli/commands/quotas/increase.js.map +1 -0
- package/dist/cli/commands/quotas/index.d.ts +3 -0
- package/dist/cli/commands/quotas/index.d.ts.map +1 -0
- package/dist/cli/commands/quotas/index.js +30 -0
- package/dist/cli/commands/quotas/index.js.map +1 -0
- package/dist/cli/commands/quotas/list.d.ts +2 -0
- package/dist/cli/commands/quotas/list.d.ts.map +1 -0
- package/dist/cli/commands/quotas/list.js +65 -0
- package/dist/cli/commands/quotas/list.js.map +1 -0
- package/dist/cli/commands/regions.d.ts +0 -0
- package/dist/cli/commands/regions.d.ts.map +0 -0
- package/dist/cli/commands/regions.js +0 -0
- package/dist/cli/commands/regions.js.map +0 -0
- package/dist/cli/commands/render/progress.d.ts +0 -0
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +4 -5
- package/dist/cli/commands/render/progress.js.map +1 -1
- package/dist/cli/commands/render/render.d.ts +0 -0
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +40 -24
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/sites/create.d.ts +0 -0
- package/dist/cli/commands/sites/create.d.ts.map +0 -0
- package/dist/cli/commands/sites/create.js +0 -0
- package/dist/cli/commands/sites/create.js.map +0 -0
- package/dist/cli/commands/sites/index.d.ts +0 -0
- package/dist/cli/commands/sites/index.d.ts.map +0 -0
- package/dist/cli/commands/sites/index.js +0 -0
- package/dist/cli/commands/sites/index.js.map +0 -0
- package/dist/cli/commands/sites/ls.d.ts +0 -0
- package/dist/cli/commands/sites/ls.d.ts.map +0 -0
- package/dist/cli/commands/sites/ls.js +0 -0
- package/dist/cli/commands/sites/ls.js.map +0 -0
- package/dist/cli/commands/sites/rm.d.ts +0 -0
- package/dist/cli/commands/sites/rm.d.ts.map +0 -0
- package/dist/cli/commands/sites/rm.js +0 -0
- package/dist/cli/commands/sites/rm.js.map +0 -0
- package/dist/cli/commands/sites/rmall.d.ts +0 -0
- package/dist/cli/commands/sites/rmall.d.ts.map +0 -0
- package/dist/cli/commands/sites/rmall.js +0 -0
- package/dist/cli/commands/sites/rmall.js.map +0 -0
- package/dist/cli/commands/still.d.ts +0 -0
- package/dist/cli/commands/still.d.ts.map +1 -1
- package/dist/cli/commands/still.js +53 -35
- package/dist/cli/commands/still.js.map +1 -1
- package/dist/cli/get-aws-region.d.ts +0 -0
- package/dist/cli/get-aws-region.d.ts.map +1 -1
- package/dist/cli/get-aws-region.js +2 -2
- package/dist/cli/get-aws-region.js.map +1 -1
- package/dist/cli/help.d.ts +0 -0
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +4 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/helpers/confirm.d.ts +0 -0
- package/dist/cli/helpers/confirm.d.ts.map +0 -0
- package/dist/cli/helpers/confirm.js +0 -0
- package/dist/cli/helpers/confirm.js.map +0 -0
- package/dist/cli/helpers/date-string.d.ts +0 -0
- package/dist/cli/helpers/date-string.d.ts.map +0 -0
- package/dist/cli/helpers/date-string.js +0 -0
- package/dist/cli/helpers/date-string.js.map +0 -0
- package/dist/cli/helpers/find-function-name.d.ts +0 -0
- package/dist/cli/helpers/find-function-name.d.ts.map +0 -0
- package/dist/cli/helpers/find-function-name.js +0 -0
- package/dist/cli/helpers/find-function-name.js.map +0 -0
- package/dist/cli/helpers/format-bytes.d.ts +0 -0
- package/dist/cli/helpers/format-bytes.d.ts.map +0 -0
- package/dist/cli/helpers/format-bytes.js +0 -0
- package/dist/cli/helpers/format-bytes.js.map +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js +0 -0
- package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +0 -0
- package/dist/cli/helpers/progress-bar.d.ts +0 -0
- package/dist/cli/helpers/progress-bar.d.ts.map +0 -0
- package/dist/cli/helpers/progress-bar.js +0 -0
- package/dist/cli/helpers/progress-bar.js.map +0 -0
- package/dist/cli/helpers/quit.d.ts +0 -0
- package/dist/cli/helpers/quit.d.ts.map +0 -0
- package/dist/cli/helpers/quit.js +0 -0
- package/dist/cli/helpers/quit.js.map +0 -0
- package/dist/cli/helpers/yes-or-no.d.ts +0 -0
- package/dist/cli/helpers/yes-or-no.d.ts.map +1 -1
- package/dist/cli/helpers/yes-or-no.js +1 -1
- package/dist/cli/helpers/yes-or-no.js.map +1 -1
- package/dist/cli/index.d.ts +0 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +11 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/is-cli.d.ts +0 -0
- package/dist/cli/is-cli.d.ts.map +0 -0
- package/dist/cli/is-cli.js +0 -0
- package/dist/cli/is-cli.js.map +0 -0
- package/dist/cli/log.d.ts +0 -0
- package/dist/cli/log.d.ts.map +0 -0
- package/dist/cli/log.js +0 -0
- package/dist/cli/log.js.map +0 -0
- package/dist/client.d.ts +0 -0
- package/dist/client.d.ts.map +0 -0
- package/dist/client.js +0 -0
- package/dist/client.js.map +0 -0
- package/dist/defaults.d.ts +0 -0
- package/dist/defaults.d.ts.map +0 -0
- package/dist/defaults.js +0 -0
- package/dist/defaults.js.map +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.js +0 -0
- package/dist/functions/chunk-optimization/can-use-optimization.js.map +0 -0
- package/dist/functions/chunk-optimization/collect-data.d.ts +3 -2
- package/dist/functions/chunk-optimization/collect-data.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/collect-data.js +0 -0
- package/dist/functions/chunk-optimization/collect-data.js.map +0 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +0 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js +0 -0
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js.map +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.d.ts +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.js +0 -0
- package/dist/functions/chunk-optimization/get-profile-duration.js.map +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.d.ts +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.js +0 -0
- package/dist/functions/chunk-optimization/is-valid-profile.js.map +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.js +0 -0
- package/dist/functions/chunk-optimization/optimize-invocation-order.js.map +0 -0
- package/dist/functions/chunk-optimization/optimize-profile.d.ts +0 -0
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/optimize-profile.js +0 -0
- package/dist/functions/chunk-optimization/optimize-profile.js.map +0 -0
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +0 -0
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/plan-frame-ranges.js +0 -0
- package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.d.ts +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.js +0 -0
- package/dist/functions/chunk-optimization/s3-optimization-file.js.map +0 -0
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +0 -0
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/simulate-frame-ranges.js +0 -0
- package/dist/functions/chunk-optimization/simulate-frame-ranges.js.map +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.d.ts +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.js +0 -0
- package/dist/functions/chunk-optimization/sort-by-duration.js.map +0 -0
- package/dist/functions/chunk-optimization/types.d.ts +0 -0
- package/dist/functions/chunk-optimization/types.d.ts.map +0 -0
- package/dist/functions/chunk-optimization/types.js +0 -0
- package/dist/functions/chunk-optimization/types.js.map +0 -0
- package/dist/functions/fire.d.ts +0 -0
- package/dist/functions/fire.d.ts.map +0 -0
- package/dist/functions/fire.js +0 -0
- package/dist/functions/fire.js.map +0 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.d.ts +0 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.d.ts.map +0 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.js +0 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.js.map +0 -0
- package/dist/functions/helpers/calculate-chunk-times.d.ts +0 -0
- package/dist/functions/helpers/calculate-chunk-times.d.ts.map +0 -0
- package/dist/functions/helpers/calculate-chunk-times.js +0 -0
- package/dist/functions/helpers/calculate-chunk-times.js.map +0 -0
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts +7 -2
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.js +5 -8
- package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.d.ts +0 -0
- package/dist/functions/helpers/clean-tmpdir.d.ts.map +0 -0
- package/dist/functions/helpers/clean-tmpdir.js +0 -0
- package/dist/functions/helpers/clean-tmpdir.js.map +0 -0
- package/dist/functions/helpers/concat-videos.d.ts +0 -0
- package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
- package/dist/functions/helpers/concat-videos.js +5 -3
- package/dist/functions/helpers/concat-videos.js.map +1 -1
- package/dist/functions/helpers/create-post-render-data.d.ts +4 -3
- package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +7 -7
- package/dist/functions/helpers/create-post-render-data.js.map +1 -1
- package/dist/functions/helpers/delete-chunks.d.ts +0 -0
- package/dist/functions/helpers/delete-chunks.d.ts.map +0 -0
- package/dist/functions/helpers/delete-chunks.js +0 -0
- package/dist/functions/helpers/delete-chunks.js.map +0 -0
- package/dist/functions/helpers/expected-out-name.d.ts +2 -2
- package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
- package/dist/functions/helpers/expected-out-name.js +12 -4
- package/dist/functions/helpers/expected-out-name.js.map +1 -1
- package/dist/functions/helpers/find-output-file-in-bucket.d.ts +8 -7
- package/dist/functions/helpers/find-output-file-in-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/find-output-file-in-bucket.js +23 -17
- package/dist/functions/helpers/find-output-file-in-bucket.js.map +1 -1
- package/dist/functions/helpers/format-costs-info.d.ts +0 -0
- package/dist/functions/helpers/format-costs-info.d.ts.map +0 -0
- package/dist/functions/helpers/format-costs-info.js +0 -0
- package/dist/functions/helpers/format-costs-info.js.map +0 -0
- package/dist/functions/helpers/get-browser-instance.d.ts +2 -2
- package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
- package/dist/functions/helpers/get-browser-instance.js +6 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-chromium-executable-path.d.ts +1 -1
- package/dist/functions/helpers/get-chromium-executable-path.d.ts.map +1 -1
- package/dist/functions/helpers/get-chromium-executable-path.js +0 -0
- package/dist/functions/helpers/get-chromium-executable-path.js.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.d.ts +0 -0
- package/dist/functions/helpers/get-cleanup-progress.d.ts.map +0 -0
- package/dist/functions/helpers/get-cleanup-progress.js +0 -0
- package/dist/functions/helpers/get-cleanup-progress.js.map +0 -0
- package/dist/functions/helpers/get-current-architecture.d.ts +3 -0
- package/dist/functions/helpers/get-current-architecture.d.ts.map +1 -0
- package/dist/functions/helpers/get-current-architecture.js +12 -0
- package/dist/functions/helpers/get-current-architecture.js.map +1 -0
- package/dist/functions/helpers/get-current-region.d.ts +0 -0
- package/dist/functions/helpers/get-current-region.d.ts.map +0 -0
- package/dist/functions/helpers/get-current-region.js +2 -2
- package/dist/functions/helpers/get-current-region.js.map +1 -1
- package/dist/functions/helpers/get-encoding-metadata.d.ts +0 -0
- package/dist/functions/helpers/get-encoding-metadata.d.ts.map +0 -0
- package/dist/functions/helpers/get-encoding-metadata.js +0 -0
- package/dist/functions/helpers/get-encoding-metadata.js.map +0 -0
- package/dist/functions/helpers/get-files-in-folder.d.ts +0 -0
- package/dist/functions/helpers/get-files-in-folder.d.ts.map +0 -0
- package/dist/functions/helpers/get-files-in-folder.js +0 -0
- package/dist/functions/helpers/get-files-in-folder.js.map +0 -0
- package/dist/functions/helpers/get-files-to-delete.d.ts +0 -0
- package/dist/functions/helpers/get-files-to-delete.d.ts.map +0 -0
- package/dist/functions/helpers/get-files-to-delete.js +0 -0
- package/dist/functions/helpers/get-files-to-delete.js.map +0 -0
- package/dist/functions/helpers/get-final-encoding-status.d.ts +0 -0
- package/dist/functions/helpers/get-final-encoding-status.d.ts.map +0 -0
- package/dist/functions/helpers/get-final-encoding-status.js +0 -0
- package/dist/functions/helpers/get-final-encoding-status.js.map +0 -0
- package/dist/functions/helpers/get-folder-size.d.ts +0 -0
- package/dist/functions/helpers/get-folder-size.d.ts.map +0 -0
- package/dist/functions/helpers/get-folder-size.js +0 -0
- package/dist/functions/helpers/get-folder-size.js.map +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +0 -0
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +0 -0
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts +3 -0
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts.map +1 -0
- package/dist/functions/helpers/get-output-url-from-metadata.js +11 -0
- package/dist/functions/helpers/get-output-url-from-metadata.js.map +1 -0
- package/dist/functions/helpers/get-overall-progress.d.ts +0 -0
- package/dist/functions/helpers/get-overall-progress.d.ts.map +0 -0
- package/dist/functions/helpers/get-overall-progress.js +0 -0
- package/dist/functions/helpers/get-overall-progress.js.map +0 -0
- package/dist/functions/helpers/get-post-render-data.d.ts +0 -0
- package/dist/functions/helpers/get-post-render-data.d.ts.map +0 -0
- package/dist/functions/helpers/get-post-render-data.js +0 -0
- package/dist/functions/helpers/get-post-render-data.js.map +0 -0
- package/dist/functions/helpers/get-progress.d.ts +0 -0
- package/dist/functions/helpers/get-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-progress.js +32 -17
- package/dist/functions/helpers/get-progress.js.map +1 -1
- package/dist/functions/helpers/get-render-metadata.d.ts +0 -0
- package/dist/functions/helpers/get-render-metadata.d.ts.map +0 -0
- package/dist/functions/helpers/get-render-metadata.js +0 -0
- package/dist/functions/helpers/get-render-metadata.js.map +0 -0
- package/dist/functions/helpers/get-retry-stats.d.ts +0 -0
- package/dist/functions/helpers/get-retry-stats.d.ts.map +0 -0
- package/dist/functions/helpers/get-retry-stats.js +0 -0
- package/dist/functions/helpers/get-retry-stats.js.map +0 -0
- package/dist/functions/helpers/get-time-to-finish.d.ts +0 -0
- package/dist/functions/helpers/get-time-to-finish.d.ts.map +0 -0
- package/dist/functions/helpers/get-time-to-finish.js +0 -0
- package/dist/functions/helpers/get-time-to-finish.js.map +0 -0
- package/dist/functions/helpers/inspect-errors.d.ts +0 -0
- package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
- package/dist/functions/helpers/inspect-errors.js +5 -1
- package/dist/functions/helpers/inspect-errors.js.map +1 -1
- package/dist/functions/helpers/io.d.ts +0 -0
- package/dist/functions/helpers/io.d.ts.map +0 -0
- package/dist/functions/helpers/io.js +0 -0
- package/dist/functions/helpers/io.js.map +0 -0
- package/dist/functions/helpers/is-enosp-err.d.ts +0 -0
- package/dist/functions/helpers/is-enosp-err.d.ts.map +0 -0
- package/dist/functions/helpers/is-enosp-err.js +0 -0
- package/dist/functions/helpers/is-enosp-err.js.map +0 -0
- package/dist/functions/helpers/is-warm.d.ts +0 -0
- package/dist/functions/helpers/is-warm.d.ts.map +0 -0
- package/dist/functions/helpers/is-warm.js +0 -0
- package/dist/functions/helpers/is-warm.js.map +0 -0
- package/dist/functions/helpers/min-max.d.ts +0 -0
- package/dist/functions/helpers/min-max.d.ts.map +0 -0
- package/dist/functions/helpers/min-max.js +0 -0
- package/dist/functions/helpers/min-max.js.map +0 -0
- package/dist/functions/helpers/presign-url.d.ts +2 -0
- package/dist/functions/helpers/presign-url.d.ts.map +1 -0
- package/dist/functions/helpers/presign-url.js +9 -0
- package/dist/functions/helpers/presign-url.js.map +1 -0
- package/dist/functions/helpers/print-cloudwatch-helper.d.ts +0 -0
- package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +0 -0
- package/dist/functions/helpers/print-cloudwatch-helper.js +0 -0
- package/dist/functions/helpers/print-cloudwatch-helper.js.map +0 -0
- package/dist/functions/helpers/print-concurrency-curve.d.ts +0 -0
- package/dist/functions/helpers/print-concurrency-curve.d.ts.map +0 -0
- package/dist/functions/helpers/print-concurrency-curve.js +0 -0
- package/dist/functions/helpers/print-concurrency-curve.js.map +0 -0
- package/dist/functions/helpers/read-with-progress.d.ts +5 -3
- package/dist/functions/helpers/read-with-progress.d.ts.map +1 -1
- package/dist/functions/helpers/read-with-progress.js +4 -12
- package/dist/functions/helpers/read-with-progress.js.map +1 -1
- package/dist/functions/helpers/timer.d.ts +0 -0
- package/dist/functions/helpers/timer.d.ts.map +0 -0
- package/dist/functions/helpers/timer.js +0 -0
- package/dist/functions/helpers/timer.js.map +0 -0
- package/dist/functions/helpers/validate-composition.d.ts +0 -0
- package/dist/functions/helpers/validate-composition.d.ts.map +0 -0
- package/dist/functions/helpers/validate-composition.js +0 -0
- package/dist/functions/helpers/validate-composition.js.map +0 -0
- package/dist/functions/helpers/write-lambda-error.d.ts +2 -0
- package/dist/functions/helpers/write-lambda-error.d.ts.map +1 -1
- package/dist/functions/helpers/write-lambda-error.js +0 -0
- package/dist/functions/helpers/write-lambda-error.js.map +1 -1
- package/dist/functions/helpers/write-post-render-data.d.ts +0 -0
- package/dist/functions/helpers/write-post-render-data.d.ts.map +0 -0
- package/dist/functions/helpers/write-post-render-data.js +0 -0
- package/dist/functions/helpers/write-post-render-data.js.map +0 -0
- package/dist/functions/index.d.ts +0 -0
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +0 -7
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/info.d.ts +0 -0
- package/dist/functions/info.d.ts.map +1 -1
- package/dist/functions/info.js +2 -2
- package/dist/functions/info.js.map +1 -1
- package/dist/functions/launch.d.ts +0 -0
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +27 -17
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/progress.d.ts +0 -0
- package/dist/functions/progress.d.ts.map +0 -0
- package/dist/functions/progress.js +1 -1
- package/dist/functions/progress.js.map +1 -1
- package/dist/functions/renderer.d.ts +0 -0
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +16 -9
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/start.d.ts +0 -0
- package/dist/functions/start.d.ts.map +1 -1
- package/dist/functions/start.js +3 -8
- package/dist/functions/start.js.map +1 -1
- package/dist/functions/still.d.ts +0 -0
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +18 -13
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -0
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +0 -0
- package/dist/internals.d.ts.map +0 -0
- package/dist/internals.js +0 -0
- package/dist/internals.js.map +0 -0
- package/dist/pricing/aws-regions.d.ts +0 -0
- package/dist/pricing/aws-regions.d.ts.map +0 -0
- package/dist/pricing/aws-regions.js +0 -0
- package/dist/pricing/aws-regions.js.map +0 -0
- package/dist/pricing/price-per-1-s.d.ts +8 -0
- package/dist/pricing/price-per-1-s.d.ts.map +1 -1
- package/dist/pricing/price-per-1-s.js +82 -2
- package/dist/pricing/price-per-1-s.js.map +1 -1
- package/dist/regions.d.ts +0 -0
- package/dist/regions.d.ts.map +0 -0
- package/dist/regions.js +0 -0
- package/dist/regions.js.map +0 -0
- package/dist/shared/await.d.ts +0 -0
- package/dist/shared/await.d.ts.map +0 -0
- package/dist/shared/await.js +0 -0
- package/dist/shared/await.js.map +0 -0
- package/dist/shared/aws-clients.d.ts +3 -0
- package/dist/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +25 -14
- package/dist/shared/aws-clients.js.map +1 -1
- package/dist/shared/bundle-site.d.ts +0 -0
- package/dist/shared/bundle-site.d.ts.map +0 -0
- package/dist/shared/bundle-site.js +0 -0
- package/dist/shared/bundle-site.js.map +0 -0
- package/dist/shared/call-lambda.d.ts +0 -0
- package/dist/shared/call-lambda.d.ts.map +0 -0
- package/dist/shared/call-lambda.js +0 -0
- package/dist/shared/call-lambda.js.map +0 -0
- package/dist/shared/check-credentials.d.ts +0 -0
- package/dist/shared/check-credentials.d.ts.map +0 -0
- package/dist/shared/check-credentials.js +0 -0
- package/dist/shared/check-credentials.js.map +0 -0
- package/dist/shared/chunk.d.ts +0 -0
- package/dist/shared/chunk.d.ts.map +0 -0
- package/dist/shared/chunk.js +0 -0
- package/dist/shared/chunk.js.map +0 -0
- package/dist/shared/constants.d.ts +31 -19
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +17 -9
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/convert-to-serve-url.d.ts +0 -0
- package/dist/shared/convert-to-serve-url.d.ts.map +0 -0
- package/dist/shared/convert-to-serve-url.js +0 -0
- package/dist/shared/convert-to-serve-url.js.map +0 -0
- package/dist/shared/docs-url.d.ts +0 -0
- package/dist/shared/docs-url.d.ts.map +0 -0
- package/dist/shared/docs-url.js +0 -0
- package/dist/shared/docs-url.js.map +0 -0
- package/dist/shared/function-zip-path.d.ts +0 -0
- package/dist/shared/function-zip-path.d.ts.map +0 -0
- package/dist/shared/function-zip-path.js +0 -0
- package/dist/shared/function-zip-path.js.map +0 -0
- package/dist/shared/get-account-id.d.ts +0 -0
- package/dist/shared/get-account-id.d.ts.map +0 -0
- package/dist/shared/get-account-id.js +0 -0
- package/dist/shared/get-account-id.js.map +0 -0
- package/dist/shared/get-function-version.d.ts +0 -0
- package/dist/shared/get-function-version.d.ts.map +0 -0
- package/dist/shared/get-function-version.js +0 -0
- package/dist/shared/get-function-version.js.map +0 -0
- package/dist/shared/hosted-layers.d.ts +9 -5
- package/dist/shared/hosted-layers.d.ts.map +1 -1
- package/dist/shared/hosted-layers.js +284 -140
- package/dist/shared/hosted-layers.js.map +1 -1
- package/dist/shared/is-in-lambda.d.ts +2 -0
- package/dist/shared/is-in-lambda.d.ts.map +1 -0
- package/dist/shared/is-in-lambda.js +6 -0
- package/dist/shared/is-in-lambda.js.map +1 -0
- package/dist/shared/make-s3-url.d.ts +0 -0
- package/dist/shared/make-s3-url.d.ts.map +0 -0
- package/dist/shared/make-s3-url.js +0 -0
- package/dist/shared/make-s3-url.js.map +0 -0
- package/dist/shared/parse-lambda-initialized-key.d.ts +0 -0
- package/dist/shared/parse-lambda-initialized-key.d.ts.map +0 -0
- package/dist/shared/parse-lambda-initialized-key.js +0 -0
- package/dist/shared/parse-lambda-initialized-key.js.map +0 -0
- package/dist/shared/parse-lambda-timings-key.d.ts +0 -0
- package/dist/shared/parse-lambda-timings-key.d.ts.map +0 -0
- package/dist/shared/parse-lambda-timings-key.js +0 -0
- package/dist/shared/parse-lambda-timings-key.js.map +0 -0
- package/dist/shared/random-hash.d.ts +3 -1
- package/dist/shared/random-hash.d.ts.map +1 -1
- package/dist/shared/random-hash.js +2 -1
- package/dist/shared/random-hash.js.map +1 -1
- package/dist/shared/return-values.d.ts +0 -2
- package/dist/shared/return-values.d.ts.map +1 -1
- package/dist/shared/return-values.js +0 -0
- package/dist/shared/return-values.js.map +1 -1
- package/dist/shared/sleep.d.ts +0 -0
- package/dist/shared/sleep.d.ts.map +0 -0
- package/dist/shared/sleep.js +0 -0
- package/dist/shared/sleep.js.map +0 -0
- package/dist/shared/stream-to-string.d.ts +0 -0
- package/dist/shared/stream-to-string.d.ts.map +0 -0
- package/dist/shared/stream-to-string.js +0 -0
- package/dist/shared/stream-to-string.js.map +0 -0
- package/dist/shared/validate-architecture.d.ts +5 -0
- package/dist/shared/validate-architecture.d.ts.map +1 -0
- package/dist/shared/validate-architecture.js +15 -0
- package/dist/shared/validate-architecture.js.map +1 -0
- package/dist/shared/validate-aws-region.d.ts +0 -0
- package/dist/shared/validate-aws-region.d.ts.map +0 -0
- package/dist/shared/validate-aws-region.js +0 -0
- package/dist/shared/validate-aws-region.js.map +0 -0
- package/dist/shared/validate-bucketname.d.ts +3 -1
- package/dist/shared/validate-bucketname.d.ts.map +1 -1
- package/dist/shared/validate-bucketname.js +6 -2
- package/dist/shared/validate-bucketname.js.map +1 -1
- package/dist/shared/validate-disk-size-in-mb.d.ts +2 -0
- package/dist/shared/validate-disk-size-in-mb.d.ts.map +1 -0
- package/dist/shared/validate-disk-size-in-mb.js +24 -0
- package/dist/shared/validate-disk-size-in-mb.js.map +1 -0
- package/dist/shared/validate-frames-per-lambda.d.ts +0 -0
- package/dist/shared/validate-frames-per-lambda.d.ts.map +1 -1
- package/dist/shared/validate-frames-per-lambda.js +3 -0
- package/dist/shared/validate-frames-per-lambda.js.map +1 -1
- package/dist/shared/validate-memory-size.d.ts +0 -0
- package/dist/shared/validate-memory-size.d.ts.map +0 -0
- package/dist/shared/validate-memory-size.js +0 -0
- package/dist/shared/validate-memory-size.js.map +0 -0
- package/dist/shared/validate-outname.d.ts +2 -1
- package/dist/shared/validate-outname.d.ts.map +1 -1
- package/dist/shared/validate-outname.js +17 -9
- package/dist/shared/validate-outname.js.map +1 -1
- package/dist/shared/validate-presign-expiration.d.ts +0 -0
- package/dist/shared/validate-presign-expiration.d.ts.map +0 -0
- package/dist/shared/validate-presign-expiration.js +0 -0
- package/dist/shared/validate-presign-expiration.js.map +0 -0
- package/dist/shared/validate-privacy.d.ts +0 -0
- package/dist/shared/validate-privacy.d.ts.map +0 -0
- package/dist/shared/validate-privacy.js +0 -0
- package/dist/shared/validate-privacy.js.map +0 -0
- package/dist/shared/validate-retention-period.d.ts +0 -0
- package/dist/shared/validate-retention-period.d.ts.map +0 -0
- package/dist/shared/validate-retention-period.js +0 -0
- package/dist/shared/validate-retention-period.js.map +0 -0
- package/dist/shared/validate-retries.d.ts +0 -0
- package/dist/shared/validate-retries.d.ts.map +0 -0
- package/dist/shared/validate-retries.js +0 -0
- package/dist/shared/validate-retries.js.map +0 -0
- package/dist/shared/validate-serveurl.d.ts +2 -0
- package/dist/shared/validate-serveurl.d.ts.map +1 -0
- package/dist/shared/validate-serveurl.js +10 -0
- package/dist/shared/validate-serveurl.js.map +1 -0
- package/dist/shared/validate-site-name.d.ts +0 -0
- package/dist/shared/validate-site-name.d.ts.map +0 -0
- package/dist/shared/validate-site-name.js +0 -0
- package/dist/shared/validate-site-name.js.map +0 -0
- package/dist/shared/validate-timeout.d.ts +0 -0
- package/dist/shared/validate-timeout.d.ts.map +0 -0
- package/dist/shared/validate-timeout.js +0 -0
- package/dist/shared/validate-timeout.js.map +0 -0
- package/package.json +24 -20
- package/remotion-lambda-cli.js +1 -1
- package/remotionlambda.zip +0 -0
- package/dist/api/get-aws-clients.d.ts +0 -16
- package/dist/api/get-aws-clients.d.ts.map +0 -1
- package/dist/api/get-aws-clients.js +0 -40
- package/dist/api/get-aws-clients.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
[33m@remotion/lambda:build: [0mcache hit, replaying output [2m3c577ba3d9a5b922[0m
|
|
2
|
+
[33m@remotion/lambda:build: [0m
|
|
3
|
+
[33m@remotion/lambda:build: [0m> @remotion/lambda@2.6.15 build /Users/jonathanburger/remotion/packages/lambda
|
|
4
|
+
[33m@remotion/lambda:build: [0m> tsc -d && pnpm run buildlambda
|
|
5
|
+
[33m@remotion/lambda:build: [0m
|
|
6
|
+
[33m@remotion/lambda:build: [0m
|
|
7
|
+
[33m@remotion/lambda:build: [0m> @remotion/lambda@2.6.15 buildlambda /Users/jonathanburger/remotion/packages/lambda
|
|
8
|
+
[33m@remotion/lambda:build: [0m> ts-node src/admin/bundle-lambda.ts
|
|
9
|
+
[33m@remotion/lambda:build: [0m
|
|
10
|
+
[33m@remotion/lambda:build: [0mLambda bundled
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[34m@remotion/lambda:lint: [0mcache hit, replaying output [2mf94793156437ac08[0m
|
|
2
|
+
[34m@remotion/lambda:lint: [0m
|
|
3
|
+
[34m@remotion/lambda:lint: [0m> @remotion/lambda@2.6.15 lint /Users/jonathanburger/remotion/packages/lambda
|
|
4
|
+
[34m@remotion/lambda:lint: [0m> eslint src --ext ts,tsx
|
|
5
|
+
[34m@remotion/lambda:lint: [0m
|
|
6
|
+
[34m@remotion/lambda:lint: [0m
|
|
7
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/api/__mocks__/get-functions.ts
|
|
8
|
+
[34m@remotion/lambda:lint: [0m 8:4 warning Async arrow function has no 'await' expression require-await
|
|
9
|
+
[34m@remotion/lambda:lint: [0m
|
|
10
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/api/__mocks__/upload-dir.ts
|
|
11
|
+
[34m@remotion/lambda:lint: [0m 34:57 warning Async arrow function has no 'await' expression require-await
|
|
12
|
+
[34m@remotion/lambda:lint: [0m
|
|
13
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/api/clean-items.ts
|
|
14
|
+
[34m@remotion/lambda:lint: [0m 20:4 warning Async arrow function has no 'await' expression require-await
|
|
15
|
+
[34m@remotion/lambda:lint: [0m
|
|
16
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/functions/helpers/calculate-chunk-times.ts
|
|
17
|
+
[34m@remotion/lambda:lint: [0m 20:3 warning Unexpected 'todo' comment: 'TODO: Should also calculate invoker...' no-warning-comments
|
|
18
|
+
[34m@remotion/lambda:lint: [0m
|
|
19
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/functions/helpers/create-post-render-data.ts
|
|
20
|
+
[34m@remotion/lambda:lint: [0m 43:4 warning Async arrow function has no 'await' expression require-await
|
|
21
|
+
[34m@remotion/lambda:lint: [0m
|
|
22
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/functions/helpers/get-chromium-executable-path.ts
|
|
23
|
+
[34m@remotion/lambda:lint: [0m 13:69 warning Async arrow function has no 'await' expression require-await
|
|
24
|
+
[34m@remotion/lambda:lint: [0m
|
|
25
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/functions/index.ts
|
|
26
|
+
[34m@remotion/lambda:lint: [0m 21:35 warning Async arrow function has no 'await' expression require-await
|
|
27
|
+
[34m@remotion/lambda:lint: [0m
|
|
28
|
+
[34m@remotion/lambda:lint: [0m/Users/jonathanburger/remotion/packages/lambda/src/functions/launch.ts
|
|
29
|
+
[34m@remotion/lambda:lint: [0m 123:3 warning Unexpected 'todo' comment: 'TODO: Re-enable chunk optimization later' no-warning-comments
|
|
30
|
+
[34m@remotion/lambda:lint: [0m 302:2 warning Unexpected 'todo' comment: 'TODO: Enable in a later release' no-warning-comments
|
|
31
|
+
[34m@remotion/lambda:lint: [0m
|
|
32
|
+
[34m@remotion/lambda:lint: [0m✖ 9 problems (0 errors, 9 warnings)
|
|
33
|
+
[34m@remotion/lambda:lint: [0m
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[32m@remotion/lambda:test: [0mcache hit, replaying output [2m6aa7f619ea3cc6a8[0m
|
|
2
|
+
[32m@remotion/lambda:test: [0m
|
|
3
|
+
[32m@remotion/lambda:test: [0m> @remotion/lambda@2.6.15 test /Users/jonathanburger/remotion/packages/lambda
|
|
4
|
+
[32m@remotion/lambda:test: [0m> jest src/test/unit
|
|
5
|
+
[32m@remotion/lambda:test: [0m
|
|
6
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/frame-bug.test.ts (10.331 s)
|
|
7
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/min-max.test.ts (10.447 s)
|
|
8
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/best-frames-per-lambda-param.test.ts (10.526 s)
|
|
9
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/pricing.test.ts (10.792 s)
|
|
10
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/lambda-timing-file-name.test.ts
|
|
11
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/cloudwatch-validation.test.ts
|
|
12
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/price-calculation.test.ts (11.222 s)
|
|
13
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/validate-disk-size-in-mb.test.ts
|
|
14
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/hosted-layers-match.test.ts
|
|
15
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/lambda-timings-key.test.ts
|
|
16
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/expected-out-name.test.ts (11.372 s)
|
|
17
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/optimize-profile.test.ts (11.675 s)
|
|
18
|
+
[32m@remotion/lambda:test: [0mPASS src/test/unit/handlers.test.ts (6.406 s)
|
|
19
|
+
[32m@remotion/lambda:test: [0m
|
|
20
|
+
[32m@remotion/lambda:test: [0mTest Suites: 13 passed, 13 total
|
|
21
|
+
[32m@remotion/lambda:test: [0mTests: 33 passed, 33 total
|
|
22
|
+
[32m@remotion/lambda:test: [0mSnapshots: 0 total
|
|
23
|
+
[32m@remotion/lambda:test: [0mTime: 17.72 s
|
|
24
|
+
[32m@remotion/lambda:test: [0mRan all test suites matching /src\/test\/unit/i.
|
package/LICENSE.md
CHANGED
|
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
|
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright ©
|
|
10
|
+
Copyright © 2022 [Jonny Burger](https://jonny.io)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ The software is provided "as is", without warranty of any kind, express or impli
|
|
|
32
32
|
|
|
33
33
|
### Support
|
|
34
34
|
|
|
35
|
-
Support is provided on a best-we-can-do basis via GitHub Issues.
|
|
35
|
+
Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
package/README.md
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
# @remotion/lambda
|
|
2
2
|
|
|
3
|
-
This package provides Node.JS APIs and a CLI for rendering Remotion videos on AWS Lambda.
|
|
4
|
-
|
|
5
|
-
Visit the `#lambda` channel on Remotions Discord to chat about Lambda.
|
|
6
|
-
|
|
7
|
-
## Lambda restrictions
|
|
8
|
-
|
|
9
|
-
Note the following restrictions are put in place by AWS Lambda:
|
|
10
|
-
|
|
11
|
-
- Only 512 MB of data can be written to disk.
|
|
12
|
-
- A maximum of 3000 ([or 1000 or 500 dependending on the region](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html)) lambdas can be spawned in a short amount of time.
|
|
3
|
+
This package provides Node.JS APIs and a CLI for rendering Remotion videos on AWS Lambda. See https://v3.remotion.dev/docs/lambda for documentation.
|
|
File without changes
|
|
File without changes
|
|
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const bundler_1 = require("@remotion/bundler");
|
|
6
7
|
const fs_1 = __importDefault(require("fs"));
|
|
7
8
|
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const quit_1 = require("../cli/helpers/quit");
|
|
8
10
|
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
9
|
-
const esbuild = require("esbuild");
|
|
10
11
|
const zl = require("zip-lib");
|
|
11
|
-
const quit_1 = require("../cli/helpers/quit");
|
|
12
12
|
const bundleLambda = async () => {
|
|
13
13
|
var _a;
|
|
14
14
|
const outdir = path_1.default.join(__dirname, '..', `build-render`);
|
|
@@ -19,7 +19,7 @@ const bundleLambda = async () => {
|
|
|
19
19
|
((_a = fs_1.default.rmSync) !== null && _a !== void 0 ? _a : fs_1.default.rmdirSync)(outdir, { recursive: true });
|
|
20
20
|
fs_1.default.mkdirSync(outdir, { recursive: true });
|
|
21
21
|
const template = require.resolve(path_1.default.join(__dirname, '..', 'functions', 'index'));
|
|
22
|
-
await esbuild.build({
|
|
22
|
+
await bundler_1.BundlerInternals.esbuild.build({
|
|
23
23
|
platform: 'node',
|
|
24
24
|
target: 'node14',
|
|
25
25
|
bundle: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/admin/bundle-lambda.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,mEAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/admin/bundle-lambda.ts"],"names":[],"mappings":";;;;;AAAA,+CAAmD;AACnD,4CAAoB;AACpB,gDAAwB;AACxB,8CAAyC;AACzC,mEAAyD;AACzD,8BAA+B;AAE/B,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;;IAC/B,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC1D,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,IAAI;KACf,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE9C,CAAC,MAAA,YAAE,CAAC,MAAM,mCAAI,YAAE,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACvD,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAC/B,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAChD,CAAC;IAEF,MAAM,0BAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QACpC,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO;QACP,WAAW,EAAE,CAAC,QAAQ,CAAC;KACvB,CAAC,CAAC;IAEH,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,gCAAY,CAAC,CAAC;IAC7C,YAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,YAAY,EAAE;KACZ,IAAI,CAAC,GAAG,EAAE;IACV,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC/B,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,IAAA,WAAI,EAAC,CAAC,CAAC,CAAC;AACT,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -2,63 +2,80 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
4
4
|
const aws_policies_1 = require("aws-policies");
|
|
5
|
+
const __1 = require("..");
|
|
5
6
|
const quit_1 = require("../cli/helpers/quit");
|
|
6
|
-
const regions_1 = require("../regions");
|
|
7
7
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
8
8
|
const constants_1 = require("../shared/constants");
|
|
9
9
|
const runtimes = ['nodejs14.x'];
|
|
10
|
+
const archictures = ['arm64', 'x86_64'];
|
|
10
11
|
const layerInfo = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
arm64: {
|
|
13
|
+
'ap-northeast-1': [],
|
|
14
|
+
'ap-south-1': [],
|
|
15
|
+
'ap-southeast-1': [],
|
|
16
|
+
'ap-southeast-2': [],
|
|
17
|
+
'eu-central-1': [],
|
|
18
|
+
'eu-west-1': [],
|
|
19
|
+
'eu-west-2': [],
|
|
20
|
+
'us-east-1': [],
|
|
21
|
+
'us-east-2': [],
|
|
22
|
+
'us-west-2': [],
|
|
23
|
+
},
|
|
24
|
+
x86_64: {
|
|
25
|
+
'ap-northeast-1': [],
|
|
26
|
+
'ap-south-1': [],
|
|
27
|
+
'ap-southeast-1': [],
|
|
28
|
+
'ap-southeast-2': [],
|
|
29
|
+
'eu-central-1': [],
|
|
30
|
+
'eu-west-1': [],
|
|
31
|
+
'eu-west-2': [],
|
|
32
|
+
'us-east-1': [],
|
|
33
|
+
'us-east-2': [],
|
|
34
|
+
'us-west-2': [],
|
|
35
|
+
},
|
|
21
36
|
};
|
|
22
37
|
const makeLayerPublic = async () => {
|
|
23
38
|
const layers = ['remotion', 'ffmpeg', 'chromium'];
|
|
24
|
-
for (const
|
|
25
|
-
for (const
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
layerInfo[region]
|
|
39
|
+
for (const architecture of archictures) {
|
|
40
|
+
for (const region of (0, __1.getRegions)()) {
|
|
41
|
+
for (const layer of layers) {
|
|
42
|
+
const layerName = `remotion-binaries-${layer}-${architecture}`;
|
|
43
|
+
const { Version, LayerArn } = await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PublishLayerVersionCommand({
|
|
44
|
+
Content: {
|
|
45
|
+
S3Bucket: 'remotionlambda-binaries-' + region,
|
|
46
|
+
S3Key: `remotion-layer-${layer}-v4-${architecture}.zip`,
|
|
47
|
+
},
|
|
48
|
+
LayerName: layerName,
|
|
49
|
+
LicenseInfo: layer === 'chromium'
|
|
50
|
+
? 'Compiled from Chromium source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
|
|
51
|
+
: layer === 'ffmpeg'
|
|
52
|
+
? 'Compiled from FFMPEG source. Read FFMPEG license: https://ffmpeg.org/legal.html'
|
|
53
|
+
: 'Contains UNIX .so files and Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
|
|
54
|
+
CompatibleRuntimes: runtimes,
|
|
55
|
+
Description: constants_1.CURRENT_VERSION,
|
|
56
|
+
}));
|
|
57
|
+
await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.AddLayerVersionPermissionCommand({
|
|
58
|
+
Action: aws_policies_1.lambda.GetLayerVersion,
|
|
59
|
+
LayerName: layerName,
|
|
60
|
+
Principal: '*',
|
|
61
|
+
VersionNumber: Version,
|
|
62
|
+
StatementId: 'public-layer',
|
|
63
|
+
}));
|
|
64
|
+
if (!layerInfo[architecture][region]) {
|
|
65
|
+
layerInfo[architecture][region] = [];
|
|
66
|
+
}
|
|
67
|
+
if (!LayerArn) {
|
|
68
|
+
throw new Error('layerArn is null');
|
|
69
|
+
}
|
|
70
|
+
if (!Version) {
|
|
71
|
+
throw new Error('Version is null');
|
|
72
|
+
}
|
|
73
|
+
layerInfo[architecture][region].push({
|
|
74
|
+
layerArn: LayerArn,
|
|
75
|
+
version: Version,
|
|
76
|
+
});
|
|
77
|
+
console.log({ LayerArn, Version });
|
|
50
78
|
}
|
|
51
|
-
if (!LayerArn) {
|
|
52
|
-
throw new Error('layerArn is null');
|
|
53
|
-
}
|
|
54
|
-
if (!Version) {
|
|
55
|
-
throw new Error('Version is null');
|
|
56
|
-
}
|
|
57
|
-
layerInfo[region].push({
|
|
58
|
-
layerArn: LayerArn,
|
|
59
|
-
version: Version,
|
|
60
|
-
});
|
|
61
|
-
console.log({ LayerArn, Version });
|
|
62
79
|
}
|
|
63
80
|
}
|
|
64
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":";;AAAA,0DAGgC;AAChC,+CAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":";;AAAA,0DAGgC;AAChC,+CAAoC;AACpC,0BAA8B;AAC9B,8CAAyC;AACzC,uDAAsD;AACtD,mDAAoD;AAIpD,MAAM,QAAQ,GAAa,CAAC,YAAY,CAAC,CAAC;AAE1C,MAAM,WAAW,GAAyB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE9D,MAAM,SAAS,GAAiB;IAC/B,KAAK,EAAE;QACN,gBAAgB,EAAE,EAAE;QACpB,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,EAAE;QACpB,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,EAAE;QAClB,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;KACf;IACD,MAAM,EAAE;QACP,gBAAgB,EAAE,EAAE;QACpB,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,EAAE;QACpB,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,EAAE;QAClB,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;KACf;CACD,CAAC;AAEF,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE;IAClC,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;IAC3D,KAAK,MAAM,YAAY,IAAI,WAAW,EAAE;QACvC,KAAK,MAAM,MAAM,IAAI,IAAA,cAAU,GAAE,EAAE;YAClC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;gBAC3B,MAAM,SAAS,GAAG,qBAAqB,KAAK,IAAI,YAAY,EAAE,CAAC;gBAC/D,MAAM,EAAC,OAAO,EAAE,QAAQ,EAAC,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CAC7D,IAAI,0CAA0B,CAAC;oBAC9B,OAAO,EAAE;wBACR,QAAQ,EAAE,0BAA0B,GAAG,MAAM;wBAC7C,KAAK,EAAE,kBAAkB,KAAK,OAAO,YAAY,MAAM;qBACvD;oBACD,SAAS,EAAE,SAAS;oBACpB,WAAW,EACV,KAAK,KAAK,UAAU;wBACnB,CAAC,CAAC,gIAAgI;wBAClI,CAAC,CAAC,KAAK,KAAK,QAAQ;4BACpB,CAAC,CAAC,iFAAiF;4BACnF,CAAC,CAAC,4HAA4H;oBAChI,kBAAkB,EAAE,QAAQ;oBAC5B,WAAW,EAAE,2BAAe;iBAC5B,CAAC,CACF,CAAC;gBACF,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACjC,IAAI,gDAAgC,CAAC;oBACpC,MAAM,EAAE,qBAAM,CAAC,eAAe;oBAC9B,SAAS,EAAE,SAAS;oBACpB,SAAS,EAAE,GAAG;oBACd,aAAa,EAAE,OAAO;oBACtB,WAAW,EAAE,cAAc;iBAC3B,CAAC,CACF,CAAC;gBACF,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE;oBACrC,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;iBACrC;gBAED,IAAI,CAAC,QAAQ,EAAE;oBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;iBACpC;gBAED,IAAI,CAAC,OAAO,EAAE;oBACb,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;iBACnC;gBAED,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;oBACpC,QAAQ,EAAE,QAAQ;oBAClB,OAAO,EAAE,OAAO;iBAChB,CAAC,CAAC;gBACH,OAAO,CAAC,GAAG,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAC;aACjC;SACD;KACD;AACF,CAAC,CAAC;AAEF,eAAe,EAAE;KACf,IAAI,CAAC,GAAG,EAAE;IACV,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,IAAA,WAAI,EAAC,CAAC,CAAC,CAAC;AACT,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/api/clean-items.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
-
|
|
2
|
+
import { LambdaArchitecture } from '../shared/validate-architecture';
|
|
3
|
+
export declare const createFunction: ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, alreadyCreated, retentionInDays, architecture, ephemerealStorageInMb, }: {
|
|
3
4
|
createCloudWatchLogGroup: boolean;
|
|
4
5
|
region: AwsRegion;
|
|
5
6
|
zipFile: string;
|
|
@@ -9,6 +10,8 @@ export declare const createFunction: ({ createCloudWatchLogGroup, region, zipFil
|
|
|
9
10
|
timeoutInSeconds: number;
|
|
10
11
|
alreadyCreated: boolean;
|
|
11
12
|
retentionInDays: number;
|
|
13
|
+
ephemerealStorageInMb: number;
|
|
14
|
+
architecture: LambdaArchitecture;
|
|
12
15
|
}) => Promise<{
|
|
13
16
|
FunctionName: string;
|
|
14
17
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-function.d.ts","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":"AAUA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"create-function.d.ts","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":"AAUA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAGnE,eAAO,MAAM,cAAc;8BAaA,OAAO;YACzB,SAAS;aACR,MAAM;kBACD,MAAM;eACT,MAAM;oBACD,MAAM;sBACJ,MAAM;oBACR,OAAO;qBACN,MAAM;2BACA,MAAM;kBACf,kBAAkB;;kBACN,MAAM;EAwDhC,CAAC"}
|
|
@@ -8,7 +8,7 @@ const defaults_1 = require("../defaults");
|
|
|
8
8
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
9
9
|
const hosted_layers_1 = require("../shared/hosted-layers");
|
|
10
10
|
const suggested_policy_1 = require("./iam-validation/suggested-policy");
|
|
11
|
-
const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, alreadyCreated, retentionInDays, }) => {
|
|
11
|
+
const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, alreadyCreated, retentionInDays, architecture, ephemerealStorageInMb, }) => {
|
|
12
12
|
if (createCloudWatchLogGroup) {
|
|
13
13
|
try {
|
|
14
14
|
await (0, aws_clients_1.getCloudWatchLogsClient)(region).send(new client_cloudwatch_logs_1.CreateLogGroupCommand({
|
|
@@ -40,8 +40,11 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
|
|
|
40
40
|
Description: 'Renders a Remotion video.',
|
|
41
41
|
MemorySize: memorySizeInMb,
|
|
42
42
|
Timeout: timeoutInSeconds,
|
|
43
|
-
Layers: hosted_layers_1.hostedLayers[region].map(({ layerArn, version }) => `${layerArn}:${version}`),
|
|
44
|
-
Architectures: [
|
|
43
|
+
Layers: hosted_layers_1.hostedLayers[architecture][region].map(({ layerArn, version }) => `${layerArn}:${version}`),
|
|
44
|
+
Architectures: [architecture],
|
|
45
|
+
EphemeralStorage: {
|
|
46
|
+
Size: ephemerealStorageInMb,
|
|
47
|
+
},
|
|
45
48
|
}));
|
|
46
49
|
await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PutFunctionEventInvokeConfigCommand({
|
|
47
50
|
MaximumRetryAttempts: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-function.js","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":";;;AAAA,4EAGyC;AACzC,0DAGgC;AAChC,2BAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"create-function.js","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":";;;AAAA,4EAGyC;AACzC,0DAGgC;AAChC,2BAAgC;AAChC,0CAA6C;AAE7C,uDAA+E;AAC/E,2DAAqD;AAErD,wEAA4D;AAErD,MAAM,cAAc,GAAG,KAAK,EAAE,EACpC,wBAAwB,EACxB,MAAM,EACN,OAAO,EACP,YAAY,EACZ,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,qBAAqB,GAarB,EAAmC,EAAE;IACrC,IAAI,wBAAwB,EAAE;QAC7B,IAAI;YACH,MAAM,IAAA,qCAAuB,EAAC,MAAM,CAAC,CAAC,IAAI,CACzC,IAAI,8CAAqB,CAAC;gBACzB,YAAY,EAAE,GAAG,2BAAgB,GAAG,YAAY,EAAE;aAClD,CAAC,CACF,CAAC;SACF;QAAC,OAAO,IAAI,EAAE;YACd,MAAM,GAAG,GAAG,IAAa,CAAC;YAC1B,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,EAAE;gBACtD,MAAM,GAAG,CAAC;aACV;SACD;QAED,MAAM,IAAA,qCAAuB,EAAC,MAAM,CAAC,CAAC,IAAI,CACzC,IAAI,kDAAyB,CAAC;YAC7B,YAAY,EAAE,GAAG,2BAAgB,GAAG,YAAY,EAAE;YAClD,eAAe;SACf,CAAC,CACF,CAAC;KACF;IAED,IAAI,cAAc,EAAE;QACnB,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,CAAC;KACpC;IAED,MAAM,EAAC,YAAY,EAAC,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACxD,IAAI,qCAAqB,CAAC;QACzB,IAAI,EAAE;YACL,OAAO,EAAE,IAAA,iBAAY,EAAC,OAAO,CAAC;SAC9B;QACD,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,eAAe;QACxB,IAAI,EAAE,gBAAgB,SAAS,SAAS,4BAAS,EAAE;QACnD,OAAO,EAAE,YAAY;QACrB,WAAW,EAAE,2BAA2B;QACxC,UAAU,EAAE,cAAc;QAC1B,OAAO,EAAE,gBAAgB;QACzB,MAAM,EAAE,4BAAY,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,CAC7C,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,GAAG,QAAQ,IAAI,OAAO,EAAE,CACjD;QACD,aAAa,EAAE,CAAC,YAAY,CAAC;QAC7B,gBAAgB,EAAE;YACjB,IAAI,EAAE,qBAAqB;SAC3B;KACD,CAAC,CACF,CAAC;IACF,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACjC,IAAI,mDAAmC,CAAC;QACvC,oBAAoB,EAAE,CAAC;QACvB,YAAY;KACZ,CAAC,CACF,CAAC;IAEF,OAAO,EAAC,YAAY,EAAE,YAAsB,EAAC,CAAC;AAC/C,CAAC,CAAC;AAhFW,QAAA,cAAc,kBAgFzB"}
|
|
@@ -8,7 +8,7 @@ export declare type DeleteFunctionInput = {
|
|
|
8
8
|
* @link https://v3.remotion.dev/docs/lambda/deletefunction
|
|
9
9
|
* @param options.region The region the function was deployed to.
|
|
10
10
|
* @param options.functionName The name of the function.
|
|
11
|
-
* @returns {Promise<
|
|
11
|
+
* @returns {Promise<void>} Nothing. Throws if the function failed to delete.
|
|
12
12
|
*/
|
|
13
13
|
export declare const deleteFunction: ({ region, functionName, }: DeleteFunctionInput) => Promise<void>;
|
|
14
14
|
//# sourceMappingURL=delete-function.d.ts.map
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ const aws_clients_1 = require("../shared/aws-clients");
|
|
|
8
8
|
* @link https://v3.remotion.dev/docs/lambda/deletefunction
|
|
9
9
|
* @param options.region The region the function was deployed to.
|
|
10
10
|
* @param options.functionName The name of the function.
|
|
11
|
-
* @returns {Promise<
|
|
11
|
+
* @returns {Promise<void>} Nothing. Throws if the function failed to delete.
|
|
12
12
|
*/
|
|
13
13
|
const deleteFunction = async ({ region, functionName, }) => {
|
|
14
14
|
await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.DeleteFunctionCommand({
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/api/delete-site.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
import { LambdaArchitecture } from '../shared/validate-architecture';
|
|
2
3
|
export declare type DeployFunctionInput = {
|
|
3
4
|
createCloudWatchLogGroup: boolean;
|
|
4
5
|
cloudWatchLogRetentionPeriodInDays?: number;
|
|
5
6
|
region: AwsRegion;
|
|
6
7
|
timeoutInSeconds: number;
|
|
7
8
|
memorySizeInMb: number;
|
|
9
|
+
architecture: LambdaArchitecture;
|
|
10
|
+
diskSizeInMb?: number;
|
|
8
11
|
};
|
|
9
12
|
export declare type DeployFunctionOutput = {
|
|
10
13
|
functionName: string;
|
|
@@ -18,6 +21,8 @@ export declare type DeployFunctionOutput = {
|
|
|
18
21
|
* @param options.region The region you want to deploy your function to.
|
|
19
22
|
* @param options.timeoutInSeconds After how many seconds the lambda function should be killed if it does not end itself.
|
|
20
23
|
* @param options.memorySizeInMb How much memory should be allocated to the Lambda function.
|
|
24
|
+
* @param options.architecture The architecture Lambda should run on. One of x86_64 and x64
|
|
25
|
+
* @param options.diskSizeInMb The amount of storage the function should be allocated. The higher, the longer videos you can render. Default 512.
|
|
21
26
|
* @returns {Promise<DeployFunctionOutput>} An object that contains the `functionName` property
|
|
22
27
|
*/
|
|
23
28
|
export declare const deployFunction: (options: DeployFunctionInput) => Promise<DeployFunctionOutput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-function.d.ts","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy-function.d.ts","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AASjD,OAAO,EACN,kBAAkB,EAElB,MAAM,iCAAiC,CAAC;AAQzC,oBAAY,mBAAmB,GAAG;IACjC,wBAAwB,EAAE,OAAO,CAAC;IAClC,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,MAAM,EAAE,SAAS,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,kBAAkB,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,YACjB,mBAAmB,KAC1B,QAAQ,oBAAoB,CAuD9B,CAAC"}
|
|
@@ -5,7 +5,9 @@ const get_functions_1 = require("../api/get-functions");
|
|
|
5
5
|
const constants_1 = require("../shared/constants");
|
|
6
6
|
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
7
7
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
8
|
+
const validate_architecture_1 = require("../shared/validate-architecture");
|
|
8
9
|
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
10
|
+
const validate_disk_size_in_mb_1 = require("../shared/validate-disk-size-in-mb");
|
|
9
11
|
const validate_memory_size_1 = require("../shared/validate-memory-size");
|
|
10
12
|
const validate_retention_period_1 = require("../shared/validate-retention-period");
|
|
11
13
|
const validate_timeout_1 = require("../shared/validate-timeout");
|
|
@@ -18,15 +20,25 @@ const create_function_1 = require("./create-function");
|
|
|
18
20
|
* @param options.region The region you want to deploy your function to.
|
|
19
21
|
* @param options.timeoutInSeconds After how many seconds the lambda function should be killed if it does not end itself.
|
|
20
22
|
* @param options.memorySizeInMb How much memory should be allocated to the Lambda function.
|
|
23
|
+
* @param options.architecture The architecture Lambda should run on. One of x86_64 and x64
|
|
24
|
+
* @param options.diskSizeInMb The amount of storage the function should be allocated. The higher, the longer videos you can render. Default 512.
|
|
21
25
|
* @returns {Promise<DeployFunctionOutput>} An object that contains the `functionName` property
|
|
22
26
|
*/
|
|
23
27
|
const deployFunction = async (options) => {
|
|
24
|
-
var _a;
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const diskSizeInMb = (_a = options.diskSizeInMb) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB;
|
|
25
30
|
(0, validate_memory_size_1.validateMemorySize)(options.memorySizeInMb);
|
|
26
31
|
(0, validate_timeout_1.validateTimeout)(options.timeoutInSeconds);
|
|
27
32
|
(0, validate_aws_region_1.validateAwsRegion)(options.region);
|
|
28
33
|
(0, validate_retention_period_1.validateCloudWatchRetentionPeriod)(options.cloudWatchLogRetentionPeriodInDays);
|
|
29
|
-
|
|
34
|
+
(0, validate_architecture_1.validateArchitecture)(options.architecture);
|
|
35
|
+
(0, validate_disk_size_in_mb_1.validateDiskSizeInMb)(diskSizeInMb);
|
|
36
|
+
const fnNameRender = [
|
|
37
|
+
`${constants_1.RENDER_FN_PREFIX}${constants_1.CURRENT_VERSION}`,
|
|
38
|
+
`mem${options.memorySizeInMb}mb`,
|
|
39
|
+
`disk${diskSizeInMb}mb`,
|
|
40
|
+
`${options.timeoutInSeconds}sec`,
|
|
41
|
+
].join('-');
|
|
30
42
|
const accountId = await (0, get_account_id_1.getAccountId)({ region: options.region });
|
|
31
43
|
const fns = await (0, get_functions_1.getFunctions)({
|
|
32
44
|
compatibleOnly: true,
|
|
@@ -34,7 +46,8 @@ const deployFunction = async (options) => {
|
|
|
34
46
|
});
|
|
35
47
|
const alreadyDeployed = fns.find((f) => f.version === constants_1.CURRENT_VERSION &&
|
|
36
48
|
f.memorySizeInMb === options.memorySizeInMb &&
|
|
37
|
-
f.timeoutInSeconds === options.timeoutInSeconds
|
|
49
|
+
f.timeoutInSeconds === options.timeoutInSeconds &&
|
|
50
|
+
f.diskSizeInMb === diskSizeInMb);
|
|
38
51
|
const created = await (0, create_function_1.createFunction)({
|
|
39
52
|
createCloudWatchLogGroup: options.createCloudWatchLogGroup,
|
|
40
53
|
region: options.region,
|
|
@@ -43,8 +56,10 @@ const deployFunction = async (options) => {
|
|
|
43
56
|
accountId,
|
|
44
57
|
memorySizeInMb: options.memorySizeInMb,
|
|
45
58
|
timeoutInSeconds: options.timeoutInSeconds,
|
|
46
|
-
retentionInDays: (
|
|
59
|
+
retentionInDays: (_b = options.cloudWatchLogRetentionPeriodInDays) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_CLOUDWATCH_RETENTION_PERIOD,
|
|
47
60
|
alreadyCreated: Boolean(alreadyDeployed),
|
|
61
|
+
architecture: options.architecture,
|
|
62
|
+
ephemerealStorageInMb: diskSizeInMb,
|
|
48
63
|
});
|
|
49
64
|
if (!created.FunctionName) {
|
|
50
65
|
throw new Error('Lambda was created but has no name');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-function.js","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":";;;AAAA,wDAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"deploy-function.js","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":";;;AAAA,wDAAkD;AAElD,mDAK6B;AAC7B,mEAAyD;AACzD,6DAAsD;AACtD,2EAGyC;AACzC,uEAAgE;AAChE,iFAAwE;AACxE,yEAAkE;AAClE,mFAAsF;AACtF,iEAA2D;AAC3D,uDAAiD;AAiBjD;;;;;;;;;;;GAWG;AACI,MAAM,cAAc,GAAG,KAAK,EAClC,OAA4B,EACI,EAAE;;IAClC,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,2CAA+B,CAAC;IAE7E,IAAA,yCAAkB,EAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAA,kCAAe,EAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1C,IAAA,uCAAiB,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,IAAA,6DAAiC,EAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC9E,IAAA,4CAAoB,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3C,IAAA,+CAAoB,EAAC,YAAY,CAAC,CAAC;IAEnC,MAAM,YAAY,GAAG;QACpB,GAAG,4BAAgB,GAAG,2BAAe,EAAE;QACvC,MAAM,OAAO,CAAC,cAAc,IAAI;QAChC,OAAO,YAAY,IAAI;QACvB,GAAG,OAAO,CAAC,gBAAgB,KAAK;KAChC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACZ,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAY,EAAC,EAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAC,CAAC,CAAC;IAE/D,MAAM,GAAG,GAAG,MAAM,IAAA,4BAAY,EAAC;QAC9B,cAAc,EAAE,IAAI;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACtB,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,GAAG,CAAC,IAAI,CAC/B,CAAC,CAAC,EAAE,EAAE,CACL,CAAC,CAAC,OAAO,KAAK,2BAAe;QAC7B,CAAC,CAAC,cAAc,KAAK,OAAO,CAAC,cAAc;QAC3C,CAAC,CAAC,gBAAgB,KAAK,OAAO,CAAC,gBAAgB;QAC/C,CAAC,CAAC,YAAY,KAAK,YAAY,CAChC,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,IAAA,gCAAc,EAAC;QACpC,wBAAwB,EAAE,OAAO,CAAC,wBAAwB;QAC1D,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,gCAAY;QACrB,YAAY,EAAE,YAAY;QAC1B,SAAS;QACT,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;QAC1C,eAAe,EACd,MAAA,OAAO,CAAC,kCAAkC,mCAC1C,+CAAmC;QACpC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC;QACxC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,qBAAqB,EAAE,YAAY;KACnC,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QAC1B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACtD;IAED,OAAO;QACN,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC;KACxC,CAAC;AACH,CAAC,CAAC;AAzDW,QAAA,cAAc,kBAyDzB"}
|
|
File without changes
|
|
File without changes
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -26,7 +26,7 @@ const upload_dir_1 = require("./upload-dir");
|
|
|
26
26
|
const deploySite = async ({ bucketName, entryPoint, siteName, options, region, }) => {
|
|
27
27
|
var _a, _b, _c, _d;
|
|
28
28
|
(0, validate_aws_region_1.validateAwsRegion)(region);
|
|
29
|
-
(0, validate_bucketname_1.validateBucketName)(bucketName);
|
|
29
|
+
(0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: true });
|
|
30
30
|
const siteId = siteName !== null && siteName !== void 0 ? siteName : (0, random_hash_1.randomHash)();
|
|
31
31
|
(0, validate_site_name_1.validateSiteName)(siteId);
|
|
32
32
|
const bucketExists = await (0, bucket_exists_1.bucketExistsInRegion)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-site.js","sourceRoot":"","sources":["../../src/api/deploy-site.ts"],"names":[],"mappings":";;;AAAA,uCAAsD;AACtD,oDAA8C;AAE9C,uDAAiD;AACjD,mDAAgD;AAChD,6DAAsD;AACtD,uDAAqD;AACrD,uDAAiD;AACjD,uEAAgE;AAChE,uEAAiE;AACjE,qEAA8D;AAC9D,mDAAqD;AACrD,2DAAoD;AACpD,6CAA0D;AAoB1D;;;;;;;;GAQG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAChC,UAAU,EACV,UAAU,EACV,QAAQ,EACR,OAAO,EACP,MAAM,GACW,EAAoB,EAAE;;IACvC,IAAA,uCAAiB,EAAC,MAAM,CAAC,CAAC;IAC1B,IAAA,wCAAkB,EAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy-site.js","sourceRoot":"","sources":["../../src/api/deploy-site.ts"],"names":[],"mappings":";;;AAAA,uCAAsD;AACtD,oDAA8C;AAE9C,uDAAiD;AACjD,mDAAgD;AAChD,6DAAsD;AACtD,uDAAqD;AACrD,uDAAiD;AACjD,uEAAgE;AAChE,uEAAiE;AACjE,qEAA8D;AAC9D,mDAAqD;AACrD,2DAAoD;AACpD,6CAA0D;AAoB1D;;;;;;;;GAQG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAChC,UAAU,EACV,UAAU,EACV,QAAQ,EACR,OAAO,EACP,MAAM,GACW,EAAoB,EAAE;;IACvC,IAAA,uCAAiB,EAAC,MAAM,CAAC,CAAC;IAC1B,IAAA,wCAAkB,EAAC,UAAU,EAAE,EAAC,qBAAqB,EAAE,IAAI,EAAC,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAA,wBAAU,GAAE,CAAC;IACxC,IAAA,qCAAgB,EAAC,MAAM,CAAC,CAAC;IAEzB,MAAM,YAAY,GAAG,MAAM,IAAA,oCAAoB,EAAC;QAC/C,UAAU;QACV,MAAM;QACN,mBAAmB,EAAE,MAAM,IAAA,6BAAY,EAAC,EAAC,MAAM,EAAC,CAAC;KACjD,CAAC,CAAC;IACH,IAAI,CAAC,YAAY,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,2BAA2B,UAAU,SAAS,CAAC,CAAC;KAChE;IAED,MAAM,SAAS,GAAG,IAAA,uBAAW,EAAC,MAAM,CAAC,CAAC;IACtC,MAAM,IAAA,wBAAU,EAAC;QAChB,UAAU;QACV,kBAAkB,EAAE,GAAG,EAAE,CAAC,SAAS;QACnC,MAAM;QACN,QAAQ,EAAE,MAAM;KAChB,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAU,EAC/B,UAAU,EACV,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,EAC9C;QACC,UAAU,EAAE,IAAI,SAAS,GAAG;QAC5B,eAAe,EACd,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,oBAAS,CAAC,oBAAoB,EAAE;QAC7D,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,oBAAS,CAAC,iBAAiB,EAAE;KACtE,CACD,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,CAAC;QACjB,IAAA,sBAAS,EAAC;YACT,MAAM,EAAE,UAAU;YAClB,MAAM;YACN,GAAG,EAAE,OAAO;YACZ,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;YAC1D,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,QAAQ;SACjB,CAAC;QACF,IAAA,mCAAe,EAAC;YACf,MAAM;YACN,UAAU;SACV,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACN,QAAQ,EAAE,IAAA,4BAAc,EAAC,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAC,CAAC;QACzD,QAAQ,EAAE,MAAM;KAChB,CAAC;AACH,CAAC,CAAC;AA3DW,QAAA,UAAU,cA2DrB"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-media.d.ts","sourceRoot":"","sources":["../../src/api/download-media.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"download-media.d.ts","sourceRoot":"","sources":["../../src/api/download-media.ts"],"names":[],"mappings":"AAIA,OAAO,EAEN,sBAAsB,EACtB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,oBAAY,kBAAkB,GAAG;IAChC,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAClB,kBAAkB,KACvB,QAAQ,mBAAmB,CA8B7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,UApClB,kBAAkB,KACvB,QAAQ,mBAAmB,CAmCY,CAAC"}
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.downloadVideo = exports.downloadMedia = void 0;
|
|
7
7
|
const renderer_1 = require("@remotion/renderer");
|
|
8
|
-
const fs_1 = require("fs");
|
|
9
8
|
const path_1 = __importDefault(require("path"));
|
|
10
9
|
const expected_out_name_1 = require("../functions/helpers/expected-out-name");
|
|
11
10
|
const get_render_metadata_1 = require("../functions/helpers/get-render-metadata");
|
|
@@ -22,25 +21,16 @@ const downloadMedia = async (input) => {
|
|
|
22
21
|
region: input.region,
|
|
23
22
|
renderId: input.renderId,
|
|
24
23
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
24
|
+
const outputPath = path_1.default.resolve(process.cwd(), input.outPath);
|
|
25
|
+
renderer_1.RenderInternals.ensureOutputDirectory(outputPath);
|
|
26
|
+
const { key, renderBucketName } = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, input.bucketName);
|
|
27
|
+
const { sizeInBytes } = await (0, read_with_progress_1.lambdaDownloadFileWithProgress)({
|
|
28
|
+
bucketName: renderBucketName,
|
|
27
29
|
expectedBucketOwner,
|
|
28
|
-
key
|
|
30
|
+
key,
|
|
29
31
|
region: input.region,
|
|
30
32
|
onProgress: (_a = input.onProgress) !== null && _a !== void 0 ? _a : (() => undefined),
|
|
31
|
-
|
|
32
|
-
const outputPath = path_1.default.resolve(process.cwd(), input.outPath);
|
|
33
|
-
renderer_1.RenderInternals.ensureOutputDirectory(outputPath);
|
|
34
|
-
const writeStream = (0, fs_1.createWriteStream)(outputPath);
|
|
35
|
-
let sizeInBytes = 0;
|
|
36
|
-
await new Promise((resolve, reject) => {
|
|
37
|
-
readable
|
|
38
|
-
.on('data', (d) => {
|
|
39
|
-
sizeInBytes += d.length;
|
|
40
|
-
})
|
|
41
|
-
.pipe(writeStream)
|
|
42
|
-
.on('error', (err) => reject(err))
|
|
43
|
-
.on('close', () => resolve());
|
|
33
|
+
outputPath,
|
|
44
34
|
});
|
|
45
35
|
return {
|
|
46
36
|
outputPath,
|