@remotion/lambda 3.0.0-wrappedup.222 → 3.0.2
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/.prettierrc.js +1 -2
- 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 +7 -2
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js +22 -8
- package/dist/api/create-function.js.map +1 -1
- package/dist/api/delete-function.d.ts +7 -6
- package/dist/api/delete-function.d.ts.map +1 -1
- package/dist/api/delete-function.js +2 -2
- package/dist/api/delete-function.js.map +1 -1
- package/dist/api/delete-site.d.ts +5 -5
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/delete-site.js +2 -2
- package/dist/api/delete-site.js.map +1 -1
- package/dist/api/deploy-function.d.ts +20 -10
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +28 -8
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-site.d.ts +3 -3
- package/dist/api/deploy-site.d.ts.map +1 -1
- package/dist/api/deploy-site.js +6 -8
- package/dist/api/deploy-site.js.map +1 -1
- package/dist/api/download-media.d.ts +19 -0
- package/dist/api/download-media.d.ts.map +1 -0
- package/dist/api/{download-video.js → download-media.js} +15 -21
- package/dist/api/download-media.js.map +1 -0
- package/dist/api/enable-s3-website.d.ts +0 -0
- package/dist/api/enable-s3-website.d.ts.map +1 -1
- package/dist/api/enable-s3-website.js +0 -1
- package/dist/api/enable-s3-website.js.map +1 -1
- package/dist/api/estimate-price.d.ts +18 -0
- package/dist/api/estimate-price.d.ts.map +1 -0
- package/dist/api/estimate-price.js +51 -0
- package/dist/api/estimate-price.js.map +1 -0
- package/dist/api/get-aws-client.d.ts +32 -0
- package/dist/api/get-aws-client.d.ts.map +1 -0
- package/dist/api/get-aws-client.js +49 -0
- package/dist/api/get-aws-client.js.map +1 -0
- package/dist/api/get-buckets.d.ts +0 -0
- package/dist/api/get-buckets.d.ts.map +1 -1
- package/dist/api/get-buckets.js +1 -7
- package/dist/api/get-buckets.js.map +1 -1
- package/dist/api/get-function-info.d.ts +4 -4
- package/dist/api/get-function-info.d.ts.map +1 -1
- package/dist/api/get-function-info.js +4 -2
- package/dist/api/get-function-info.js.map +1 -1
- package/dist/api/get-functions.d.ts +7 -6
- package/dist/api/get-functions.d.ts.map +1 -1
- package/dist/api/get-functions.js +30 -4
- package/dist/api/get-functions.js.map +1 -1
- package/dist/api/get-or-create-bucket.d.ts +5 -6
- package/dist/api/get-or-create-bucket.d.ts.map +1 -1
- package/dist/api/get-or-create-bucket.js +2 -2
- package/dist/api/get-or-create-bucket.js.map +1 -1
- package/dist/api/get-regions.d.ts +8 -0
- package/dist/api/get-regions.d.ts.map +1 -0
- package/dist/api/get-regions.js +14 -0
- package/dist/api/get-regions.js.map +1 -0
- package/dist/api/get-render-progress.d.ts +12 -10
- package/dist/api/get-render-progress.d.ts.map +1 -1
- package/dist/api/get-render-progress.js +6 -5
- package/dist/api/get-render-progress.js.map +1 -1
- package/dist/api/get-sites.d.ts +12 -4
- package/dist/api/get-sites.d.ts.map +1 -1
- package/dist/api/get-sites.js +8 -3
- package/dist/api/get-sites.js.map +1 -1
- 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 +13 -4
- package/dist/api/iam-validation/simulate.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate.js +7 -0
- package/dist/api/iam-validation/simulate.js.map +1 -1
- package/dist/api/iam-validation/suggested-policy.d.ts +2 -2
- package/dist/api/iam-validation/suggested-policy.d.ts.map +0 -0
- package/dist/api/iam-validation/suggested-policy.js +2 -2
- 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 +20 -0
- package/dist/api/presign-url.d.ts.map +1 -0
- package/dist/api/presign-url.js +47 -0
- package/dist/api/presign-url.js.map +1 -0
- package/dist/api/{render-video-on-lambda.d.ts → render-media-on-lambda.d.ts} +36 -27
- package/dist/api/render-media-on-lambda.d.ts.map +1 -0
- package/dist/api/{render-video-on-lambda.js → render-media-on-lambda.js} +19 -11
- package/dist/api/render-media-on-lambda.js.map +1 -0
- package/dist/api/render-still-on-lambda.d.ts +30 -22
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +10 -5
- 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 +6 -3
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -3
- 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 +34 -5
- 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 +1 -1
- package/dist/cli/commands/functions/index.js +7 -0
- package/dist/cli/commands/functions/index.js.map +1 -1
- 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 +7 -7
- 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 +1 -1
- package/dist/cli/commands/functions/rm.js +2 -2
- package/dist/cli/commands/functions/rm.js.map +1 -1
- package/dist/cli/commands/functions/rmall.d.ts +3 -0
- package/dist/cli/commands/functions/rmall.d.ts.map +1 -0
- package/dist/cli/commands/functions/rmall.js +41 -0
- package/dist/cli/commands/functions/rmall.js.map +1 -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 +3 -0
- package/dist/cli/commands/regions.d.ts.map +1 -0
- package/dist/cli/commands/regions.js +11 -0
- package/dist/cli/commands/regions.js.map +1 -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 +1 -1
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +50 -40
- 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 +1 -1
- package/dist/cli/commands/sites/create.js +14 -6
- package/dist/cli/commands/sites/create.js.map +1 -1
- package/dist/cli/commands/sites/index.d.ts +0 -0
- package/dist/cli/commands/sites/index.d.ts.map +1 -1
- package/dist/cli/commands/sites/index.js +4 -0
- package/dist/cli/commands/sites/index.js.map +1 -1
- package/dist/cli/commands/sites/ls.d.ts +0 -0
- package/dist/cli/commands/sites/ls.d.ts.map +1 -1
- package/dist/cli/commands/sites/ls.js +8 -5
- package/dist/cli/commands/sites/ls.js.map +1 -1
- package/dist/cli/commands/sites/rm.d.ts +0 -0
- package/dist/cli/commands/sites/rm.d.ts.map +1 -1
- package/dist/cli/commands/sites/rm.js +11 -3
- package/dist/cli/commands/sites/rm.js.map +1 -1
- package/dist/cli/commands/sites/rmall.d.ts +3 -0
- package/dist/cli/commands/sites/rmall.d.ts.map +1 -0
- package/dist/cli/commands/sites/rmall.js +49 -0
- package/dist/cli/commands/sites/rmall.js.map +1 -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 +65 -24
- 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 +13 -1
- 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 +1 -1
- package/dist/cli/helpers/confirm.js +4 -18
- package/dist/cli/helpers/confirm.js.map +1 -1
- 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 +5 -0
- package/dist/cli/helpers/yes-or-no.d.ts.map +1 -0
- package/dist/cli/helpers/yes-or-no.js +45 -0
- package/dist/cli/helpers/yes-or-no.js.map +1 -0
- package/dist/cli/index.d.ts +0 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +24 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/is-cli.d.ts +3 -0
- package/dist/cli/is-cli.d.ts.map +1 -0
- package/dist/cli/is-cli.js +11 -0
- package/dist/cli/is-cli.js.map +1 -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 +4 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -7
- package/dist/client.js.map +1 -1
- 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 +2 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.d.ts.map +1 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.js +18 -0
- package/dist/functions/helpers/best-frames-per-lambda-param.js.map +1 -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 +7 -10
- 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 +1 -1
- package/dist/functions/helpers/clean-tmpdir.js +0 -1
- package/dist/functions/helpers/clean-tmpdir.js.map +1 -1
- 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 +5 -4
- package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +9 -9
- package/dist/functions/helpers/create-post-render-data.js.map +1 -1
- package/dist/functions/helpers/delete-chunks.d.ts +1 -1
- package/dist/functions/helpers/delete-chunks.d.ts.map +1 -1
- package/dist/functions/helpers/delete-chunks.js +0 -0
- package/dist/functions/helpers/delete-chunks.js.map +1 -1
- 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 +14 -3
- 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 +1 -1
- package/dist/functions/helpers/get-post-render-data.d.ts.map +1 -1
- 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 +1 -1
- package/dist/functions/helpers/get-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-progress.js +33 -15
- 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 +2 -0
- package/dist/functions/helpers/print-concurrency-curve.d.ts.map +1 -0
- package/dist/functions/helpers/print-concurrency-curve.js +9 -0
- package/dist/functions/helpers/print-concurrency-curve.js.map +1 -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 +1 -1
- package/dist/functions/helpers/write-post-render-data.d.ts.map +1 -1
- 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 +44 -26
- 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 +27 -12
- 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 +5 -6
- 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 +25 -16
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +21 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -7
- 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 +10 -0
- package/dist/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +68 -31
- 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 +1 -1
- package/dist/shared/check-credentials.js +16 -4
- package/dist/shared/check-credentials.js.map +1 -1
- 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 +40 -17
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +19 -8
- 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 +1 -1
- package/dist/shared/docs-url.d.ts.map +1 -1
- package/dist/shared/docs-url.js +1 -1
- package/dist/shared/docs-url.js.map +1 -1
- 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 +1 -1
- package/dist/shared/is-in-lambda.d.ts.map +1 -1
- package/dist/shared/is-in-lambda.js +3 -2
- package/dist/shared/is-in-lambda.js.map +1 -1
- 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 +4 -0
- package/dist/shared/validate-bucketname.d.ts.map +1 -0
- package/dist/shared/validate-bucketname.js +18 -0
- package/dist/shared/validate-bucketname.js.map +1 -0
- 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 +2 -0
- package/dist/shared/validate-frames-per-lambda.d.ts.map +1 -0
- package/dist/shared/validate-frames-per-lambda.js +29 -0
- package/dist/shared/validate-frames-per-lambda.js.map +1 -0
- 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 +3 -0
- package/dist/shared/validate-outname.d.ts.map +1 -0
- package/dist/shared/validate-outname.js +27 -0
- package/dist/shared/validate-outname.js.map +1 -0
- package/dist/shared/validate-presign-expiration.d.ts +4 -0
- package/dist/shared/validate-presign-expiration.d.ts.map +1 -0
- package/dist/shared/validate-presign-expiration.js +30 -0
- package/dist/shared/validate-presign-expiration.js.map +1 -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 +2 -0
- package/dist/shared/validate-retention-period.d.ts.map +1 -0
- package/dist/shared/validate-retention-period.js +30 -0
- package/dist/shared/validate-retention-period.js.map +1 -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 +2 -0
- package/dist/shared/validate-site-name.d.ts.map +1 -0
- package/dist/shared/validate-site-name.js +18 -0
- package/dist/shared/validate-site-name.js.map +1 -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 +25 -21
- package/remotion-lambda-cli.js +1 -1
- package/remotionlambda.zip +0 -0
- package/dist/admin/replicate-binaries.d.ts +0 -2
- package/dist/admin/replicate-binaries.d.ts.map +0 -1
- package/dist/admin/replicate-binaries.js +0 -50
- package/dist/admin/replicate-binaries.js.map +0 -1
- package/dist/api/bundle-lambda.d.ts +0 -2
- package/dist/api/bundle-lambda.d.ts.map +0 -1
- package/dist/api/bundle-lambda.js +0 -34
- package/dist/api/bundle-lambda.js.map +0 -1
- package/dist/api/bundle-remotion.d.ts +0 -6
- package/dist/api/bundle-remotion.d.ts.map +0 -1
- package/dist/api/bundle-remotion.js +0 -12
- package/dist/api/bundle-remotion.js.map +0 -1
- package/dist/api/deploy-lambda.d.ts +0 -7
- package/dist/api/deploy-lambda.d.ts.map +0 -1
- package/dist/api/deploy-lambda.js +0 -48
- package/dist/api/deploy-lambda.js.map +0 -1
- package/dist/api/deploy-project.d.ts +0 -28
- package/dist/api/deploy-project.d.ts.map +0 -1
- package/dist/api/deploy-project.js +0 -58
- package/dist/api/deploy-project.js.map +0 -1
- package/dist/api/download-video.d.ts +0 -16
- package/dist/api/download-video.d.ts.map +0 -1
- package/dist/api/download-video.js.map +0 -1
- package/dist/api/ensure-lambda-binaries.d.ts +0 -11
- package/dist/api/ensure-lambda-binaries.d.ts.map +0 -1
- package/dist/api/ensure-lambda-binaries.js +0 -60
- package/dist/api/ensure-lambda-binaries.js.map +0 -1
- package/dist/api/get-deployed-lambdas.d.ts +0 -10
- package/dist/api/get-deployed-lambdas.d.ts.map +0 -1
- package/dist/api/get-deployed-lambdas.js +0 -31
- package/dist/api/get-deployed-lambdas.js.map +0 -1
- package/dist/api/get-function-version.d.ts +0 -7
- package/dist/api/get-function-version.d.ts.map +0 -1
- package/dist/api/get-function-version.js +0 -27
- package/dist/api/get-function-version.js.map +0 -1
- package/dist/api/iam-validation/required-permissions.d.ts +0 -6
- package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
- package/dist/api/iam-validation/required-permissions.js +0 -68
- package/dist/api/iam-validation/required-permissions.js.map +0 -1
- package/dist/api/render-video-on-lambda.d.ts.map +0 -1
- package/dist/api/render-video-on-lambda.js.map +0 -1
- package/dist/api/validate-frames-per-lambda.d.ts +0 -2
- package/dist/api/validate-frames-per-lambda.d.ts.map +0 -1
- package/dist/api/validate-frames-per-lambda.js +0 -26
- package/dist/api/validate-frames-per-lambda.js.map +0 -1
- package/dist/benchmark.d.ts +0 -2
- package/dist/benchmark.d.ts.map +0 -1
- package/dist/benchmark.js +0 -30
- package/dist/benchmark.js.map +0 -1
- package/dist/build-render/index.js +0 -126181
- package/dist/chunked-upload.d.ts +0 -2
- package/dist/chunked-upload.d.ts.map +0 -1
- package/dist/chunked-upload.js +0 -34
- package/dist/chunked-upload.js.map +0 -1
- package/dist/cleanup/cleanup-lambdas.d.ts +0 -7
- package/dist/cleanup/cleanup-lambdas.d.ts.map +0 -1
- package/dist/cleanup/cleanup-lambdas.js +0 -22
- package/dist/cleanup/cleanup-lambdas.js.map +0 -1
- package/dist/cleanup/s3-buckets.d.ts +0 -16
- package/dist/cleanup/s3-buckets.d.ts.map +0 -1
- package/dist/cleanup/s3-buckets.js +0 -59
- package/dist/cleanup/s3-buckets.js.map +0 -1
- package/dist/cli/cleanup.d.ts +0 -4
- package/dist/cli/cleanup.d.ts.map +0 -1
- package/dist/cli/cleanup.js +0 -77
- package/dist/cli/cleanup.js.map +0 -1
- package/dist/cli/commands/render.d.ts +0 -3
- package/dist/cli/commands/render.d.ts.map +0 -1
- package/dist/cli/commands/render.js +0 -75
- package/dist/cli/commands/render.js.map +0 -1
- package/dist/cli/commands/sites/upload.d.ts +0 -3
- package/dist/cli/commands/sites/upload.d.ts.map +0 -1
- package/dist/cli/commands/sites/upload.js +0 -111
- package/dist/cli/commands/sites/upload.js.map +0 -1
- package/dist/cli/deploy.d.ts +0 -3
- package/dist/cli/deploy.d.ts.map +0 -1
- package/dist/cli/deploy.js +0 -13
- package/dist/cli/deploy.js.map +0 -1
- package/dist/cli/policies.d.ts +0 -3
- package/dist/cli/policies.d.ts.map +0 -1
- package/dist/cli/policies.js +0 -59
- package/dist/cli/policies.js.map +0 -1
- package/dist/cli/render.d.ts +0 -3
- package/dist/cli/render.d.ts.map +0 -1
- package/dist/cli/render.js +0 -96
- package/dist/cli/render.js.map +0 -1
- package/dist/cli/upload.d.ts +0 -3
- package/dist/cli/upload.d.ts.map +0 -1
- package/dist/cli/upload.js +0 -112
- package/dist/cli/upload.js.map +0 -1
- package/dist/functions/chunk-optimization/write-profile.d.ts +0 -8
- package/dist/functions/chunk-optimization/write-profile.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/write-profile.js +0 -18
- package/dist/functions/chunk-optimization/write-profile.js.map +0 -1
- package/dist/functions/get-progress.d.ts +0 -27
- package/dist/functions/get-progress.d.ts.map +0 -1
- package/dist/functions/get-progress.js +0 -161
- package/dist/functions/get-progress.js.map +0 -1
- package/dist/functions/helpers/is-fatal-error.d.ts +0 -3
- package/dist/functions/helpers/is-fatal-error.d.ts.map +0 -1
- package/dist/functions/helpers/is-fatal-error.js +0 -8
- package/dist/functions/helpers/is-fatal-error.js.map +0 -1
- package/dist/functions/helpers/upload-browser-logs.d.ts +0 -11
- package/dist/functions/helpers/upload-browser-logs.d.ts.map +0 -1
- package/dist/functions/helpers/upload-browser-logs.js +0 -18
- package/dist/functions/helpers/upload-browser-logs.js.map +0 -1
- package/dist/pricing/calculate-price.d.ts +0 -15
- package/dist/pricing/calculate-price.d.ts.map +0 -1
- package/dist/pricing/calculate-price.js +0 -34
- package/dist/pricing/calculate-price.js.map +0 -1
- package/dist/rendering/chunked-concatenation.d.ts +0 -3
- package/dist/rendering/chunked-concatenation.d.ts.map +0 -1
- package/dist/rendering/chunked-concatenation.js +0 -38
- package/dist/rendering/chunked-concatenation.js.map +0 -1
- package/dist/rendering/create-named-pipe.d.ts +0 -8
- package/dist/rendering/create-named-pipe.d.ts.map +0 -1
- package/dist/rendering/create-named-pipe.js +0 -41
- package/dist/rendering/create-named-pipe.js.map +0 -1
- package/dist/rendering/mount-tmp-fs.d.ts +0 -2
- package/dist/rendering/mount-tmp-fs.d.ts.map +0 -1
- package/dist/rendering/mount-tmp-fs.js +0 -19
- package/dist/rendering/mount-tmp-fs.js.map +0 -1
- package/dist/run.d.ts +0 -2
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -104
- package/dist/run.js.map +0 -1
- package/dist/scripts2.d.ts +0 -1
- package/dist/scripts2.d.ts.map +0 -1
- package/dist/scripts2.js +0 -2
- package/dist/scripts2.js.map +0 -1
- package/dist/shared/download-with-progress.d.ts +0 -1
- package/dist/shared/download-with-progress.d.ts.map +0 -1
- package/dist/shared/download-with-progress.js +0 -2
- package/dist/shared/download-with-progress.js.map +0 -1
- package/dist/shared/get-file-extension-from-codec.d.ts +0 -3
- package/dist/shared/get-file-extension-from-codec.d.ts.map +0 -1
- package/dist/shared/get-file-extension-from-codec.js +0 -33
- package/dist/shared/get-file-extension-from-codec.js.map +0 -1
- package/dist/shared/parse-chunk-timing-key.d.ts +0 -7
- package/dist/shared/parse-chunk-timing-key.d.ts.map +0 -1
- package/dist/shared/parse-chunk-timing-key.js +0 -17
- package/dist/shared/parse-chunk-timing-key.js.map +0 -1
- package/dist/shared/tmpdir.d.ts +0 -3
- package/dist/shared/tmpdir.d.ts.map +0 -1
- package/dist/shared/tmpdir.js +0 -23
- package/dist/shared/tmpdir.js.map +0 -1
|
@@ -13,18 +13,18 @@ export declare type DeploySiteInput = {
|
|
|
13
13
|
enableCaching?: boolean;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type DeploySiteOutput = Promise<{
|
|
17
17
|
serveUrl: string;
|
|
18
18
|
siteName: string;
|
|
19
19
|
}>;
|
|
20
20
|
/**
|
|
21
21
|
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
22
|
-
* @link https://remotion
|
|
22
|
+
* @link https://remotion.dev/docs/lambda/deploysite
|
|
23
23
|
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
24
24
|
* @param {string} params.entryPoint An absolute path to the entry file of your Remotion project.
|
|
25
25
|
* @param {string} params.bucketName The name of the bucket to deploy your project into.
|
|
26
26
|
* @param {string} params.siteName The name of the folder in which the project gets deployed to.
|
|
27
27
|
* @param {object} params.options Further options, see documentation page for this function.
|
|
28
28
|
*/
|
|
29
|
-
export declare const deploySite: ({ bucketName, entryPoint, siteName, options, region, }: DeploySiteInput) =>
|
|
29
|
+
export declare const deploySite: ({ bucketName, entryPoint, siteName, options, region, }: DeploySiteInput) => DeploySiteOutput;
|
|
30
30
|
//# sourceMappingURL=deploy-site.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-site.d.ts","sourceRoot":"","sources":["../../src/api/deploy-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy-site.d.ts","sourceRoot":"","sources":["../../src/api/deploy-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAWjD,OAAO,EAAY,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE1D,oBAAY,eAAe,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE;QACT,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAC9C,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;QACvD,eAAe,CAAC,EAAE,iBAAiB,CAAC;QACpC,aAAa,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC;CACF,CAAC;AAEF,oBAAY,gBAAgB,GAAG,OAAO,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,2DAMpB,eAAe,qBAqDjB,CAAC"}
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -9,12 +9,14 @@ const get_account_id_1 = require("../shared/get-account-id");
|
|
|
9
9
|
const make_s3_url_1 = require("../shared/make-s3-url");
|
|
10
10
|
const random_hash_1 = require("../shared/random-hash");
|
|
11
11
|
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
12
|
+
const validate_bucketname_1 = require("../shared/validate-bucketname");
|
|
13
|
+
const validate_site_name_1 = require("../shared/validate-site-name");
|
|
12
14
|
const bucket_exists_1 = require("./bucket-exists");
|
|
13
15
|
const enable_s3_website_1 = require("./enable-s3-website");
|
|
14
16
|
const upload_dir_1 = require("./upload-dir");
|
|
15
17
|
/**
|
|
16
18
|
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
17
|
-
* @link https://remotion
|
|
19
|
+
* @link https://remotion.dev/docs/lambda/deploysite
|
|
18
20
|
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
19
21
|
* @param {string} params.entryPoint An absolute path to the entry file of your Remotion project.
|
|
20
22
|
* @param {string} params.bucketName The name of the bucket to deploy your project into.
|
|
@@ -24,12 +26,9 @@ const upload_dir_1 = require("./upload-dir");
|
|
|
24
26
|
const deploySite = async ({ bucketName, entryPoint, siteName, options, region, }) => {
|
|
25
27
|
var _a, _b, _c, _d;
|
|
26
28
|
(0, validate_aws_region_1.validateAwsRegion)(region);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (typeof siteName !== 'string' && typeof siteName !== 'undefined') {
|
|
31
|
-
throw new TypeError('The `projectName` argument must be a string if provided.');
|
|
32
|
-
}
|
|
29
|
+
(0, validate_bucketname_1.validateBucketName)(bucketName, { mustStartWithRemotion: true });
|
|
30
|
+
const siteId = siteName !== null && siteName !== void 0 ? siteName : (0, random_hash_1.randomHash)();
|
|
31
|
+
(0, validate_site_name_1.validateSiteName)(siteId);
|
|
33
32
|
const bucketExists = await (0, bucket_exists_1.bucketExistsInRegion)({
|
|
34
33
|
bucketName,
|
|
35
34
|
region,
|
|
@@ -38,7 +37,6 @@ const deploySite = async ({ bucketName, entryPoint, siteName, options, region, }
|
|
|
38
37
|
if (!bucketExists) {
|
|
39
38
|
throw new Error(`No bucket with the name ${bucketName} exists`);
|
|
40
39
|
}
|
|
41
|
-
const siteId = siteName !== null && siteName !== void 0 ? siteName : (0, random_hash_1.randomHash)();
|
|
42
40
|
const subFolder = (0, constants_1.getSitesKey)(siteId);
|
|
43
41
|
await (0, delete_site_1.deleteSite)({
|
|
44
42
|
bucketName,
|
|
@@ -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,
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LambdaReadFileProgress } from '../functions/helpers/read-with-progress';
|
|
2
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
3
|
+
export declare type DownloadMediaInput = {
|
|
4
|
+
region: AwsRegion;
|
|
5
|
+
bucketName: string;
|
|
6
|
+
renderId: string;
|
|
7
|
+
outPath: string;
|
|
8
|
+
onProgress?: LambdaReadFileProgress;
|
|
9
|
+
};
|
|
10
|
+
export declare type DownloadMediaOutput = {
|
|
11
|
+
outputPath: string;
|
|
12
|
+
sizeInBytes: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const downloadMedia: (input: DownloadMediaInput) => Promise<DownloadMediaOutput>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Renamed to downloadMedia()
|
|
17
|
+
*/
|
|
18
|
+
export declare const downloadVideo: (input: DownloadMediaInput) => Promise<DownloadMediaOutput>;
|
|
19
|
+
//# sourceMappingURL=download-media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -3,15 +3,14 @@ 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
|
-
exports.downloadVideo = void 0;
|
|
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");
|
|
12
11
|
const read_with_progress_1 = require("../functions/helpers/read-with-progress");
|
|
13
12
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
14
|
-
const
|
|
13
|
+
const downloadMedia = async (input) => {
|
|
15
14
|
var _a;
|
|
16
15
|
const expectedBucketOwner = await (0, get_account_id_1.getAccountId)({
|
|
17
16
|
region: input.region,
|
|
@@ -22,30 +21,25 @@ const downloadVideo = 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,
|
|
47
37
|
sizeInBytes,
|
|
48
38
|
};
|
|
49
39
|
};
|
|
50
|
-
exports.
|
|
51
|
-
|
|
40
|
+
exports.downloadMedia = downloadMedia;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Renamed to downloadMedia()
|
|
43
|
+
*/
|
|
44
|
+
exports.downloadVideo = exports.downloadMedia;
|
|
45
|
+
//# sourceMappingURL=download-media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-media.js","sourceRoot":"","sources":["../../src/api/download-media.ts"],"names":[],"mappings":";;;;;;AAAA,iDAAmD;AACnD,gDAAwB;AACxB,8EAA0E;AAC1E,kFAA2E;AAC3E,gFAGiD;AAEjD,6DAAsD;AAe/C,MAAM,aAAa,GAAG,KAAK,EACjC,KAAyB,EACM,EAAE;;IACjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,6BAAY,EAAC;QAC9C,MAAM,EAAE,KAAK,CAAC,MAAM;KACpB,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,MAAM,IAAA,uCAAiB,EAAC;QAC9C,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,mBAAmB;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACxB,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9D,0BAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClD,MAAM,EAAC,GAAG,EAAE,gBAAgB,EAAC,GAAG,IAAA,sCAAkB,EACjD,cAAc,EACd,KAAK,CAAC,UAAU,CAChB,CAAC;IACF,MAAM,EAAC,WAAW,EAAC,GAAG,MAAM,IAAA,mDAA8B,EAAC;QAC1D,UAAU,EAAE,gBAAgB;QAC5B,mBAAmB;QACnB,GAAG;QACH,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,MAAA,KAAK,CAAC,UAAU,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;QACjD,UAAU;KACV,CAAC,CAAC;IAEH,OAAO;QACN,UAAU;QACV,WAAW;KACX,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,aAAa,iBAgCxB;AAEF;;GAEG;AACU,QAAA,aAAa,GAAG,qBAAa,CAAC"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-s3-website.d.ts","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,eAAe;YAInB,SAAS;gBACL,MAAM;
|
|
1
|
+
{"version":3,"file":"enable-s3-website.d.ts","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,eAAe;YAInB,SAAS;gBACL,MAAM;mBAYlB,CAAC"}
|
|
@@ -7,7 +7,6 @@ const enableS3Website = async ({ region, bucketName, }) => {
|
|
|
7
7
|
await (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.PutBucketWebsiteCommand({
|
|
8
8
|
Bucket: bucketName,
|
|
9
9
|
WebsiteConfiguration: {
|
|
10
|
-
// TODO Upload a demo document
|
|
11
10
|
IndexDocument: {
|
|
12
11
|
Suffix: 'index.html',
|
|
13
12
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-s3-website.js","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":";;;AAAA,kDAA2D;AAE3D,uDAAkD;AAE3C,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,UAAU,GAIV,EAAE,EAAE;IACJ,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC7B,IAAI,mCAAuB,CAAC;QAC3B,MAAM,EAAE,UAAU;QAClB,oBAAoB,EAAE;YACrB,
|
|
1
|
+
{"version":3,"file":"enable-s3-website.js","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":";;;AAAA,kDAA2D;AAE3D,uDAAkD;AAE3C,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,UAAU,GAIV,EAAE,EAAE;IACJ,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC7B,IAAI,mCAAuB,CAAC;QAC3B,MAAM,EAAE,UAAU;QAClB,oBAAoB,EAAE;YACrB,aAAa,EAAE;gBACd,MAAM,EAAE,YAAY;aACpB;SACD;KACD,CAAC,CACF,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,eAAe,mBAiB1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
import { LambdaArchitecture } from '../shared/validate-architecture';
|
|
3
|
+
export declare type EstimatePriceInput = {
|
|
4
|
+
region: AwsRegion;
|
|
5
|
+
durationInMiliseconds: number;
|
|
6
|
+
memorySizeInMb: number;
|
|
7
|
+
diskSizeInMb: number;
|
|
8
|
+
architecture: LambdaArchitecture;
|
|
9
|
+
lambdasInvoked: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @description Calculates the AWS costs incurred for AWS Lambda given the region, execution duration and memory size.
|
|
14
|
+
* @link https://remotion.dev/docs/lambda/estimateprice
|
|
15
|
+
* @returns {number} Price in USD
|
|
16
|
+
*/
|
|
17
|
+
export declare const estimatePrice: ({ region, durationInMiliseconds, memorySizeInMb, diskSizeInMb, architecture, lambdasInvoked, }: EstimatePriceInput) => number;
|
|
18
|
+
//# sourceMappingURL=estimate-price.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-price.d.ts","sourceRoot":"","sources":["../../src/api/estimate-price.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EACN,kBAAkB,EAElB,MAAM,iCAAiC,CAAC;AAKzC,oBAAY,kBAAkB,GAAG;IAChC,MAAM,EAAE,SAAS,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,kBAAkB,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,mGAOvB,kBAAkB,KAAG,MA4DvB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimatePrice = void 0;
|
|
4
|
+
const defaults_1 = require("../defaults");
|
|
5
|
+
const price_per_1_s_1 = require("../pricing/price-per-1-s");
|
|
6
|
+
const validate_architecture_1 = require("../shared/validate-architecture");
|
|
7
|
+
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
8
|
+
const validate_disk_size_in_mb_1 = require("../shared/validate-disk-size-in-mb");
|
|
9
|
+
const validate_memory_size_1 = require("../shared/validate-memory-size");
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @description Calculates the AWS costs incurred for AWS Lambda given the region, execution duration and memory size.
|
|
13
|
+
* @link https://remotion.dev/docs/lambda/estimateprice
|
|
14
|
+
* @returns {number} Price in USD
|
|
15
|
+
*/
|
|
16
|
+
const estimatePrice = ({ region, durationInMiliseconds, memorySizeInMb, diskSizeInMb, architecture, lambdasInvoked, }) => {
|
|
17
|
+
(0, validate_memory_size_1.validateMemorySize)(memorySizeInMb);
|
|
18
|
+
(0, validate_aws_region_1.validateAwsRegion)(region);
|
|
19
|
+
(0, validate_architecture_1.validateArchitecture)(architecture);
|
|
20
|
+
(0, validate_disk_size_in_mb_1.validateDiskSizeInMb)(diskSizeInMb);
|
|
21
|
+
if (typeof durationInMiliseconds !== 'number') {
|
|
22
|
+
throw new TypeError(`Parameter 'durationInMiliseconds' must be a number but got ${typeof durationInMiliseconds}`);
|
|
23
|
+
}
|
|
24
|
+
if (Number.isNaN(durationInMiliseconds)) {
|
|
25
|
+
throw new TypeError(`Parameter 'durationInMiliseconds' must not be NaN but it is.`);
|
|
26
|
+
}
|
|
27
|
+
if (!Number.isFinite(durationInMiliseconds)) {
|
|
28
|
+
throw new TypeError(`Parameter 'durationInMiliseconds' must be finite but it is ${durationInMiliseconds}`);
|
|
29
|
+
}
|
|
30
|
+
if (durationInMiliseconds < 0) {
|
|
31
|
+
throw new TypeError(`Parameter 'durationInMiliseconds' must be over 0 but it is ${durationInMiliseconds}.`);
|
|
32
|
+
}
|
|
33
|
+
const durationPrice = architecture === 'x86_64'
|
|
34
|
+
? price_per_1_s_1.pricing[region]['Lambda Duration'].price
|
|
35
|
+
: price_per_1_s_1.pricing[region]['Lambda Duration-ARM'].price;
|
|
36
|
+
// In GB-second
|
|
37
|
+
const timeCostDollars = Number(durationPrice) *
|
|
38
|
+
((memorySizeInMb * durationInMiliseconds) / 1000 / 1024);
|
|
39
|
+
const diskSizePrice = architecture === 'x86_64'
|
|
40
|
+
? price_per_1_s_1.pricing[region]['Lambda Storage-Duration'].price
|
|
41
|
+
: price_per_1_s_1.pricing[region]['Lambda Storage-Duration-ARM'].price;
|
|
42
|
+
const chargedDiskSize = Math.max(0, diskSizeInMb - defaults_1.MIN_EPHEMERAL_STORAGE_IN_MB);
|
|
43
|
+
// In GB-second
|
|
44
|
+
const diskSizeDollars = chargedDiskSize *
|
|
45
|
+
Number(diskSizePrice) *
|
|
46
|
+
(durationInMiliseconds / 1000 / 1024);
|
|
47
|
+
const invocationCost = Number(price_per_1_s_1.pricing[region]['Lambda Requests'].price) * lambdasInvoked;
|
|
48
|
+
return Number((timeCostDollars + diskSizeDollars + invocationCost).toFixed(5));
|
|
49
|
+
};
|
|
50
|
+
exports.estimatePrice = estimatePrice;
|
|
51
|
+
//# sourceMappingURL=estimate-price.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate-price.js","sourceRoot":"","sources":["../../src/api/estimate-price.ts"],"names":[],"mappings":";;;AAAA,0CAAwD;AAExD,4DAAiD;AACjD,2EAGyC;AACzC,uEAAgE;AAChE,iFAAwE;AACxE,yEAAkE;AAUlE;;;;;GAKG;AACI,MAAM,aAAa,GAAG,CAAC,EAC7B,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,GACM,EAAU,EAAE;IAChC,IAAA,yCAAkB,EAAC,cAAc,CAAC,CAAC;IACnC,IAAA,uCAAiB,EAAC,MAAM,CAAC,CAAC;IAC1B,IAAA,4CAAoB,EAAC,YAAY,CAAC,CAAC;IACnC,IAAA,+CAAoB,EAAC,YAAY,CAAC,CAAC;IACnC,IAAI,OAAO,qBAAqB,KAAK,QAAQ,EAAE;QAC9C,MAAM,IAAI,SAAS,CAClB,8DAA8D,OAAO,qBAAqB,EAAE,CAC5F,CAAC;KACF;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE;QACxC,MAAM,IAAI,SAAS,CAClB,8DAA8D,CAC9D,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;QAC5C,MAAM,IAAI,SAAS,CAClB,8DAA8D,qBAAqB,EAAE,CACrF,CAAC;KACF;IAED,IAAI,qBAAqB,GAAG,CAAC,EAAE;QAC9B,MAAM,IAAI,SAAS,CAClB,8DAA8D,qBAAqB,GAAG,CACtF,CAAC;KACF;IAED,MAAM,aAAa,GAClB,YAAY,KAAK,QAAQ;QACxB,CAAC,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,KAAK;QAC1C,CAAC,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,qBAAqB,CAAC,CAAC,KAAK,CAAC;IAEjD,eAAe;IACf,MAAM,eAAe,GACpB,MAAM,CAAC,aAAa,CAAC;QACrB,CAAC,CAAC,cAAc,GAAG,qBAAqB,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAE1D,MAAM,aAAa,GAClB,YAAY,KAAK,QAAQ;QACxB,CAAC,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,yBAAyB,CAAC,CAAC,KAAK;QAClD,CAAC,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,6BAA6B,CAAC,CAAC,KAAK,CAAC;IAEzD,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,YAAY,GAAG,sCAA2B,CAC1C,CAAC;IACF,eAAe;IACf,MAAM,eAAe,GACpB,eAAe;QACf,MAAM,CAAC,aAAa,CAAC;QACrB,CAAC,qBAAqB,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAEvC,MAAM,cAAc,GACnB,MAAM,CAAC,uBAAO,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC;IAEnE,OAAO,MAAM,CACZ,CAAC,eAAe,GAAG,eAAe,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAC/D,CAAC;AACH,CAAC,CAAC;AAnEW,QAAA,aAAa,iBAmExB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as CloudWatchSDK from '@aws-sdk/client-cloudwatch-logs';
|
|
2
|
+
import * as IamSdk from '@aws-sdk/client-iam';
|
|
3
|
+
import * as LambdaSDK from '@aws-sdk/client-lambda';
|
|
4
|
+
import * as S3SDK from '@aws-sdk/client-s3';
|
|
5
|
+
import * as ServiceQuotasSDK from '@aws-sdk/client-service-quotas';
|
|
6
|
+
import { AwsRegion } from '../client';
|
|
7
|
+
import { ServiceMapping } from '../shared/aws-clients';
|
|
8
|
+
export declare type GetAwsClientInput<T extends keyof ServiceMapping> = {
|
|
9
|
+
region: AwsRegion;
|
|
10
|
+
service: T;
|
|
11
|
+
};
|
|
12
|
+
declare type SdkMapping = {
|
|
13
|
+
s3: typeof S3SDK;
|
|
14
|
+
cloudwatch: typeof CloudWatchSDK;
|
|
15
|
+
iam: typeof IamSdk;
|
|
16
|
+
lambda: typeof LambdaSDK;
|
|
17
|
+
servicequotas: typeof ServiceQuotasSDK;
|
|
18
|
+
};
|
|
19
|
+
export declare type GetAwsClientOutput<T extends keyof ServiceMapping> = {
|
|
20
|
+
client: ServiceMapping[T];
|
|
21
|
+
sdk: SdkMapping[T];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @description Gets the full AWS SDK and an instantiated client for an AWS service
|
|
25
|
+
* @link https://remotion.dev/docs/lambda/getawsclient
|
|
26
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
27
|
+
* @param {string} params.service One of `iam`, `s3`, `cloudwatch`, `iam` or `servicequotas`
|
|
28
|
+
* @returns {GetAwsClientOutput<T>} Returns `client` and `sdk` of a AWS service
|
|
29
|
+
*/
|
|
30
|
+
export declare const getAwsClient: <T extends keyof ServiceMapping>({ region, service, }: GetAwsClientInput<T>) => GetAwsClientOutput<T>;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=get-aws-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-aws-client.d.ts","sourceRoot":"","sources":["../../src/api/get-aws-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,gBAAgB,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAC;AACpC,OAAO,EAAmB,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAEvE,oBAAY,iBAAiB,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAC/D,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,aAAK,UAAU,GAAG;IACjB,EAAE,EAAE,OAAO,KAAK,CAAC;IACjB,UAAU,EAAE,OAAO,aAAa,CAAC;IACjC,GAAG,EAAE,OAAO,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,SAAS,CAAC;IACzB,aAAa,EAAE,OAAO,gBAAgB,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI;IAChE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC1B,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,uGAcxB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.getAwsClient = void 0;
|
|
23
|
+
const CloudWatchSDK = __importStar(require("@aws-sdk/client-cloudwatch-logs"));
|
|
24
|
+
const IamSdk = __importStar(require("@aws-sdk/client-iam"));
|
|
25
|
+
const LambdaSDK = __importStar(require("@aws-sdk/client-lambda"));
|
|
26
|
+
const S3SDK = __importStar(require("@aws-sdk/client-s3"));
|
|
27
|
+
const ServiceQuotasSDK = __importStar(require("@aws-sdk/client-service-quotas"));
|
|
28
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
29
|
+
/**
|
|
30
|
+
* @description Gets the full AWS SDK and an instantiated client for an AWS service
|
|
31
|
+
* @link https://remotion.dev/docs/lambda/getawsclient
|
|
32
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
33
|
+
* @param {string} params.service One of `iam`, `s3`, `cloudwatch`, `iam` or `servicequotas`
|
|
34
|
+
* @returns {GetAwsClientOutput<T>} Returns `client` and `sdk` of a AWS service
|
|
35
|
+
*/
|
|
36
|
+
const getAwsClient = ({ region, service, }) => {
|
|
37
|
+
return {
|
|
38
|
+
client: (0, aws_clients_1.getServiceClient)(region, service),
|
|
39
|
+
sdk: {
|
|
40
|
+
lambda: LambdaSDK,
|
|
41
|
+
cloudwatch: CloudWatchSDK,
|
|
42
|
+
iam: IamSdk,
|
|
43
|
+
s3: S3SDK,
|
|
44
|
+
servicequotas: ServiceQuotasSDK,
|
|
45
|
+
}[service],
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
exports.getAwsClient = getAwsClient;
|
|
49
|
+
//# sourceMappingURL=get-aws-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-aws-client.js","sourceRoot":"","sources":["../../src/api/get-aws-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+EAAiE;AACjE,4DAA8C;AAC9C,kEAAoD;AACpD,0DAA4C;AAC5C,iFAAmE;AAEnE,uDAAuE;AAoBvE;;;;;;GAMG;AACI,MAAM,YAAY,GAAG,CAAiC,EAC5D,MAAM,EACN,OAAO,GACe,EAAyB,EAAE;IACjD,OAAO;QACN,MAAM,EAAE,IAAA,8BAAgB,EAAC,MAAM,EAAE,OAAO,CAAC;QACzC,GAAG,EAAE;YACJ,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,aAAa;YACzB,GAAG,EAAE,MAAM;YACX,EAAE,EAAE,KAAK;YACT,aAAa,EAAE,gBAAgB;SAC/B,CAAC,OAAO,CAAC;KACV,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-buckets.d.ts","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,oBAAY,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-buckets.d.ts","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAIjD,oBAAY,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,WACxB,SAAS;qBAEA,kBAAkB,EAAE;EAoCrC,CAAC"}
|
package/dist/api/get-buckets.js
CHANGED
|
@@ -4,18 +4,12 @@ exports.getRemotionS3Buckets = void 0;
|
|
|
4
4
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
5
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
6
6
|
const constants_1 = require("../shared/constants");
|
|
7
|
-
// TODO: In the CLI, warn everytime this function gets called about more than 1 bucket.
|
|
8
7
|
const getRemotionS3Buckets = async (region) => {
|
|
9
8
|
const { Buckets } = await (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.ListBucketsCommand({}));
|
|
10
9
|
if (!Buckets) {
|
|
11
10
|
return { remotionBuckets: [] };
|
|
12
11
|
}
|
|
13
|
-
const remotionBuckets = Buckets.filter((b) => {
|
|
14
|
-
var _a;
|
|
15
|
-
return ((_a = b.Name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX)) &&
|
|
16
|
-
// TODO: Rename other buckets in Jonnys account bucket first
|
|
17
|
-
!b.Name.startsWith('remotion-binaries');
|
|
18
|
-
});
|
|
12
|
+
const remotionBuckets = Buckets.filter((b) => { var _a; return (_a = b.Name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX); });
|
|
19
13
|
const locations = await Promise.all(remotionBuckets.map((bucket) => {
|
|
20
14
|
return (0, aws_clients_1.getS3Client)(region).send(new client_s3_1.GetBucketLocationCommand({
|
|
21
15
|
Bucket: bucket.Name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-buckets.js","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":";;;AAAA,kDAAgF;AAEhF,uDAAkD;AAClD,mDAA2D;
|
|
1
|
+
{"version":3,"file":"get-buckets.js","sourceRoot":"","sources":["../../src/api/get-buckets.ts"],"names":[],"mappings":";;;AAAA,kDAAgF;AAEhF,uDAAkD;AAClD,mDAA2D;AAQpD,MAAM,oBAAoB,GAAG,KAAK,EACxC,MAAiB,EAGf,EAAE;IACJ,MAAM,EAAC,OAAO,EAAC,GAAG,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,8BAAkB,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7E,IAAI,CAAC,OAAO,EAAE;QACb,OAAO,EAAC,eAAe,EAAE,EAAE,EAAC,CAAC;KAC7B;IAED,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,WAC5C,OAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,UAAU,CAAC,kCAAsB,CAAC,CAAA,EAAA,CAC1C,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC9B,OAAO,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC9B,IAAI,oCAAwB,CAAC;YAC5B,MAAM,EAAE,MAAM,CAAC,IAAc;SAC7B,CAAC,CACF,CAAC;IACH,CAAC,CAAC,CACF,CAAC;IAEF,MAAM,mBAAmB,GAAG,eAAe,CAAC,GAAG,CAC9C,CAAC,MAAM,EAAE,CAAC,EAAsB,EAAE;;QACjC,OAAO;YACN,YAAY,EAAG,MAAM,CAAC,YAAqB,CAAC,OAAO,EAAE;YACrD,IAAI,EAAE,MAAM,CAAC,IAAc;YAC3B,4EAA4E;YAC5E,MAAM,EAAE,CAAC,MAAA,SAAS,CAAC,CAAC,CAAC,CAAC,kBAAkB,mCAAI,WAAW,CAAc;SACrE,CAAC;IACH,CAAC,CACD,CAAC;IACF,OAAO;QACN,eAAe,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;YACtD,OAAO,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC;QACjC,CAAC,CAAC;KACF,CAAC;AACH,CAAC,CAAC;AAvCW,QAAA,oBAAoB,wBAuC/B"}
|
|
@@ -5,18 +5,18 @@ export declare type FunctionInfo = {
|
|
|
5
5
|
timeoutInSeconds: number;
|
|
6
6
|
memorySizeInMb: number;
|
|
7
7
|
version: LambdaVersions | null;
|
|
8
|
+
diskSizeInMb: number;
|
|
8
9
|
};
|
|
9
|
-
declare type
|
|
10
|
+
export declare type GetFunctionInfoInput = {
|
|
10
11
|
region: AwsRegion;
|
|
11
12
|
functionName: string;
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* @description Given a region and function name, returns information about the function such as version, memory size and timeout.
|
|
15
|
-
* @link https://remotion
|
|
16
|
+
* @link https://remotion.dev/docs/lambda/getfunctioninfo
|
|
16
17
|
* @param {AwsRegion} options.region The region in which the function resides in.
|
|
17
18
|
* @param {string} options.functionName The name of the function
|
|
18
19
|
* @return {Promise<FunctionInfo>} Promise resolving to information about the function.
|
|
19
20
|
*/
|
|
20
|
-
export declare const getFunctionInfo: ({ region, functionName, }:
|
|
21
|
-
export {};
|
|
21
|
+
export declare const getFunctionInfo: ({ region, functionName, }: GetFunctionInfoInput) => Promise<FunctionInfo>;
|
|
22
22
|
//# sourceMappingURL=get-function-info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-function-info.d.ts","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,
|
|
1
|
+
{"version":3,"file":"get-function-info.d.ts","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAEN,cAAc,EACd,MAAM,qBAAqB,CAAC;AAI7B,oBAAY,YAAY,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IAClC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,8BAGzB,oBAAoB,KAAG,QAAQ,YAAY,CAwB7C,CAAC"}
|
|
@@ -3,17 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getFunctionInfo = void 0;
|
|
4
4
|
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
5
5
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
6
|
+
const constants_1 = require("../shared/constants");
|
|
6
7
|
const get_function_version_1 = require("../shared/get-function-version");
|
|
7
8
|
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
8
9
|
/**
|
|
9
10
|
* @description Given a region and function name, returns information about the function such as version, memory size and timeout.
|
|
10
|
-
* @link https://remotion
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/getfunctioninfo
|
|
11
12
|
* @param {AwsRegion} options.region The region in which the function resides in.
|
|
12
13
|
* @param {string} options.functionName The name of the function
|
|
13
14
|
* @return {Promise<FunctionInfo>} Promise resolving to information about the function.
|
|
14
15
|
*/
|
|
15
16
|
const getFunctionInfo = async ({ region, functionName, }) => {
|
|
16
|
-
var _a, _b;
|
|
17
|
+
var _a, _b, _c, _d, _e;
|
|
17
18
|
(0, validate_aws_region_1.validateAwsRegion)(region);
|
|
18
19
|
const [functionInfo, version] = await Promise.all([
|
|
19
20
|
(0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.GetFunctionCommand({
|
|
@@ -29,6 +30,7 @@ const getFunctionInfo = async ({ region, functionName, }) => {
|
|
|
29
30
|
timeoutInSeconds: (_a = functionInfo.Configuration) === null || _a === void 0 ? void 0 : _a.Timeout,
|
|
30
31
|
memorySizeInMb: (_b = functionInfo.Configuration) === null || _b === void 0 ? void 0 : _b.MemorySize,
|
|
31
32
|
version,
|
|
33
|
+
diskSizeInMb: (_e = (_d = (_c = functionInfo.Configuration) === null || _c === void 0 ? void 0 : _c.EphemeralStorage) === null || _d === void 0 ? void 0 : _d.Size) !== null && _e !== void 0 ? _e : constants_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
|
|
32
34
|
};
|
|
33
35
|
};
|
|
34
36
|
exports.getFunctionInfo = getFunctionInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-function-info.js","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAE1D,uDAAsD;
|
|
1
|
+
{"version":3,"file":"get-function-info.js","sourceRoot":"","sources":["../../src/api/get-function-info.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAE1D,uDAAsD;AACtD,mDAG6B;AAC7B,yEAAkE;AAClE,uEAAgE;AAehE;;;;;;GAMG;AACI,MAAM,eAAe,GAAG,KAAK,EAAE,EACrC,MAAM,EACN,YAAY,GACU,EAAyB,EAAE;;IACjD,IAAA,uCAAiB,EAAC,MAAM,CAAC,CAAC;IAE1B,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACjD,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CAC3B,IAAI,kCAAkB,CAAC;YACtB,YAAY,EAAE,YAAY;SAC1B,CAAC,CACF;QACD,IAAA,yCAAkB,EAAC;YAClB,YAAY;YACZ,MAAM;SACN,CAAC;KACF,CAAC,CAAC;IAEH,OAAO;QACN,YAAY;QACZ,gBAAgB,EAAE,MAAA,YAAY,CAAC,aAAa,0CAAE,OAAiB;QAC/D,cAAc,EAAE,MAAA,YAAY,CAAC,aAAa,0CAAE,UAAoB;QAChE,OAAO;QACP,YAAY,EACX,MAAA,MAAA,MAAA,YAAY,CAAC,aAAa,0CAAE,gBAAgB,0CAAE,IAAI,mCAClD,2CAA+B;KAChC,CAAC;AACH,CAAC,CAAC;AA3BW,QAAA,eAAe,mBA2B1B"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
2
|
import { FunctionInfo } from './get-function-info';
|
|
3
|
+
export declare type GetFunctionsInput = {
|
|
4
|
+
region: AwsRegion;
|
|
5
|
+
compatibleOnly: boolean;
|
|
6
|
+
};
|
|
3
7
|
/**
|
|
4
8
|
*
|
|
5
9
|
*
|
|
6
10
|
* @description Lists Remotion Lambda render functions deployed to AWS Lambda.
|
|
7
|
-
* @link https://remotion
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/getfunctions
|
|
8
12
|
* @param options.region The region of which the functions should be listed.
|
|
9
13
|
* @param options.compatibleOnly Whether only functions compatible with the installed version of Remotion Lambda should be returned.
|
|
10
|
-
* @returns An array with the objects containing information about the deployed functions.
|
|
14
|
+
* @returns {Promise<FunctionInfo[]>} An array with the objects containing information about the deployed functions.
|
|
11
15
|
*/
|
|
12
|
-
export declare const getFunctions: (options:
|
|
13
|
-
region: AwsRegion;
|
|
14
|
-
compatibleOnly: boolean;
|
|
15
|
-
}) => Promise<FunctionInfo[]>;
|
|
16
|
+
export declare const getFunctions: (options: GetFunctionsInput) => Promise<FunctionInfo[]>;
|
|
16
17
|
//# sourceMappingURL=get-functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-functions.d.ts","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-functions.d.ts","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAQjD,OAAO,EAAC,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAEjD,oBAAY,iBAAiB,GAAG;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CACxB,CAAC;AAoCF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,YACf,iBAAiB,KACxB,QAAQ,YAAY,EAAE,CA8CxB,CAAC"}
|
|
@@ -5,18 +5,42 @@ const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
|
5
5
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
6
6
|
const constants_1 = require("../shared/constants");
|
|
7
7
|
const get_function_version_1 = require("../shared/get-function-version");
|
|
8
|
+
const getAllFunctions = async ({ existing, nextMarker, region, }) => {
|
|
9
|
+
const allLambdas = [...existing];
|
|
10
|
+
const lambdas = await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.ListFunctionsCommand({
|
|
11
|
+
Marker: nextMarker !== null && nextMarker !== void 0 ? nextMarker : undefined,
|
|
12
|
+
}));
|
|
13
|
+
if (!lambdas.Functions) {
|
|
14
|
+
return allLambdas;
|
|
15
|
+
}
|
|
16
|
+
for (const lambda of lambdas.Functions) {
|
|
17
|
+
allLambdas.push(lambda);
|
|
18
|
+
}
|
|
19
|
+
if (lambdas.NextMarker) {
|
|
20
|
+
return getAllFunctions({
|
|
21
|
+
existing: allLambdas,
|
|
22
|
+
nextMarker: lambdas.NextMarker,
|
|
23
|
+
region,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return allLambdas;
|
|
27
|
+
};
|
|
8
28
|
/**
|
|
9
29
|
*
|
|
10
30
|
*
|
|
11
31
|
* @description Lists Remotion Lambda render functions deployed to AWS Lambda.
|
|
12
|
-
* @link https://remotion
|
|
32
|
+
* @link https://remotion.dev/docs/lambda/getfunctions
|
|
13
33
|
* @param options.region The region of which the functions should be listed.
|
|
14
34
|
* @param options.compatibleOnly Whether only functions compatible with the installed version of Remotion Lambda should be returned.
|
|
15
|
-
* @returns An array with the objects containing information about the deployed functions.
|
|
35
|
+
* @returns {Promise<FunctionInfo[]>} An array with the objects containing information about the deployed functions.
|
|
16
36
|
*/
|
|
17
37
|
const getFunctions = async (options) => {
|
|
18
|
-
const lambdas = await (
|
|
19
|
-
|
|
38
|
+
const lambdas = await getAllFunctions({
|
|
39
|
+
existing: [],
|
|
40
|
+
nextMarker: null,
|
|
41
|
+
region: options.region,
|
|
42
|
+
});
|
|
43
|
+
const remotionLambdas = lambdas.filter((f) => {
|
|
20
44
|
var _a;
|
|
21
45
|
return (_a = f.FunctionName) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.RENDER_FN_PREFIX);
|
|
22
46
|
});
|
|
@@ -33,11 +57,13 @@ const getFunctions = async (options) => {
|
|
|
33
57
|
}
|
|
34
58
|
}));
|
|
35
59
|
const list = remotionLambdas.map((lambda, i) => {
|
|
60
|
+
var _a, _b;
|
|
36
61
|
return {
|
|
37
62
|
functionName: lambda.FunctionName,
|
|
38
63
|
version: configs[i],
|
|
39
64
|
memorySizeInMb: lambda.MemorySize,
|
|
40
65
|
timeoutInSeconds: lambda.Timeout,
|
|
66
|
+
diskSizeInMb: (_b = (_a = lambda.EphemeralStorage) === null || _a === void 0 ? void 0 : _a.Size) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_EPHEMERAL_STORAGE_IN_MB,
|
|
41
67
|
};
|
|
42
68
|
});
|
|
43
69
|
if (!options.compatibleOnly) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-functions.js","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"get-functions.js","sourceRoot":"","sources":["../../src/api/get-functions.ts"],"names":[],"mappings":";;;AAAA,0DAGgC;AAEhC,uDAAsD;AACtD,mDAI6B;AAC7B,yEAAkE;AAQlE,MAAM,eAAe,GAAG,KAAK,EAAE,EAC9B,QAAQ,EACR,UAAU,EACV,MAAM,GAKN,EAAoC,EAAE;IACtC,MAAM,UAAU,GAA4B,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACjD,IAAI,oCAAoB,CAAC;QACxB,MAAM,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,SAAS;KAC/B,CAAC,CACF,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;QACvB,OAAO,UAAU,CAAC;KAClB;IAED,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,SAAS,EAAE;QACvC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACxB;IAED,IAAI,OAAO,CAAC,UAAU,EAAE;QACvB,OAAO,eAAe,CAAC;YACtB,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,MAAM;SACN,CAAC,CAAC;KACH;IAED,OAAO,UAAU,CAAC;AACnB,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACI,MAAM,YAAY,GAAG,KAAK,EAChC,OAA0B,EACA,EAAE;IAC5B,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC;QACrC,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,OAAO,CAAC,MAAM;KACtB,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;;QAC5C,OAAO,MAAA,CAAC,CAAC,YAAY,0CAAE,UAAU,CAAC,4BAAgB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAChC,eAAe,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE;QAChC,IAAI;YACH,MAAM,OAAO,GAAG,MAAM,IAAA,yCAAkB,EAAC;gBACxC,YAAY,EAAE,EAAE,CAAC,YAAsB;gBACvC,MAAM,EAAE,OAAO,CAAC,MAAM;aACtB,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;SACf;QAAC,OAAO,GAAG,EAAE;YACb,OAAO,IAAI,CAAC;SACZ;IACF,CAAC,CAAC,CACF,CAAC;IAEF,MAAM,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAgB,EAAE;;QAC5D,OAAO;YACN,YAAY,EAAE,MAAM,CAAC,YAAsB;YAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;YACnB,cAAc,EAAE,MAAM,CAAC,UAAoB;YAC3C,gBAAgB,EAAE,MAAM,CAAC,OAAiB;YAC1C,YAAY,EACX,MAAA,MAAA,MAAM,CAAC,gBAAgB,0CAAE,IAAI,mCAAI,2CAA+B;SACjE,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;QAC5B,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;QACxB,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;YAC5B,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,CAAC,CAAC,OAAO,KAAK,2BAAe,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,YAAY,gBAgDvB"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
-
declare type GetOrCreateBucketInput = {
|
|
2
|
+
export declare type GetOrCreateBucketInput = {
|
|
3
3
|
region: AwsRegion;
|
|
4
4
|
onBucketEnsured?: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare type
|
|
6
|
+
export declare type GetOrCreateBucketOutput = {
|
|
7
7
|
bucketName: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* @description Creates a bucket for Remotion Lambda in your S3 account. If one already exists, it will get returned instead.
|
|
11
|
-
* @link
|
|
11
|
+
* @link https://remotion.dev/docs/lambda/getorcreatebucket
|
|
12
12
|
* @param options.region The region in which you want your S3 bucket to reside in.
|
|
13
|
-
* @returns
|
|
13
|
+
* @returns {Promise<GetOrCreateBucketOutput>} An object containing the `bucketName`.
|
|
14
14
|
*/
|
|
15
|
-
export declare const getOrCreateBucket: (options: GetOrCreateBucketInput) => Promise<
|
|
16
|
-
export {};
|
|
15
|
+
export declare const getOrCreateBucket: (options: GetOrCreateBucketInput) => Promise<GetOrCreateBucketOutput>;
|
|
17
16
|
//# sourceMappingURL=get-or-create-bucket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-or-create-bucket.d.ts","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAOjD,
|
|
1
|
+
{"version":3,"file":"get-or-create-bucket.d.ts","sourceRoot":"","sources":["../../src/api/get-or-create-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAOjD,oBAAY,sBAAsB,GAAG;IACpC,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,YACpB,sBAAsB,KAC7B,QAAQ,uBAAuB,CA8BjC,CAAC"}
|