@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-architecture.js","sourceRoot":"","sources":["../../src/shared/validate-architecture.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;AAIjD,MAAM,oBAAoB,GAAG,CAAC,YAAqB,EAAE,EAAE;IAC7D,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE;QACrC,MAAM,IAAI,SAAS,CAClB,uDAAuD;YACtD,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC;KACF;IAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,YAAY,CAAC,EAAE;QACxD,MAAM,IAAI,SAAS,CAClB,uFAAuF,CACvF,CAAC;KACF;AACF,CAAC,CAAC;AAbW,QAAA,oBAAoB,wBAa/B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-bucketname.d.ts","sourceRoot":"","sources":["../../src/shared/validate-bucketname.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,eAClB,OAAO,WACV;IACR,qBAAqB,EAAE,OAAO,CAAC;CAC/B,SAwBD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateBucketName = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
const validateBucketName = (bucketName, options) => {
|
|
6
|
+
if (typeof bucketName !== 'string') {
|
|
7
|
+
throw new TypeError(`'bucketName' must be a string, but is ${JSON.stringify(bucketName)}`);
|
|
8
|
+
}
|
|
9
|
+
if (options.mustStartWithRemotion &&
|
|
10
|
+
!bucketName.startsWith(constants_1.REMOTION_BUCKET_PREFIX)) {
|
|
11
|
+
throw new Error(`The bucketName parameter must start with ${constants_1.REMOTION_BUCKET_PREFIX}.`);
|
|
12
|
+
}
|
|
13
|
+
if (!bucketName.match(/^(?=^.{3,63}$)(?!^(\d+\.)+\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])\.)*([a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])$)/)) {
|
|
14
|
+
throw new Error(`The bucket ${bucketName} `);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.validateBucketName = validateBucketName;
|
|
18
|
+
//# sourceMappingURL=validate-bucketname.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-bucketname.js","sourceRoot":"","sources":["../../src/shared/validate-bucketname.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AAE5C,MAAM,kBAAkB,GAAG,CACjC,UAAmB,EACnB,OAEC,EACA,EAAE;IACH,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QACnC,MAAM,IAAI,SAAS,CAClB,yCAAyC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CACrE,CAAC;KACF;IAED,IACC,OAAO,CAAC,qBAAqB;QAC7B,CAAC,UAAU,CAAC,UAAU,CAAC,kCAAsB,CAAC,EAC7C;QACD,MAAM,IAAI,KAAK,CACd,4CAA4C,kCAAsB,GAAG,CACrE,CAAC;KACF;IAED,IACC,CAAC,UAAU,CAAC,KAAK,CAChB,oHAAoH,CACpH,EACA;QACD,MAAM,IAAI,KAAK,CAAC,cAAc,UAAU,GAAG,CAAC,CAAC;KAC7C;AACF,CAAC,CAAC;AA5BW,QAAA,kBAAkB,sBA4B7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-disk-size-in-mb.d.ts","sourceRoot":"","sources":["../../src/shared/validate-disk-size-in-mb.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,iBAAkB,OAAO,SA+BzD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateDiskSizeInMb = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
const validateDiskSizeInMb = (diskSizeInMb) => {
|
|
6
|
+
if (typeof diskSizeInMb !== 'number') {
|
|
7
|
+
throw new TypeError(`parameter 'diskSizeInMb' must be a number, got a ${typeof diskSizeInMb}`);
|
|
8
|
+
}
|
|
9
|
+
if (Number.isNaN(diskSizeInMb)) {
|
|
10
|
+
throw new TypeError(`parameter 'diskSizeInMb' must not be NaN, but is`);
|
|
11
|
+
}
|
|
12
|
+
if (!Number.isFinite(diskSizeInMb)) {
|
|
13
|
+
throw new TypeError(`parameter 'diskSizeInMb' must be finite, but is ${diskSizeInMb}`);
|
|
14
|
+
}
|
|
15
|
+
if (diskSizeInMb < constants_1.MIN_EPHEMERAL_STORAGE_IN_MB ||
|
|
16
|
+
diskSizeInMb > constants_1.MAX_EPHEMERAL_STORAGE_IN_MB) {
|
|
17
|
+
throw new TypeError(`parameter 'diskSizeInMb' must be between ${constants_1.MIN_EPHEMERAL_STORAGE_IN_MB} and ${constants_1.MAX_EPHEMERAL_STORAGE_IN_MB}, but got ${diskSizeInMb}`);
|
|
18
|
+
}
|
|
19
|
+
if (diskSizeInMb % 1 !== 0) {
|
|
20
|
+
throw new TypeError(`parameter 'diskSizeInMb' must be an integer but got ${diskSizeInMb}`);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.validateDiskSizeInMb = validateDiskSizeInMb;
|
|
24
|
+
//# sourceMappingURL=validate-disk-size-in-mb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-disk-size-in-mb.js","sourceRoot":"","sources":["../../src/shared/validate-disk-size-in-mb.ts"],"names":[],"mappings":";;;AAAA,2CAGqB;AAEd,MAAM,oBAAoB,GAAG,CAAC,YAAqB,EAAE,EAAE;IAC7D,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE;QACrC,MAAM,IAAI,SAAS,CAClB,oDAAoD,OAAO,YAAY,EAAE,CACzE,CAAC;KACF;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;QAC/B,MAAM,IAAI,SAAS,CAAC,kDAAkD,CAAC,CAAC;KACxE;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;QACnC,MAAM,IAAI,SAAS,CAClB,mDAAmD,YAAY,EAAE,CACjE,CAAC;KACF;IAED,IACC,YAAY,GAAG,uCAA2B;QAC1C,YAAY,GAAG,uCAA2B,EACzC;QACD,MAAM,IAAI,SAAS,CAClB,4CAA4C,uCAA2B,QAAQ,uCAA2B,aAAa,YAAY,EAAE,CACrI,CAAC;KACF;IAED,IAAI,YAAY,GAAG,CAAC,KAAK,CAAC,EAAE;QAC3B,MAAM,IAAI,SAAS,CAClB,uDAAuD,YAAY,EAAE,CACrE,CAAC;KACF;AACF,CAAC,CAAC;AA/BW,QAAA,oBAAoB,wBA+B/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-frames-per-lambda.d.ts","sourceRoot":"","sources":["../../src/shared/validate-frames-per-lambda.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,oBAAqB,OAAO,SAsC/D,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateFramesPerLambda = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
const validateFramesPerLambda = (framesPerLambda) => {
|
|
6
|
+
if (framesPerLambda === null) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (framesPerLambda === undefined) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (typeof framesPerLambda !== 'number') {
|
|
13
|
+
throw new TypeError(`'framesPerLambda' needs to be a number, passed ${JSON.stringify(framesPerLambda)}`);
|
|
14
|
+
}
|
|
15
|
+
if (!Number.isFinite(framesPerLambda)) {
|
|
16
|
+
throw new TypeError(`'framesPerLambda' needs to be finite, passed ${framesPerLambda}`);
|
|
17
|
+
}
|
|
18
|
+
if (Number.isNaN(framesPerLambda)) {
|
|
19
|
+
throw new TypeError(`'framesPerLambda' needs to be NaN, passed ${framesPerLambda}`);
|
|
20
|
+
}
|
|
21
|
+
if (framesPerLambda % 1 !== 0) {
|
|
22
|
+
throw new TypeError(`'framesPerLambda' needs to be an integer, passed ${framesPerLambda}`);
|
|
23
|
+
}
|
|
24
|
+
if (framesPerLambda < constants_1.MINIMUM_FRAMES_PER_LAMBDA) {
|
|
25
|
+
throw new TypeError('The framesPerLambda needs to be at least 4.');
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.validateFramesPerLambda = validateFramesPerLambda;
|
|
29
|
+
//# sourceMappingURL=validate-frames-per-lambda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-frames-per-lambda.js","sourceRoot":"","sources":["../../src/shared/validate-frames-per-lambda.ts"],"names":[],"mappings":";;;AAAA,2CAAsD;AAE/C,MAAM,uBAAuB,GAAG,CAAC,eAAwB,EAAE,EAAE;IACnE,IAAI,eAAe,KAAK,IAAI,EAAE;QAC7B,OAAO;KACP;IAED,IAAI,eAAe,KAAK,SAAS,EAAE;QAClC,OAAO;KACP;IAED,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;QACxC,MAAM,IAAI,SAAS,CAClB,kDAAkD,IAAI,CAAC,SAAS,CAC/D,eAAe,CACf,EAAE,CACH,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QACtC,MAAM,IAAI,SAAS,CAClB,gDAAgD,eAAe,EAAE,CACjE,CAAC;KACF;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE;QAClC,MAAM,IAAI,SAAS,CAClB,6CAA6C,eAAe,EAAE,CAC9D,CAAC;KACF;IAED,IAAI,eAAe,GAAG,CAAC,KAAK,CAAC,EAAE;QAC9B,MAAM,IAAI,SAAS,CAClB,oDAAoD,eAAe,EAAE,CACrE,CAAC;KACF;IAED,IAAI,eAAe,GAAG,qCAAyB,EAAE;QAChD,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;KACnE;AACF,CAAC,CAAC;AAtCW,QAAA,uBAAuB,2BAsClC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-outname.d.ts","sourceRoot":"","sources":["../../src/shared/validate-outname.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAmBzC,eAAO,MAAM,eAAe,YAAa,YAAY,GAAG,SAAS,GAAG,IAAI,SAYvE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateOutname = void 0;
|
|
4
|
+
const validate_bucketname_1 = require("./validate-bucketname");
|
|
5
|
+
const validateS3Key = (s3Key) => {
|
|
6
|
+
if (typeof s3Key !== 'string') {
|
|
7
|
+
throw new TypeError('The S3 key must be a string. Passed an object of type ' + typeof s3Key);
|
|
8
|
+
}
|
|
9
|
+
if (!s3Key.match(/^([0-9a-zA-Z-!_.*'()/]+)$/g)) {
|
|
10
|
+
throw new Error("The S3 Key must match the RegExp `/([0-9a-zA-Z-!_.*'()/]+)/g`. You passed: " +
|
|
11
|
+
s3Key +
|
|
12
|
+
'. Check for invalid characters.');
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const validateOutname = (outName) => {
|
|
16
|
+
if (typeof outName === 'undefined' || outName === null) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (typeof outName === 'string') {
|
|
20
|
+
validateS3Key(outName);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
validateS3Key(outName.key);
|
|
24
|
+
(0, validate_bucketname_1.validateBucketName)(outName.bucketName, { mustStartWithRemotion: false });
|
|
25
|
+
};
|
|
26
|
+
exports.validateOutname = validateOutname;
|
|
27
|
+
//# sourceMappingURL=validate-outname.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-outname.js","sourceRoot":"","sources":["../../src/shared/validate-outname.ts"],"names":[],"mappings":";;;AACA,+DAAyD;AAEzD,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE;IACvC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC9B,MAAM,IAAI,SAAS,CAClB,wDAAwD,GAAG,OAAO,KAAK,CACvE,CAAC;KACF;IAED,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,CAAC,EAAE;QAC/C,MAAM,IAAI,KAAK,CACd,6EAA6E;YAC5E,KAAK;YACL,iCAAiC,CAClC,CAAC;KACF;AACF,CAAC,CAAC;AAEK,MAAM,eAAe,GAAG,CAAC,OAAwC,EAAE,EAAE;IAC3E,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,KAAK,IAAI,EAAE;QACvD,OAAO;KACP;IAED,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAChC,aAAa,CAAC,OAAO,CAAC,CAAC;QACvB,OAAO;KACP;IAED,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAA,wCAAkB,EAAC,OAAO,CAAC,UAAU,EAAE,EAAC,qBAAqB,EAAE,KAAK,EAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-presign-expiration.d.ts","sourceRoot":"","sources":["../../src/shared/validate-presign-expiration.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAC7C,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,eAAO,MAAM,yBAAyB,sBAAuB,OAAO,SA0CnE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validatePresignExpiration = exports.MIN_PRESIGN_EXPIRATION = exports.MAX_PRESIGN_EXPIRATION = void 0;
|
|
4
|
+
exports.MAX_PRESIGN_EXPIRATION = 604800;
|
|
5
|
+
exports.MIN_PRESIGN_EXPIRATION = 1;
|
|
6
|
+
const validatePresignExpiration = (presignExpiration) => {
|
|
7
|
+
if (typeof presignExpiration === 'undefined' || presignExpiration === null) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof presignExpiration !== 'number') {
|
|
11
|
+
throw new TypeError(`'expiresIn' should be a number, but is ${JSON.stringify(presignExpiration)}`);
|
|
12
|
+
}
|
|
13
|
+
if (Number.isNaN(presignExpiration)) {
|
|
14
|
+
throw new TypeError(`'expiresIn' should not be NaN, but is NaN`);
|
|
15
|
+
}
|
|
16
|
+
if (!Number.isFinite(presignExpiration)) {
|
|
17
|
+
throw new TypeError(`'expiresIn' should be finite but is ${presignExpiration}`);
|
|
18
|
+
}
|
|
19
|
+
if (presignExpiration % 1 !== 0) {
|
|
20
|
+
throw new TypeError(`'expiresIn' should be an integer but is ${JSON.stringify(presignExpiration)}`);
|
|
21
|
+
}
|
|
22
|
+
if (presignExpiration > exports.MAX_PRESIGN_EXPIRATION) {
|
|
23
|
+
throw new TypeError(`The 'expiresIn' parameter must be less or equal than ${exports.MAX_PRESIGN_EXPIRATION} (7 days) as enforced by AWS`);
|
|
24
|
+
}
|
|
25
|
+
if (presignExpiration < exports.MIN_PRESIGN_EXPIRATION) {
|
|
26
|
+
throw new TypeError(`The 'expiresIn' parameter must be greater or equal than ${exports.MIN_PRESIGN_EXPIRATION}`);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.validatePresignExpiration = validatePresignExpiration;
|
|
30
|
+
//# sourceMappingURL=validate-presign-expiration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-presign-expiration.js","sourceRoot":"","sources":["../../src/shared/validate-presign-expiration.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,MAAM,CAAC;AAChC,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAEjC,MAAM,yBAAyB,GAAG,CAAC,iBAA0B,EAAE,EAAE;IACvE,IAAI,OAAO,iBAAiB,KAAK,WAAW,IAAI,iBAAiB,KAAK,IAAI,EAAE;QAC3E,OAAO;KACP;IAED,IAAI,OAAO,iBAAiB,KAAK,QAAQ,EAAE;QAC1C,MAAM,IAAI,SAAS,CAClB,0CAA0C,IAAI,CAAC,SAAS,CACvD,iBAAiB,CACjB,EAAE,CACH,CAAC;KACF;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE;QACpC,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;KACjE;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE;QACxC,MAAM,IAAI,SAAS,CAClB,uCAAuC,iBAAiB,EAAE,CAC1D,CAAC;KACF;IAED,IAAI,iBAAiB,GAAG,CAAC,KAAK,CAAC,EAAE;QAChC,MAAM,IAAI,SAAS,CAClB,2CAA2C,IAAI,CAAC,SAAS,CACxD,iBAAiB,CACjB,EAAE,CACH,CAAC;KACF;IAED,IAAI,iBAAiB,GAAG,8BAAsB,EAAE;QAC/C,MAAM,IAAI,SAAS,CAClB,wDAAwD,8BAAsB,8BAA8B,CAC5G,CAAC;KACF;IAED,IAAI,iBAAiB,GAAG,8BAAsB,EAAE;QAC/C,MAAM,IAAI,SAAS,CAClB,2DAA2D,8BAAsB,EAAE,CACnF,CAAC;KACF;AACF,CAAC,CAAC;AA1CW,QAAA,yBAAyB,6BA0CpC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-retention-period.d.ts","sourceRoot":"","sources":["../../src/shared/validate-retention-period.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iCAAiC,WAAY,OAAO,SA0ChE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateCloudWatchRetentionPeriod = void 0;
|
|
4
|
+
const MIN_RETENTION_PERIOD = 1;
|
|
5
|
+
const MAX_RETENTION_PERIOD = 10 * 365;
|
|
6
|
+
const validateCloudWatchRetentionPeriod = (period) => {
|
|
7
|
+
if (period === null || period === undefined) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof period !== 'number') {
|
|
11
|
+
throw new TypeError(`CloudWatch retention period should be a number, got: ${JSON.stringify(period)}`);
|
|
12
|
+
}
|
|
13
|
+
if (Number.isNaN(period)) {
|
|
14
|
+
throw new TypeError(`CloudWatch retention period must be an integer, but is NaN`);
|
|
15
|
+
}
|
|
16
|
+
if (!Number.isFinite(period)) {
|
|
17
|
+
throw new TypeError(`CloudWatch retention period must be finite, but is ${period}`);
|
|
18
|
+
}
|
|
19
|
+
if (period % 1 !== 0) {
|
|
20
|
+
throw new TypeError(`CloudWatch retention period must be an integer, but is ${period}`);
|
|
21
|
+
}
|
|
22
|
+
if (period < MIN_RETENTION_PERIOD) {
|
|
23
|
+
throw new Error(`CloudWatch retention period must be at least ${MIN_RETENTION_PERIOD}, but is ${period}`);
|
|
24
|
+
}
|
|
25
|
+
if (period > MAX_RETENTION_PERIOD) {
|
|
26
|
+
throw new Error(`CloudWatch retention period must be at most ${MAX_RETENTION_PERIOD}, but is ${period}`);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.validateCloudWatchRetentionPeriod = validateCloudWatchRetentionPeriod;
|
|
30
|
+
//# sourceMappingURL=validate-retention-period.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-retention-period.js","sourceRoot":"","sources":["../../src/shared/validate-retention-period.ts"],"names":[],"mappings":";;;AAAA,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,GAAG,GAAG,CAAC;AAE/B,MAAM,iCAAiC,GAAG,CAAC,MAAe,EAAE,EAAE;IACpE,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,EAAE;QAC5C,OAAO;KACP;IAED,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,SAAS,CAClB,wDAAwD,IAAI,CAAC,SAAS,CACrE,MAAM,CACN,EAAE,CACH,CAAC;KACF;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QACzB,MAAM,IAAI,SAAS,CAClB,4DAA4D,CAC5D,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC7B,MAAM,IAAI,SAAS,CAClB,sDAAsD,MAAM,EAAE,CAC9D,CAAC;KACF;IAED,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,IAAI,SAAS,CAClB,0DAA0D,MAAM,EAAE,CAClE,CAAC;KACF;IAED,IAAI,MAAM,GAAG,oBAAoB,EAAE;QAClC,MAAM,IAAI,KAAK,CACd,gDAAgD,oBAAoB,YAAY,MAAM,EAAE,CACxF,CAAC;KACF;IAED,IAAI,MAAM,GAAG,oBAAoB,EAAE;QAClC,MAAM,IAAI,KAAK,CACd,+CAA+C,oBAAoB,YAAY,MAAM,EAAE,CACvF,CAAC;KACF;AACF,CAAC,CAAC;AA1CW,QAAA,iCAAiC,qCA0C5C"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-serveurl.d.ts","sourceRoot":"","sources":["../../src/shared/validate-serveurl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,aAAc,OAAO,SAQjD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateServeUrl = void 0;
|
|
4
|
+
const validateServeUrl = (serveUrl) => {
|
|
5
|
+
if (typeof serveUrl !== 'string') {
|
|
6
|
+
throw new TypeError(`"serveURL" parameter must be a string, but is ${JSON.stringify(serveUrl)}`);
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
exports.validateServeUrl = validateServeUrl;
|
|
10
|
+
//# sourceMappingURL=validate-serveurl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-serveurl.js","sourceRoot":"","sources":["../../src/shared/validate-serveurl.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,CAAC,QAAiB,EAAE,EAAE;IACrD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QACjC,MAAM,IAAI,SAAS,CAClB,iDAAiD,IAAI,CAAC,SAAS,CAC9D,QAAQ,CACR,EAAE,CACH,CAAC;KACF;AACF,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-site-name.d.ts","sourceRoot":"","sources":["../../src/shared/validate-site-name.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,aAAc,OAAO,SAoBjD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateSiteName = void 0;
|
|
4
|
+
const validateSiteName = (siteName) => {
|
|
5
|
+
if (typeof siteName === 'undefined') {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (typeof siteName !== 'string') {
|
|
9
|
+
throw new TypeError(`The 'projectName' argument must be a string if provided, but is ${JSON.stringify(siteName)}`);
|
|
10
|
+
}
|
|
11
|
+
if (!siteName.match(/([0-9a-zA-Z-!_.*'()]+)/g)) {
|
|
12
|
+
throw new Error("The `siteName` must match the RegExp `/([0-9a-zA-Z-!_.*'()]+)/g`. You passed: " +
|
|
13
|
+
siteName +
|
|
14
|
+
'. Check for invalid characters.');
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.validateSiteName = validateSiteName;
|
|
18
|
+
//# sourceMappingURL=validate-site-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-site-name.js","sourceRoot":"","sources":["../../src/shared/validate-site-name.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,CAAC,QAAiB,EAAE,EAAE;IACrD,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACpC,OAAO;KACP;IAED,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QACjC,MAAM,IAAI,SAAS,CAClB,mEAAmE,IAAI,CAAC,SAAS,CAChF,QAAQ,CACR,EAAE,CACH,CAAC;KACF;IAED,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE;QAC/C,MAAM,IAAI,KAAK,CACd,gFAAgF;YAC/E,QAAQ;YACR,iCAAiC,CAClC,CAAC;KACF;AACF,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.2",
|
|
4
|
+
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"bin": {
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"module": "true",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"
|
|
12
|
+
"testintegration": "jest src/test/integration --runInBand",
|
|
13
|
+
"lint": "eslint src --ext ts,tsx",
|
|
14
|
+
"test": "jest src/test/unit",
|
|
13
15
|
"watch": "tsc -w",
|
|
14
16
|
"build": "tsc -d && pnpm run buildlambda",
|
|
15
17
|
"buildlambda": "ts-node src/admin/bundle-lambda.ts",
|
|
@@ -21,43 +23,45 @@
|
|
|
21
23
|
"url": "https://github.com/JonnyBurger/remotion"
|
|
22
24
|
},
|
|
23
25
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/
|
|
25
|
-
"@aws-sdk/client-
|
|
26
|
-
"@aws-sdk/client-
|
|
27
|
-
"@aws-sdk/client-
|
|
28
|
-
"@aws-sdk/
|
|
29
|
-
"@aws-sdk/
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@remotion/
|
|
26
|
+
"@aws-sdk/abort-controller": "3.55.0",
|
|
27
|
+
"@aws-sdk/client-cloudwatch-logs": "3.58.0",
|
|
28
|
+
"@aws-sdk/client-iam": "3.58.0",
|
|
29
|
+
"@aws-sdk/client-lambda": "3.58.0",
|
|
30
|
+
"@aws-sdk/client-s3": "3.58.0",
|
|
31
|
+
"@aws-sdk/client-service-quotas": "3.58.0",
|
|
32
|
+
"@aws-sdk/lib-storage": "3.58.0",
|
|
33
|
+
"@aws-sdk/s3-request-presigner": "3.58.0",
|
|
34
|
+
"@remotion/bundler": "3.0.2",
|
|
35
|
+
"@remotion/cli": "3.0.2",
|
|
36
|
+
"@remotion/renderer": "3.0.2",
|
|
33
37
|
"aws-policies": "^1.0.1",
|
|
34
38
|
"dotenv": "^10.0.0",
|
|
35
39
|
"minimist": "^1.2.5",
|
|
36
40
|
"p-limit": "^3.1.0",
|
|
37
|
-
"
|
|
38
|
-
"remotion": "3.0.0-wrappedup.222+5e3217098"
|
|
41
|
+
"remotion": "3.0.2"
|
|
39
42
|
},
|
|
40
43
|
"peerDependencies": {
|
|
41
|
-
"react": "
|
|
42
|
-
"react-dom": "
|
|
44
|
+
"react": ">=16.8.0",
|
|
45
|
+
"react-dom": ">=16.8.0"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@jonny/eslint-config": "
|
|
48
|
+
"@jonny/eslint-config": "3.0.259",
|
|
46
49
|
"@types/jest": "^27.0.2",
|
|
50
|
+
"@types/minimist": "1.2.2",
|
|
47
51
|
"@types/node": "^14.14.14",
|
|
48
52
|
"@types/prompt": "^1.1.0",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
53
|
+
"eslint": "8.13.0",
|
|
54
|
+
"execa": "5.1.1",
|
|
51
55
|
"jest": "^27.2.4",
|
|
52
56
|
"prettier": "^2.4.1",
|
|
53
57
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
54
58
|
"ts-jest": "^27.0.5",
|
|
55
59
|
"ts-node": "^9.1.1",
|
|
56
|
-
"typescript": "^4.
|
|
60
|
+
"typescript": "^4.5.5",
|
|
57
61
|
"zip-lib": "^0.7.2"
|
|
58
62
|
},
|
|
59
63
|
"publishConfig": {
|
|
60
64
|
"access": "public"
|
|
61
65
|
},
|
|
62
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "b5b189fd54281270f22b1b6ebd3c08dd089f7f20"
|
|
63
67
|
}
|
package/remotion-lambda-cli.js
CHANGED
package/remotionlambda.zip
CHANGED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replicate-binaries.d.ts","sourceRoot":"","sources":["../../src/admin/replicate-binaries.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
7
|
-
const cli_1 = require("@remotion/cli");
|
|
8
|
-
const log_1 = require("@remotion/cli/dist/log");
|
|
9
|
-
const fs_1 = require("fs");
|
|
10
|
-
const path_1 = __importDefault(require("path"));
|
|
11
|
-
const aws_regions_1 = require("../pricing/aws-regions");
|
|
12
|
-
const aws_clients_1 = require("../shared/aws-clients");
|
|
13
|
-
const bucketExistsInRegion = async ({ bucketName, region, }) => {
|
|
14
|
-
var _a;
|
|
15
|
-
try {
|
|
16
|
-
const bucket = await aws_clients_1.getS3Client(region).send(new client_s3_1.GetBucketLocationCommand({
|
|
17
|
-
Bucket: bucketName,
|
|
18
|
-
}));
|
|
19
|
-
return ((_a = bucket.LocationConstraint) !== null && _a !== void 0 ? _a : 'us-east-1') === region;
|
|
20
|
-
}
|
|
21
|
-
catch (err) {
|
|
22
|
-
if (err.Code === 'NoSuchBucket') {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
throw err;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
cli_1.CliInternals.xns(async () => {
|
|
29
|
-
for (const region of aws_regions_1.AWS_REGIONS) {
|
|
30
|
-
log_1.Log.info('Region:', region);
|
|
31
|
-
const client = aws_clients_1.getS3Client(region);
|
|
32
|
-
const bucketExists = await bucketExistsInRegion({ bucketName, region });
|
|
33
|
-
if (!bucketExists) {
|
|
34
|
-
await client.send(new client_s3_1.CreateBucketCommand({
|
|
35
|
-
ACL: 'public-read',
|
|
36
|
-
Bucket: bucketName,
|
|
37
|
-
}));
|
|
38
|
-
log_1.Log.info(`Bucket ${bucketName} created.`);
|
|
39
|
-
}
|
|
40
|
-
const Body = fs_1.createReadStream(path_1.default.join(__dirname, 'remotion.zip'));
|
|
41
|
-
log_1.Log.info(`Uploading ${region}...`);
|
|
42
|
-
await client.send(new client_s3_1.PutObjectCommand({
|
|
43
|
-
Key: 'remotion.zip',
|
|
44
|
-
Bucket: bucketName,
|
|
45
|
-
Body,
|
|
46
|
-
ACL: 'public-read',
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=replicate-binaries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replicate-binaries.js","sourceRoot":"","sources":["../../src/admin/replicate-binaries.ts"],"names":[],"mappings":";;;;;AAAA,kDAI4B;AAC5B,uCAA2C;AAC3C,gDAA2C;AAC3C,2BAAoC;AACpC,gDAAwB;AACxB,wDAA8D;AAC9D,uDAAkD;AAElD,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACnC,UAAU,EACV,MAAM,GAIN,EAAE,EAAE;;IACJ,IAAI;QACH,MAAM,MAAM,GAAG,MAAM,yBAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAC5C,IAAI,oCAAwB,CAAC;YAC5B,MAAM,EAAE,UAAU;SAClB,CAAC,CACF,CAAC;QAEF,OAAO,CAAC,MAAA,MAAM,CAAC,kBAAkB,mCAAI,WAAW,CAAC,KAAK,MAAM,CAAC;KAC7D;IAAC,OAAO,GAAG,EAAE;QACb,IAAK,GAAsB,CAAC,IAAI,KAAK,cAAc,EAAE;YACpD,OAAO,KAAK,CAAC;SACb;QAED,MAAM,GAAG,CAAC;KACV;AACF,CAAC,CAAC;AAEF,kBAAY,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;IAC3B,KAAK,MAAM,MAAM,IAAI,yBAAW,EAAE;QACjC,SAAG,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC5B,MAAM,MAAM,GAAG,yBAAW,CAAC,MAAM,CAAC,CAAC;QAEnC,MAAM,YAAY,GAAG,MAAM,oBAAoB,CAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC,CAAC;QACtE,IAAI,CAAC,YAAY,EAAE;YAClB,MAAM,MAAM,CAAC,IAAI,CAChB,IAAI,+BAAmB,CAAC;gBACvB,GAAG,EAAE,aAAa;gBAClB,MAAM,EAAE,UAAU;aAClB,CAAC,CACF,CAAC;YACF,SAAG,CAAC,IAAI,CAAC,UAAU,UAAU,WAAW,CAAC,CAAC;SAC1C;QAED,MAAM,IAAI,GAAG,qBAAgB,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;QAEpE,SAAG,CAAC,IAAI,CAAC,aAAa,MAAM,KAAK,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,IAAI,CAChB,IAAI,4BAAgB,CAAC;YACpB,GAAG,EAAE,cAAc;YACnB,MAAM,EAAE,UAAU;YAClB,IAAI;YACJ,GAAG,EAAE,aAAa;SAClB,CAAC,CACF,CAAC;KACF;AACF,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-lambda.d.ts","sourceRoot":"","sources":["../../src/api/bundle-lambda.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,uBAwBxB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.bundleLambda = void 0;
|
|
7
|
-
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const tmpdir_1 = require("../shared/tmpdir");
|
|
10
|
-
const esbuild = require("esbuild");
|
|
11
|
-
const zl = require("zip-lib");
|
|
12
|
-
const bundleLambda = async () => {
|
|
13
|
-
var _a;
|
|
14
|
-
const outdir = path_1.default.join(__dirname, '..', `build-render`);
|
|
15
|
-
fs_1.default.mkdirSync(outdir, {
|
|
16
|
-
recursive: true,
|
|
17
|
-
});
|
|
18
|
-
const outfile = path_1.default.join(outdir, 'index.js');
|
|
19
|
-
((_a = fs_1.default.rmSync) !== null && _a !== void 0 ? _a : fs_1.default.rmdirSync)(outdir, { recursive: true });
|
|
20
|
-
fs_1.default.mkdirSync(outdir, { recursive: true });
|
|
21
|
-
const template = require.resolve(path_1.default.join(__dirname, '..', 'functions', 'index'));
|
|
22
|
-
await esbuild.build({
|
|
23
|
-
platform: 'node',
|
|
24
|
-
target: 'node14',
|
|
25
|
-
bundle: true,
|
|
26
|
-
outfile,
|
|
27
|
-
entryPoints: [template],
|
|
28
|
-
});
|
|
29
|
-
const out = path_1.default.join(tmpdir_1.tmpDir('remotion-fn'), `function-render.zip`);
|
|
30
|
-
await zl.archiveFolder(outdir, out);
|
|
31
|
-
return out;
|
|
32
|
-
};
|
|
33
|
-
exports.bundleLambda = bundleLambda;
|
|
34
|
-
//# sourceMappingURL=bundle-lambda.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/api/bundle-lambda.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,6CAAwC;AACxC,mCAAoC;AACpC,8BAA+B;AAExB,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;;IACtC,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC1D,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,IAAI;KACf,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE9C,CAAC,MAAA,YAAE,CAAC,MAAM,mCAAI,YAAE,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACvD,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAC/B,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAChD,CAAC;IAEF,MAAM,OAAO,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO;QACP,WAAW,EAAE,CAAC,QAAQ,CAAC;KACvB,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,eAAM,CAAC,aAAa,CAAC,EAAE,qBAAqB,CAAC,CAAC;IACpE,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,OAAO,GAAG,CAAC;AACZ,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-remotion.d.ts","sourceRoot":"","sources":["../../src/api/bundle-remotion.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;eAKf,MAAM;2BACM,MAAM,KAAK,IAAI;gBAC1B,MAAM;qBAKlB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bundleRemotion = void 0;
|
|
4
|
-
const bundler_1 = require("@remotion/bundler");
|
|
5
|
-
// TODO: Necessary? No
|
|
6
|
-
const bundleRemotion = ({ entryFile, onProgress, publicPath, }) => {
|
|
7
|
-
return bundler_1.bundle(entryFile, onProgress, {
|
|
8
|
-
publicPath,
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
exports.bundleRemotion = bundleRemotion;
|
|
12
|
-
//# sourceMappingURL=bundle-remotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-remotion.js","sourceRoot":"","sources":["../../src/api/bundle-remotion.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAEzC,sBAAsB;AACf,MAAM,cAAc,GAAG,CAAC,EAC9B,SAAS,EACT,UAAU,EACV,UAAU,GAKV,EAAE,EAAE;IACJ,OAAO,gBAAM,CAAC,SAAS,EAAE,UAAU,EAAE;QACpC,UAAU;KACV,CAAC,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,cAAc,kBAYzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-lambda.d.ts","sourceRoot":"","sources":["../../src/api/deploy-lambda.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAOjD,eAAO,MAAM,YAAY,YAAmB;IAAC,MAAM,EAAE,SAAS,CAAA;CAAC;;EA0C9D,CAAC"}
|