@remotion/lambda 3.0.0-pnpm.295 → 3.0.0-rc.7
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 +1 -3
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +1 -22
- 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 -29
- 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 +4 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
- 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 +8 -2
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
- 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 +4 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
- 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 +4 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
- 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 +1 -1
- package/dist/functions/helpers/calculate-chunk-times.js +13 -10
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- 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 +1 -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 +17 -10
- 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 +2 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
- package/dist/shared/parse-lambda-timings-key.js +0 -0
- package/dist/shared/parse-lambda-timings-key.js.map +1 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-post-render-data.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/create-post-render-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"create-post-render-data.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/create-post-render-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAGN,cAAc,EACd,cAAc,EACd,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAC,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AAMhE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAIvD,eAAO,MAAM,oBAAoB;cAWtB,MAAM;yBACK,MAAM;YACnB,SAAS;oBACD,MAAM;oBACN,cAAc;cACpB,OAAO,EAAE;kBACL,MAAM;kBACN,MAAM;uBACD,iBAAiB,EAAE;gBAC1B,kBAAkB;6BA2F9B,CAAC"}
|
|
@@ -5,13 +5,13 @@ const estimate_price_1 = require("../../api/estimate-price");
|
|
|
5
5
|
const constants_1 = require("../../shared/constants");
|
|
6
6
|
const parse_lambda_timings_key_1 = require("../../shared/parse-lambda-timings-key");
|
|
7
7
|
const calculate_chunk_times_1 = require("./calculate-chunk-times");
|
|
8
|
-
const
|
|
8
|
+
const get_current_architecture_1 = require("./get-current-architecture");
|
|
9
9
|
const get_files_to_delete_1 = require("./get-files-to-delete");
|
|
10
10
|
const get_lambdas_invoked_stats_1 = require("./get-lambdas-invoked-stats");
|
|
11
11
|
const get_retry_stats_1 = require("./get-retry-stats");
|
|
12
12
|
const get_time_to_finish_1 = require("./get-time-to-finish");
|
|
13
13
|
const OVERHEAD_TIME_PER_LAMBDA = 100;
|
|
14
|
-
const createPostRenderData = ({ renderId,
|
|
14
|
+
const createPostRenderData = async ({ renderId, region, memorySizeInMb, renderMetadata, contents, timeToEncode, errorExplanations, timeToDelete, outputFile, }) => {
|
|
15
15
|
var _a;
|
|
16
16
|
const initializedKeys = contents.filter((c) => { var _a; return (_a = c.Key) === null || _a === void 0 ? void 0 : _a.startsWith((0, constants_1.lambdaTimingsPrefix)(renderId)); });
|
|
17
17
|
const parsedTimings = initializedKeys.map(({ Key }) => (0, parse_lambda_timings_key_1.parseLambdaTimingsKey)(Key));
|
|
@@ -22,11 +22,11 @@ const createPostRenderData = ({ renderId, bucketName, region, memorySizeInMb, re
|
|
|
22
22
|
durationInMiliseconds: times,
|
|
23
23
|
memorySizeInMb,
|
|
24
24
|
region,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
architecture: (0, get_current_architecture_1.getCurrentArchitecture)(),
|
|
26
|
+
lambdasInvoked: renderMetadata.estimatedTotalLambdaInvokations,
|
|
27
|
+
// We cannot determine the ephemeral storage size, so we
|
|
28
|
+
// overestimate the price, but will only have a miniscule effect (~0.2%)
|
|
29
|
+
diskSizeInMb: constants_1.MAX_EPHEMERAL_STORAGE_IN_MB,
|
|
30
30
|
});
|
|
31
31
|
if (!outputFile) {
|
|
32
32
|
throw new Error('Cannot wrap up without an output file in the S3 bucket.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-post-render-data.js","sourceRoot":"","sources":["../../../src/functions/helpers/create-post-render-data.ts"],"names":[],"mappings":";;;AACA,6DAAuD;AAEvD,
|
|
1
|
+
{"version":3,"file":"create-post-render-data.js","sourceRoot":"","sources":["../../../src/functions/helpers/create-post-render-data.ts"],"names":[],"mappings":";;;AACA,6DAAuD;AAEvD,sDAKgC;AAChC,oFAA4E;AAC5E,mEAA4D;AAE5D,yEAAkE;AAClE,+DAAuD;AACvD,2EAAmE;AACnE,uDAAgD;AAChD,6DAAqD;AAGrD,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAE9B,MAAM,oBAAoB,GAAG,KAAK,EAAE,EAC1C,QAAQ,EACR,MAAM,EACN,cAAc,EACd,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,UAAU,GAYV,EAAE,EAAE;;IACJ,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,WAC7C,OAAA,MAAA,CAAC,CAAC,GAAG,0CAAE,UAAU,CAAC,IAAA,+BAAmB,EAAC,QAAQ,CAAC,CAAC,CAAA,EAAA,CAChD,CAAC;IAEF,MAAM,aAAa,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CACnD,IAAA,gDAAqB,EAAC,GAAa,CAAC,CACpC,CAAC;IAEF,MAAM,KAAK,GAAG,aAAa;SACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,KAAK,GAAG,wBAAwB,CAAC;SAC3D,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAE1B,MAAM,IAAI,GAAG,IAAA,8BAAa,EAAC;QAC1B,qBAAqB,EAAE,KAAK;QAC5B,cAAc;QACd,MAAM;QACN,YAAY,EAAE,IAAA,iDAAsB,GAAE;QACtC,cAAc,EAAE,cAAc,CAAC,+BAA+B;QAC9D,wDAAwD;QACxD,wEAAwE;QACxE,YAAY,EAAE,uCAA2B;KACzC,CAAC,CAAC;IAEH,IAAI,CAAC,UAAU,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;KAC3E;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE3B,MAAM,YAAY,GAAG,IAAA,oCAAe,EAAC;QACpC,cAAc;QACd,YAAY,EAAE,OAAO;KACrB,CAAC,CAAC;IAEH,IAAI,CAAC,YAAY,EAAE;QAClB,MAAM,IAAI,SAAS,CAAC,qCAAqC,CAAC,CAAC;KAC3D;IAED,MAAM,UAAU,GAAG,QAAQ;SACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,IAAI,mCAAI,CAAC,CAAA,EAAA,CAAC;SACvB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAE7B,MAAM,EAAC,mBAAmB,EAAC,GAAG,IAAA,kDAAsB,EACnD,QAAQ,EACR,QAAQ,EACR,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,gCAAgC,mCAAI,IAAI,EACxD,cAAc,CAAC,WAAW,CAC1B,CAAC;IACF,MAAM,WAAW,GAAG,IAAA,+BAAa,EAAC,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC,CAAC;IAExD,IAAI,mBAAmB,KAAK,IAAI,EAAE;QACjC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACtD;IAED,MAAM,IAAI,GAAmB;QAC5B,IAAI,EAAE;YACL,QAAQ,EAAE,KAAK;YACf,UAAU,EACT,qGAAqG;YACtG,aAAa,EAAE,IAAI;YACnB,oBAAoB,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;gBACpD,QAAQ,EAAE,KAAK;gBACf,eAAe,EAAE,cAAc;aAC/B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;SACf;QACD,UAAU,EAAE,UAAU,CAAC,GAAG;QAC1B,YAAY;QACZ,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,cAAc,CAAC,WAAW;QACrC,OAAO;QACP,UAAU,EAAE,UAAU,CAAC,IAAI;QAC3B,UAAU;QACV,cAAc;QACd,cAAc,EAAE,IAAA,sCAAgB,EAAC;YAChC,UAAU,EAAE,cAAc,CAAC,WAAW;YACtC,QAAQ;SACR,CAAC,CAAC,MAAM;QACT,YAAY;QACZ,aAAa,EAAE,YAAY;QAC3B,kBAAkB,EAAE,IAAA,2CAAmB,EAAC;YACvC,QAAQ;YACR,QAAQ;YACR,IAAI,EAAE,eAAe;SACrB,CAAC;QACF,mBAAmB;QACnB,WAAW;KACX,CAAC;IAEF,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AA/GW,QAAA,oBAAoB,wBA+G/B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RenderMetadata } from '../../defaults';
|
|
2
|
-
export declare const getExpectedOutName: (renderMetadata: RenderMetadata) =>
|
|
1
|
+
import { OutNameOutput, RenderMetadata } from '../../defaults';
|
|
2
|
+
export declare const getExpectedOutName: (renderMetadata: RenderMetadata, bucketName: string) => OutNameOutput;
|
|
3
3
|
//# sourceMappingURL=expected-out-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expected-out-name.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/expected-out-name.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"expected-out-name.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/expected-out-name.ts"],"names":[],"mappings":"AAEA,OAAO,EAGN,aAAa,EAEb,cAAc,EACd,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,kBAAkB,mBACd,cAAc,cAClB,MAAM,KAChB,aA+BF,CAAC"}
|
|
@@ -3,15 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getExpectedOutName = void 0;
|
|
4
4
|
const renderer_1 = require("@remotion/renderer");
|
|
5
5
|
const defaults_1 = require("../../defaults");
|
|
6
|
-
const
|
|
6
|
+
const validate_outname_1 = require("../../shared/validate-outname");
|
|
7
|
+
const getExpectedOutName = (renderMetadata, bucketName) => {
|
|
7
8
|
if (renderMetadata.outName) {
|
|
8
|
-
|
|
9
|
+
(0, validate_outname_1.validateOutname)(renderMetadata.outName);
|
|
10
|
+
return (0, defaults_1.customOutName)(renderMetadata.renderId, bucketName, renderMetadata.outName);
|
|
9
11
|
}
|
|
10
12
|
if (renderMetadata.type === 'still') {
|
|
11
|
-
return
|
|
13
|
+
return {
|
|
14
|
+
renderBucketName: bucketName,
|
|
15
|
+
key: (0, defaults_1.outStillName)(renderMetadata.renderId, renderMetadata.imageFormat),
|
|
16
|
+
};
|
|
12
17
|
}
|
|
13
18
|
if (renderMetadata.type === 'video') {
|
|
14
|
-
return
|
|
19
|
+
return {
|
|
20
|
+
renderBucketName: bucketName,
|
|
21
|
+
key: (0, defaults_1.outName)(renderMetadata.renderId, renderer_1.RenderInternals.getFileExtensionFromCodec(renderMetadata.codec, 'final')),
|
|
22
|
+
};
|
|
15
23
|
}
|
|
16
24
|
throw new TypeError('no type passed');
|
|
17
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expected-out-name.js","sourceRoot":"","sources":["../../../src/functions/helpers/expected-out-name.ts"],"names":[],"mappings":";;;AAAA,iDAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"expected-out-name.js","sourceRoot":"","sources":["../../../src/functions/helpers/expected-out-name.ts"],"names":[],"mappings":";;;AAAA,iDAAmD;AAEnD,6CAMwB;AACxB,oEAA8D;AAEvD,MAAM,kBAAkB,GAAG,CACjC,cAA8B,EAC9B,UAAkB,EACF,EAAE;IAClB,IAAI,cAAc,CAAC,OAAO,EAAE;QAC3B,IAAA,kCAAe,EAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QACxC,OAAO,IAAA,wBAAa,EACnB,cAAc,CAAC,QAAQ,EACvB,UAAU,EACV,cAAc,CAAC,OAAO,CACtB,CAAC;KACF;IAED,IAAI,cAAc,CAAC,IAAI,KAAK,OAAO,EAAE;QACpC,OAAO;YACN,gBAAgB,EAAE,UAAU;YAC5B,GAAG,EAAE,IAAA,uBAAY,EAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC;SACtE,CAAC;KACF;IAED,IAAI,cAAc,CAAC,IAAI,KAAK,OAAO,EAAE;QACpC,OAAO;YACN,gBAAgB,EAAE,UAAU;YAC5B,GAAG,EAAE,IAAA,kBAAO,EACX,cAAc,CAAC,QAAQ,EACvB,0BAAe,CAAC,yBAAyB,CACxC,cAAc,CAAC,KAAc,EAC7B,OAAO,CACP,CACD;SACD,CAAC;KACF;IAED,MAAM,IAAI,SAAS,CAAC,gBAAgB,CAAC,CAAC;AACvC,CAAC,CAAC;AAlCW,QAAA,kBAAkB,sBAkC7B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsRegion } from '../..';
|
|
2
2
|
import { RenderMetadata } from '../../shared/constants';
|
|
3
|
-
export declare
|
|
4
|
-
contents: _Object[];
|
|
5
|
-
renderMetadata: RenderMetadata | null;
|
|
6
|
-
bucketName: string;
|
|
7
|
-
}) => {
|
|
3
|
+
export declare type OutputFileMetadata = {
|
|
8
4
|
url: string;
|
|
9
5
|
size: number;
|
|
10
6
|
lastModified: number;
|
|
11
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export declare const findOutputFileInBucket: ({ region, renderMetadata, bucketName, }: {
|
|
9
|
+
region: AwsRegion;
|
|
10
|
+
renderMetadata: RenderMetadata;
|
|
11
|
+
bucketName: string;
|
|
12
|
+
}) => Promise<OutputFileMetadata | null>;
|
|
12
13
|
//# sourceMappingURL=find-output-file-in-bucket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-output-file-in-bucket.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/find-output-file-in-bucket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find-output-file-in-bucket.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/find-output-file-in-bucket.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAItD,oBAAY,kBAAkB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,sBAAsB;YAK1B,SAAS;oBACD,cAAc;gBAClB,MAAM;MACf,QAAQ,kBAAkB,GAAG,IAAI,CA0BpC,CAAC"}
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.findOutputFileInBucket = void 0;
|
|
4
|
+
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
|
+
const aws_clients_1 = require("../../shared/aws-clients");
|
|
4
6
|
const expected_out_name_1 = require("./expected-out-name");
|
|
5
|
-
const
|
|
6
|
-
const findOutputFileInBucket = ({
|
|
7
|
-
var _a
|
|
8
|
-
const expectedOutName = renderMetadata === null ? null : (0, expected_out_name_1.getExpectedOutName)(renderMetadata);
|
|
9
|
-
const output = expectedOutName
|
|
10
|
-
? renderMetadata
|
|
11
|
-
? (_a = contents.find((c) => { var _a; return (_a = c.Key) === null || _a === void 0 ? void 0 : _a.includes(expectedOutName); })) !== null && _a !== void 0 ? _a : null
|
|
12
|
-
: null
|
|
13
|
-
: null;
|
|
14
|
-
if (!output) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
7
|
+
const get_output_url_from_metadata_1 = require("./get-output-url-from-metadata");
|
|
8
|
+
const findOutputFileInBucket = async ({ region, renderMetadata, bucketName, }) => {
|
|
9
|
+
var _a;
|
|
17
10
|
if (!renderMetadata) {
|
|
18
11
|
throw new Error('unexpectedly did not get renderMetadata');
|
|
19
12
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
const expectedOutData = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName);
|
|
14
|
+
try {
|
|
15
|
+
const head = await (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.HeadObjectCommand({
|
|
16
|
+
Bucket: expectedOutData.renderBucketName,
|
|
17
|
+
Key: expectedOutData.key,
|
|
18
|
+
}));
|
|
19
|
+
return {
|
|
20
|
+
lastModified: (_a = head.LastModified) === null || _a === void 0 ? void 0 : _a.getTime(),
|
|
21
|
+
size: head.ContentLength,
|
|
22
|
+
url: (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(renderMetadata, bucketName),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
if (err.name === 'NotFound') {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
throw err;
|
|
30
|
+
}
|
|
25
31
|
};
|
|
26
32
|
exports.findOutputFileInBucket = findOutputFileInBucket;
|
|
27
33
|
//# sourceMappingURL=find-output-file-in-bucket.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-output-file-in-bucket.js","sourceRoot":"","sources":["../../../src/functions/helpers/find-output-file-in-bucket.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"find-output-file-in-bucket.js","sourceRoot":"","sources":["../../../src/functions/helpers/find-output-file-in-bucket.ts"],"names":[],"mappings":";;;AAAA,kDAAqD;AAErD,0DAAqD;AAErD,2DAAuD;AACvD,iFAAwE;AAQjE,MAAM,sBAAsB,GAAG,KAAK,EAAE,EAC5C,MAAM,EACN,cAAc,EACd,UAAU,GAKV,EAAsC,EAAE;;IACxC,IAAI,CAAC,cAAc,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;KAC3D;IAED,MAAM,eAAe,GAAG,IAAA,sCAAkB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IAEvE,IAAI;QACH,MAAM,IAAI,GAAG,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC1C,IAAI,6BAAiB,CAAC;YACrB,MAAM,EAAE,eAAe,CAAC,gBAAgB;YACxC,GAAG,EAAE,eAAe,CAAC,GAAG;SACxB,CAAC,CACF,CAAC;QACF,OAAO;YACN,YAAY,EAAE,MAAA,IAAI,CAAC,YAAY,0CAAE,OAAO,EAAY;YACpD,IAAI,EAAE,IAAI,CAAC,aAAuB;YAClC,GAAG,EAAE,IAAA,uDAAwB,EAAC,cAAc,EAAE,UAAU,CAAC;SACzD,CAAC;KACF;IAAC,OAAO,GAAG,EAAE;QACb,IAAK,GAAsB,CAAC,IAAI,KAAK,UAAU,EAAE;YAChD,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,GAAG,CAAC;KACV;AACF,CAAC,CAAC;AAlCW,QAAA,sBAAsB,0BAkCjC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { openBrowser } from '@remotion/renderer';
|
|
2
|
-
export declare const getBrowserInstance: (shouldDumpIo: boolean) => ReturnType<typeof openBrowser>;
|
|
1
|
+
import { ChromiumOptions, openBrowser } from '@remotion/renderer';
|
|
2
|
+
export declare const getBrowserInstance: (shouldDumpIo: boolean, chromiumOptions: ChromiumOptions) => ReturnType<typeof openBrowser>;
|
|
3
3
|
//# sourceMappingURL=get-browser-instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-browser-instance.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-browser-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-browser-instance.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-browser-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAwBhE,eAAO,MAAM,kBAAkB,iBAChB,OAAO,mBACJ,eAAe,KAC9B,WAAW,kBAAkB,CAmC/B,CAAC"}
|
|
@@ -19,7 +19,7 @@ const waitForLaunched = () => {
|
|
|
19
19
|
check();
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
const getBrowserInstance = async (shouldDumpIo) => {
|
|
22
|
+
const getBrowserInstance = async (shouldDumpIo, chromiumOptions) => {
|
|
23
23
|
if (launching) {
|
|
24
24
|
await waitForLaunched();
|
|
25
25
|
if (!_browserInstance) {
|
|
@@ -32,9 +32,14 @@ const getBrowserInstance = async (shouldDumpIo) => {
|
|
|
32
32
|
}
|
|
33
33
|
launching = true;
|
|
34
34
|
const execPath = await (0, get_chromium_executable_path_1.executablePath)();
|
|
35
|
+
const actualChromiumOptions = {
|
|
36
|
+
gl: 'swiftshader',
|
|
37
|
+
...chromiumOptions,
|
|
38
|
+
};
|
|
35
39
|
_browserInstance = await (0, renderer_1.openBrowser)('chrome', {
|
|
36
40
|
browserExecutable: execPath,
|
|
37
41
|
shouldDumpIo,
|
|
42
|
+
chromiumOptions: actualChromiumOptions,
|
|
38
43
|
});
|
|
39
44
|
_browserInstance.on('disconnected', () => {
|
|
40
45
|
console.log('Browser disconnected / crashed');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-browser-instance.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-browser-instance.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"get-browser-instance.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-browser-instance.ts"],"names":[],"mappings":";;;AAAA,iDAAgE;AAEhE,iFAA8D;AAE9D,IAAI,gBAA8D,CAAC;AAEnE,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,MAAM,eAAe,GAAG,GAAG,EAAE;IAC5B,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,MAAM,KAAK,GAAG,GAAG,EAAE,CAClB,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,SAAS,EAAE;gBACd,OAAO,EAAE,CAAC;aACV;iBAAM;gBACN,KAAK,EAAE,CAAC;aACR;QACF,CAAC,EAAE,EAAE,CAAC,CAAC;QAER,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACvE,KAAK,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,kBAAkB,GAAG,KAAK,EACtC,YAAqB,EACrB,eAAgC,EACC,EAAE;IACnC,IAAI,SAAS,EAAE;QACd,MAAM,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,gBAAgB,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;SACtC;QAED,OAAO,gBAAgB,CAAC;KACxB;IAED,IAAI,gBAAgB,EAAE;QACrB,OAAO,gBAAgB,CAAC;KACxB;IAED,SAAS,GAAG,IAAI,CAAC;IAEjB,MAAM,QAAQ,GAAG,MAAM,IAAA,6CAAc,GAAE,CAAC;IAExC,MAAM,qBAAqB,GAAoB;QAC9C,EAAE,EAAE,aAAa;QACjB,GAAG,eAAe;KAClB,CAAC;IAEF,gBAAgB,GAAG,MAAM,IAAA,sBAAW,EAAC,QAAQ,EAAE;QAC9C,iBAAiB,EAAE,QAAQ;QAC3B,YAAY;QACZ,eAAe,EAAE,qBAAqB;KACtC,CAAC,CAAC;IACH,gBAAgB,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE;QACxC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;QAC9C,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QACjD,gBAAgB,GAAG,IAAI,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,SAAS,GAAG,KAAK,CAAC;IAClB,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAtCW,QAAA,kBAAkB,sBAsC7B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const executablePath: () => Promise<string>;
|
|
1
|
+
export declare const executablePath: () => Promise<string | undefined>;
|
|
2
2
|
//# sourceMappingURL=get-chromium-executable-path.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chromium-executable-path.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-chromium-executable-path.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc,QAAa,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"get-chromium-executable-path.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-chromium-executable-path.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc,QAAa,QAAQ,MAAM,GAAG,SAAS,CAEjE,CAAC"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chromium-executable-path.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-chromium-executable-path.ts"],"names":[],"mappings":";;;;AAAA,IACC,qCAAqC,CAAC,IAAI,CACzC,MAAA,OAAO,CAAC,GAAG,CAAC,iBAAiB,mCAAI,EAAE,CACnC,KAAK,IAAI,EACT;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,SAAS,EAAE;QAC9C,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,MAAM,CAAC;KACrC;IAED,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,mBAAmB,CAAC;CAClD;AAEM,MAAM,cAAc,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"get-chromium-executable-path.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-chromium-executable-path.ts"],"names":[],"mappings":";;;;AAAA,IACC,qCAAqC,CAAC,IAAI,CACzC,MAAA,OAAO,CAAC,GAAG,CAAC,iBAAiB,mCAAI,EAAE,CACnC,KAAK,IAAI,EACT;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,SAAS,EAAE;QAC9C,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,MAAM,CAAC;KACrC;IAED,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,mBAAmB,CAAC;CAClD;AAEM,MAAM,cAAc,GAAG,KAAK,IAAiC,EAAE;IACrE,OAAO,mBAAmB,CAAC;AAC5B,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-architecture.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-current-architecture.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AAEtE,eAAO,MAAM,sBAAsB,QAAO,kBAQzC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCurrentArchitecture = void 0;
|
|
4
|
+
const is_in_lambda_1 = require("../../shared/is-in-lambda");
|
|
5
|
+
const getCurrentArchitecture = () => {
|
|
6
|
+
if (!(0, is_in_lambda_1.isInsideLambda)()) {
|
|
7
|
+
throw new Error('Should not call getCurrentArchitecture() if not inside a lambda function');
|
|
8
|
+
}
|
|
9
|
+
return process.arch.includes('arm') ? 'arm64' : 'x86_64';
|
|
10
|
+
};
|
|
11
|
+
exports.getCurrentArchitecture = getCurrentArchitecture;
|
|
12
|
+
//# sourceMappingURL=get-current-architecture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-architecture.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-current-architecture.ts"],"names":[],"mappings":";;;AAAA,4DAAyD;AAGlD,MAAM,sBAAsB,GAAG,GAAuB,EAAE;IAC9D,IAAI,CAAC,IAAA,6BAAc,GAAE,EAAE;QACtB,MAAM,IAAI,KAAK,CACd,0EAA0E,CAC1E,CAAC;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC1D,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentRegionInFunction = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_in_lambda_1 = require("../../shared/is-in-lambda");
|
|
5
5
|
const getCurrentRegionInFunction = () => {
|
|
6
|
-
if (!
|
|
6
|
+
if (!(0, is_in_lambda_1.isInsideLambda)()) {
|
|
7
7
|
throw new Error('Should not call getCurrentRegion() if not inside a lambda function');
|
|
8
8
|
}
|
|
9
9
|
if (!process.env.AWS_REGION) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-region.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-current-region.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get-current-region.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-current-region.ts"],"names":[],"mappings":";;;AACA,4DAAyD;AAElD,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC9C,IAAI,CAAC,IAAA,6BAAc,GAAE,EAAE;QACtB,MAAM,IAAI,KAAK,CACd,oEAAoE,CACpE,CAAC;KACF;IAED,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;KACjE;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,UAAuB,CAAC;AAC5C,CAAC,CAAC;AAZW,QAAA,0BAA0B,8BAYrC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-output-url-from-metadata.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-output-url-from-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAI9C,eAAO,MAAM,wBAAwB,mBACpB,cAAc,cAClB,MAAM,WAMlB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOutputUrlFromMetadata = void 0;
|
|
4
|
+
const expected_out_name_1 = require("./expected-out-name");
|
|
5
|
+
const get_current_region_1 = require("./get-current-region");
|
|
6
|
+
const getOutputUrlFromMetadata = (renderMetadata, bucketName) => {
|
|
7
|
+
const outname = (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName);
|
|
8
|
+
return `https://s3.${(0, get_current_region_1.getCurrentRegionInFunction)()}.amazonaws.com/${outname.renderBucketName}/${outname.key}`;
|
|
9
|
+
};
|
|
10
|
+
exports.getOutputUrlFromMetadata = getOutputUrlFromMetadata;
|
|
11
|
+
//# sourceMappingURL=get-output-url-from-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-output-url-from-metadata.js","sourceRoot":"","sources":["../../../src/functions/helpers/get-output-url-from-metadata.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,6DAAgE;AAEzD,MAAM,wBAAwB,GAAG,CACvC,cAA8B,EAC9B,UAAkB,EACjB,EAAE;IACH,MAAM,OAAO,GAAG,IAAA,sCAAkB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IAC/D,OAAO,cAAc,IAAA,+CAA0B,GAAE,kBAChD,OAAO,CAAC,gBACT,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;AACnB,CAAC,CAAC;AARW,QAAA,wBAAwB,4BAQnC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-progress.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-progress.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"get-progress.d.ts","sourceRoot":"","sources":["../../../src/functions/helpers/get-progress.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAKN,cAAc,EAEd,MAAM,wBAAwB,CAAC;AAqBhC,eAAO,MAAM,WAAW;gBAQX,MAAM;cACR,MAAM;yBACK,MAAM;YACnB,SAAS;oBACD,MAAM;0BACA,MAAM;MACzB,QAAQ,cAAc,CAoOzB,CAAC"}
|
|
@@ -9,6 +9,7 @@ const expected_out_name_1 = require("./expected-out-name");
|
|
|
9
9
|
const find_output_file_in_bucket_1 = require("./find-output-file-in-bucket");
|
|
10
10
|
const format_costs_info_1 = require("./format-costs-info");
|
|
11
11
|
const get_cleanup_progress_1 = require("./get-cleanup-progress");
|
|
12
|
+
const get_current_architecture_1 = require("./get-current-architecture");
|
|
12
13
|
const get_current_region_1 = require("./get-current-region");
|
|
13
14
|
const get_encoding_metadata_1 = require("./get-encoding-metadata");
|
|
14
15
|
const get_final_encoding_status_1 = require("./get-final-encoding-status");
|
|
@@ -21,7 +22,7 @@ const get_time_to_finish_1 = require("./get-time-to-finish");
|
|
|
21
22
|
const inspect_errors_1 = require("./inspect-errors");
|
|
22
23
|
const io_1 = require("./io");
|
|
23
24
|
const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region, memorySizeInMb, timeoutInMiliseconds, }) => {
|
|
24
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
25
26
|
const postRenderData = await (0, get_post_render_data_1.getPostRenderData)({
|
|
26
27
|
bucketName,
|
|
27
28
|
region,
|
|
@@ -29,6 +30,7 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
29
30
|
expectedBucketOwner,
|
|
30
31
|
});
|
|
31
32
|
if (postRenderData) {
|
|
33
|
+
const outData = (0, expected_out_name_1.getExpectedOutName)(postRenderData.renderMetadata, bucketName);
|
|
32
34
|
return {
|
|
33
35
|
bucket: bucketName,
|
|
34
36
|
renderSize: postRenderData.renderSize,
|
|
@@ -63,7 +65,8 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
63
65
|
timeToInvokeLambdas: postRenderData.timeToInvokeLambdas,
|
|
64
66
|
overallProgress: 1,
|
|
65
67
|
retriesInfo: postRenderData.retriesInfo,
|
|
66
|
-
outKey:
|
|
68
|
+
outKey: outData.key,
|
|
69
|
+
outBucket: outData.renderBucketName,
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
const contents = await (0, io_1.lambdaLs)({
|
|
@@ -97,33 +100,40 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
97
100
|
expectedBucketOwner,
|
|
98
101
|
}),
|
|
99
102
|
]);
|
|
103
|
+
const outputFile = renderMetadata
|
|
104
|
+
? await (0, find_output_file_in_bucket_1.findOutputFileInBucket)({
|
|
105
|
+
bucketName,
|
|
106
|
+
renderMetadata,
|
|
107
|
+
region,
|
|
108
|
+
})
|
|
109
|
+
: null;
|
|
100
110
|
const accruedSoFar = Number((0, calculate_price_from_bucket_1.estimatePriceFromBucket)({
|
|
101
111
|
contents,
|
|
102
112
|
renderMetadata,
|
|
103
|
-
bucketName,
|
|
104
113
|
memorySizeInMb,
|
|
114
|
+
outputFileMetadata: outputFile,
|
|
115
|
+
architecture: (0, get_current_architecture_1.getCurrentArchitecture)(),
|
|
116
|
+
lambdasInvoked: (_a = renderMetadata === null || renderMetadata === void 0 ? void 0 : renderMetadata.estimatedRenderLambdaInvokations) !== null && _a !== void 0 ? _a : 0,
|
|
117
|
+
// We cannot determine the ephemeral storage size, so we
|
|
118
|
+
// overestimate the price, but will only have a miniscule effect (~0.2%)
|
|
119
|
+
diskSizeInMb: constants_1.MAX_EPHEMERAL_STORAGE_IN_MB,
|
|
105
120
|
}));
|
|
106
|
-
const outputFile = (0, find_output_file_in_bucket_1.findOutputFileInBucket)({
|
|
107
|
-
bucketName,
|
|
108
|
-
contents,
|
|
109
|
-
renderMetadata,
|
|
110
|
-
});
|
|
111
121
|
const cleanup = (0, get_cleanup_progress_1.getCleanupProgress)({
|
|
112
|
-
chunkCount: (
|
|
122
|
+
chunkCount: (_b = renderMetadata === null || renderMetadata === void 0 ? void 0 : renderMetadata.totalChunks) !== null && _b !== void 0 ? _b : 0,
|
|
113
123
|
contents,
|
|
114
|
-
output: (
|
|
124
|
+
output: (_c = outputFile === null || outputFile === void 0 ? void 0 : outputFile.url) !== null && _c !== void 0 ? _c : null,
|
|
115
125
|
renderId,
|
|
116
126
|
});
|
|
117
127
|
const timeToFinish = (0, get_time_to_finish_1.getTimeToFinish)({
|
|
118
|
-
lastModified: (
|
|
128
|
+
lastModified: (_d = outputFile === null || outputFile === void 0 ? void 0 : outputFile.lastModified) !== null && _d !== void 0 ? _d : null,
|
|
119
129
|
renderMetadata,
|
|
120
130
|
});
|
|
121
131
|
const chunks = contents.filter((c) => { var _a; return (_a = c.Key) === null || _a === void 0 ? void 0 : _a.startsWith((0, constants_1.chunkKey)(renderId)); });
|
|
122
|
-
const allChunks = chunks.length === ((
|
|
132
|
+
const allChunks = chunks.length === ((_e = renderMetadata === null || renderMetadata === void 0 ? void 0 : renderMetadata.totalChunks) !== null && _e !== void 0 ? _e : Infinity);
|
|
123
133
|
const renderSize = contents
|
|
124
134
|
.map((c) => { var _a; return (_a = c.Size) !== null && _a !== void 0 ? _a : 0; })
|
|
125
135
|
.reduce((a, b) => a + b, 0);
|
|
126
|
-
const lambdasInvokedStats = (0, get_lambdas_invoked_stats_1.getLambdasInvokedStats)(contents, renderId, (
|
|
136
|
+
const lambdasInvokedStats = (0, get_lambdas_invoked_stats_1.getLambdasInvokedStats)(contents, renderId, (_f = renderMetadata === null || renderMetadata === void 0 ? void 0 : renderMetadata.estimatedRenderLambdaInvokations) !== null && _f !== void 0 ? _f : null, (_g = renderMetadata === null || renderMetadata === void 0 ? void 0 : renderMetadata.startedDate) !== null && _g !== void 0 ? _g : null);
|
|
127
137
|
const retriesInfo = (0, get_retry_stats_1.getRetryStats)({
|
|
128
138
|
contents,
|
|
129
139
|
renderId,
|
|
@@ -135,7 +145,7 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
135
145
|
lambdaInvokeStatus: lambdasInvokedStats,
|
|
136
146
|
});
|
|
137
147
|
const chunkCount = outputFile
|
|
138
|
-
? (
|
|
148
|
+
? (_h = renderMetadata === null || renderMetadata === void 0 ? void 0 : renderMetadata.totalChunks) !== null && _h !== void 0 ? _h : 0
|
|
139
149
|
: chunks.length;
|
|
140
150
|
// We add a 20 second buffer for it, since AWS timeshifts can be quite a lot. Once it's 20sec over the limit, we consider it timed out
|
|
141
151
|
const isBeyondTimeout = renderMetadata &&
|
|
@@ -166,7 +176,7 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
166
176
|
renderId,
|
|
167
177
|
renderMetadata,
|
|
168
178
|
bucket: bucketName,
|
|
169
|
-
outputFile: (
|
|
179
|
+
outputFile: (_j = outputFile === null || outputFile === void 0 ? void 0 : outputFile.url) !== null && _j !== void 0 ? _j : null,
|
|
170
180
|
timeToFinish,
|
|
171
181
|
errors: allErrors,
|
|
172
182
|
fatalErrorEncountered: allErrors.some((f) => f.isFatal && !f.willRetry),
|
|
@@ -181,7 +191,7 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
181
191
|
type: 'absolute-time',
|
|
182
192
|
})
|
|
183
193
|
: null,
|
|
184
|
-
timeToInvokeLambdas: (
|
|
194
|
+
timeToInvokeLambdas: (_k = encodingStatus === null || encodingStatus === void 0 ? void 0 : encodingStatus.timeToInvoke) !== null && _k !== void 0 ? _k : lambdasInvokedStats.timeToInvokeLambdas,
|
|
185
195
|
overallProgress: (0, get_overall_progress_1.getOverallProgress)({
|
|
186
196
|
cleanup: cleanup ? cleanup.filesDeleted / cleanup.minFilesToDelete : 0,
|
|
187
197
|
encoding: finalEncodingStatus && renderMetadata
|
|
@@ -195,7 +205,12 @@ const getProgress = async ({ bucketName, renderId, expectedBucketOwner, region,
|
|
|
195
205
|
rendering: renderMetadata ? chunkCount / renderMetadata.totalChunks : 0,
|
|
196
206
|
}),
|
|
197
207
|
retriesInfo,
|
|
198
|
-
outKey: outputFile && renderMetadata
|
|
208
|
+
outKey: outputFile && renderMetadata
|
|
209
|
+
? (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName).key
|
|
210
|
+
: null,
|
|
211
|
+
outBucket: outputFile && renderMetadata
|
|
212
|
+
? (0, expected_out_name_1.getExpectedOutName)(renderMetadata, bucketName).renderBucketName
|
|
213
|
+
: null,
|
|
199
214
|
};
|
|
200
215
|
};
|
|
201
216
|
exports.getProgress = getProgress;
|