@remotion/lambda 3.0.0-lambda.99 → 3.0.0-pnpm.295
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 +15 -0
- package/dist/admin/bundle-lambda.js +2 -1
- package/dist/admin/bundle-lambda.js.map +1 -1
- package/dist/admin/make-layer-public.js +3 -13
- package/dist/admin/make-layer-public.js.map +1 -1
- package/dist/api/bucket-exists.d.ts +1 -1
- package/dist/api/bucket-exists.d.ts.map +1 -1
- package/dist/api/create-bucket.d.ts +1 -1
- package/dist/api/create-bucket.d.ts.map +1 -1
- package/dist/api/create-function.d.ts +5 -3
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js +24 -19
- 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 +19 -9
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/delete-site.js +10 -1
- package/dist/api/delete-site.js.map +1 -1
- package/dist/api/deploy-function.d.ts +15 -10
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +18 -4
- 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-media.js +55 -0
- package/dist/api/download-media.js.map +1 -0
- package/dist/api/enable-s3-website.d.ts +1 -1
- 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/{pricing/calculate-price.d.ts → api/estimate-price.d.ts} +5 -6
- package/dist/api/estimate-price.d.ts.map +1 -0
- package/dist/{pricing/calculate-price.js → api/estimate-price.js} +4 -4
- package/dist/api/estimate-price.js.map +1 -0
- package/dist/api/get-aws-client.d.ts +30 -0
- package/dist/api/get-aws-client.d.ts.map +1 -0
- package/dist/api/get-aws-client.js +47 -0
- package/dist/api/get-aws-client.js.map +1 -0
- package/dist/api/get-aws-clients.d.ts +16 -0
- package/dist/api/get-aws-clients.d.ts.map +1 -0
- package/dist/api/get-aws-clients.js +40 -0
- package/dist/api/get-aws-clients.js.map +1 -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 +3 -4
- package/dist/api/get-function-info.d.ts.map +1 -1
- package/dist/api/get-function-info.js +1 -1
- 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 +2 -2
- 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 +4 -4
- 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.map +1 -1
- package/dist/api/iam-validation/role-permissions.js +6 -5
- package/dist/api/iam-validation/role-permissions.js.map +1 -1
- package/dist/api/iam-validation/simulate-rule.d.ts +1 -0
- package/dist/api/iam-validation/simulate-rule.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate-rule.js +42 -29
- package/dist/api/iam-validation/simulate-rule.js.map +1 -1
- package/dist/api/iam-validation/simulate.d.ts +14 -5
- package/dist/api/iam-validation/simulate.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate.js +11 -4
- package/dist/api/iam-validation/simulate.js.map +1 -1
- package/dist/api/iam-validation/suggested-policy.d.ts +3 -2
- package/dist/api/iam-validation/suggested-policy.d.ts.map +1 -1
- package/dist/api/iam-validation/suggested-policy.js +7 -6
- package/dist/api/iam-validation/suggested-policy.js.map +1 -1
- package/dist/api/iam-validation/{required-permissions.d.ts → user-permissions.d.ts} +2 -1
- package/dist/api/iam-validation/user-permissions.d.ts.map +1 -0
- package/dist/api/iam-validation/{required-permissions.js → user-permissions.js} +27 -20
- package/dist/api/iam-validation/user-permissions.js.map +1 -0
- package/dist/api/mock-functions.d.ts +1 -1
- package/dist/api/mock-functions.d.ts.map +1 -1
- 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} +22 -12
- package/dist/api/render-media-on-lambda.js.map +1 -0
- package/dist/api/render-still-on-lambda.d.ts +28 -23
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +12 -7
- 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/cli/args.d.ts +5 -3
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
- package/dist/cli/commands/functions/deploy.js +24 -6
- package/dist/cli/commands/functions/deploy.js.map +1 -1
- package/dist/cli/commands/functions/index.d.ts.map +1 -1
- package/dist/cli/commands/functions/index.js +9 -1
- package/dist/cli/commands/functions/index.js.map +1 -1
- package/dist/cli/commands/functions/ls.d.ts.map +1 -1
- package/dist/cli/commands/functions/ls.js +8 -7
- package/dist/cli/commands/functions/ls.js.map +1 -1
- package/dist/cli/commands/functions/rm.d.ts.map +1 -1
- package/dist/cli/commands/functions/rm.js +9 -4
- 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.map +1 -1
- package/dist/cli/commands/policies/policies.js +2 -1
- package/dist/cli/commands/policies/policies.js.map +1 -1
- 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 +7 -3
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +11 -12
- package/dist/cli/commands/render/progress.js.map +1 -1
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +52 -30
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/sites/create.d.ts.map +1 -1
- package/dist/cli/commands/sites/create.js +18 -9
- package/dist/cli/commands/sites/create.js.map +1 -1
- package/dist/cli/commands/sites/index.d.ts.map +1 -1
- package/dist/cli/commands/sites/index.js +6 -1
- package/dist/cli/commands/sites/index.js.map +1 -1
- 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 +1 -1
- package/dist/cli/commands/sites/rm.d.ts.map +1 -1
- package/dist/cli/commands/sites/rm.js +16 -7
- 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.map +1 -1
- package/dist/cli/commands/still.js +42 -13
- package/dist/cli/commands/still.js.map +1 -1
- 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.map +1 -1
- package/dist/cli/help.js +9 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/helpers/confirm.d.ts.map +1 -1
- package/dist/cli/helpers/confirm.js +5 -18
- package/dist/cli/helpers/confirm.js.map +1 -1
- package/dist/cli/helpers/find-function-name.d.ts.map +1 -1
- package/dist/cli/helpers/find-function-name.js +3 -2
- package/dist/cli/helpers/find-function-name.js.map +1 -1
- package/dist/cli/helpers/quit.d.ts +2 -0
- package/dist/cli/helpers/quit.d.ts.map +1 -0
- package/dist/cli/helpers/quit.js +8 -0
- package/dist/cli/helpers/quit.js.map +1 -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.map +1 -1
- package/dist/cli/index.js +30 -8
- 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/client.d.ts +4 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -5
- package/dist/client.js.map +1 -1
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts +2 -2
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/can-use-optimization.js +6 -3
- package/dist/functions/chunk-optimization/can-use-optimization.js.map +1 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +1 -4
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/optimize-profile.d.ts +2 -8
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +3 -6
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.js +10 -5
- package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +1 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +1 -4
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/types.d.ts +2 -2
- package/dist/functions/chunk-optimization/types.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/functions/helpers/calculate-chunk-times.js +8 -7
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts +1 -2
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.js +8 -8
- package/dist/functions/helpers/calculate-price-from-bucket.js.map +1 -1
- package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
- package/dist/functions/helpers/concat-videos.js +7 -5
- package/dist/functions/helpers/concat-videos.js.map +1 -1
- package/dist/functions/helpers/create-post-render-data.d.ts +1 -1
- package/dist/functions/helpers/create-post-render-data.d.ts.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +11 -5
- 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.map +1 -1
- package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
- package/dist/functions/helpers/expected-out-name.js +5 -1
- package/dist/functions/helpers/expected-out-name.js.map +1 -1
- 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 +2 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.js +2 -2
- package/dist/functions/helpers/get-cleanup-progress.js.map +1 -1
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/get-current-region.d.ts.map +1 -1
- 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-lambdas-invoked-stats.d.ts.map +1 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +3 -2
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -1
- 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-progress.d.ts +3 -2
- package/dist/functions/helpers/get-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-progress.js +30 -6
- package/dist/functions/helpers/get-progress.js.map +1 -1
- package/dist/functions/helpers/get-time-to-finish.js +1 -1
- package/dist/functions/helpers/get-time-to-finish.js.map +1 -1
- package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
- package/dist/functions/helpers/inspect-errors.js +3 -0
- package/dist/functions/helpers/inspect-errors.js.map +1 -1
- package/dist/functions/helpers/is-enosp-err.d.ts +1 -0
- package/dist/functions/helpers/is-enosp-err.d.ts.map +1 -1
- package/dist/functions/helpers/is-enosp-err.js +5 -1
- package/dist/functions/helpers/is-enosp-err.js.map +1 -1
- package/dist/functions/helpers/min-max.d.ts +3 -0
- package/dist/functions/helpers/min-max.d.ts.map +1 -0
- package/dist/functions/helpers/min-max.js +34 -0
- package/dist/functions/helpers/min-max.js.map +1 -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 +15 -0
- package/dist/functions/helpers/read-with-progress.d.ts.map +1 -0
- package/dist/functions/helpers/read-with-progress.js +27 -0
- package/dist/functions/helpers/read-with-progress.js.map +1 -0
- package/dist/functions/helpers/validate-composition.d.ts +2 -2
- package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
- package/dist/functions/helpers/validate-composition.js +1 -1
- package/dist/functions/helpers/validate-composition.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/index.d.ts +1 -0
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +15 -4
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +32 -19
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/progress.d.ts +1 -0
- package/dist/functions/progress.d.ts.map +1 -1
- package/dist/functions/progress.js +1 -0
- package/dist/functions/progress.js.map +1 -1
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +19 -64
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/start.d.ts.map +1 -1
- package/dist/functions/start.js +8 -5
- package/dist/functions/start.js.map +1 -1
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +10 -7
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +20 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/pricing/aws-regions.d.ts +1 -1
- package/dist/pricing/aws-regions.d.ts.map +1 -1
- package/dist/pricing/aws-regions.js +3 -14
- package/dist/pricing/aws-regions.js.map +1 -1
- 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 +72 -190
- package/dist/pricing/price-per-1-s.js.map +1 -1
- package/dist/shared/aws-clients.d.ts +7 -0
- package/dist/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +60 -24
- package/dist/shared/aws-clients.js.map +1 -1
- package/dist/shared/check-credentials.d.ts.map +1 -1
- package/dist/shared/check-credentials.js +21 -6
- package/dist/shared/check-credentials.js.map +1 -1
- package/dist/shared/constants.d.ts +27 -13
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +11 -7
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/convert-to-serve-url.d.ts +3 -0
- package/dist/shared/convert-to-serve-url.d.ts.map +1 -0
- package/dist/shared/convert-to-serve-url.js +19 -0
- package/dist/shared/convert-to-serve-url.js.map +1 -0
- package/dist/shared/docs-url.d.ts +2 -0
- package/dist/shared/docs-url.d.ts.map +1 -0
- package/dist/shared/docs-url.js +5 -0
- package/dist/shared/docs-url.js.map +1 -0
- package/dist/shared/hosted-layers.d.ts +2 -1
- package/dist/shared/hosted-layers.d.ts.map +1 -1
- package/dist/shared/hosted-layers.js +32 -185
- package/dist/shared/hosted-layers.js.map +1 -1
- package/dist/shared/parse-lambda-timings-key.d.ts +0 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
- package/dist/shared/parse-lambda-timings-key.js +1 -2
- package/dist/shared/parse-lambda-timings-key.js.map +1 -1
- package/dist/shared/validate-bucketname.d.ts +2 -0
- package/dist/shared/validate-bucketname.d.ts.map +1 -0
- package/dist/shared/validate-bucketname.js +14 -0
- package/dist/shared/validate-bucketname.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 +26 -0
- package/dist/shared/validate-frames-per-lambda.js.map +1 -0
- package/dist/shared/validate-outname.d.ts +2 -0
- package/dist/shared/validate-outname.d.ts.map +1 -0
- package/dist/shared/validate-outname.js +19 -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-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 +2 -0
- package/dist/shared/validate-retries.d.ts.map +1 -0
- package/dist/shared/validate-retries.js +22 -0
- package/dist/shared/validate-retries.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/package.json +13 -12
- package/remotionlambda.zip +0 -0
- package/dist/api/download-video.d.ts +0 -14
- package/dist/api/download-video.d.ts.map +0 -1
- package/dist/api/download-video.js +0 -62
- package/dist/api/download-video.js.map +0 -1
- package/dist/api/iam-validation/required-permissions.d.ts.map +0 -1
- 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/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 -2
- package/dist/cli/cleanup.d.ts.map +0 -1
- package/dist/cli/cleanup.js +0 -3
- package/dist/cli/cleanup.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/functions/helpers/upload-logs.d.ts +0 -1
- package/dist/functions/helpers/upload-logs.d.ts.map +0 -1
- package/dist/functions/helpers/upload-logs.js +0 -2
- package/dist/functions/helpers/upload-logs.js.map +0 -1
- package/dist/pricing/calculate-price.d.ts.map +0 -1
- package/dist/pricing/calculate-price.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/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/normalize-serve-url.d.ts +0 -2
- package/dist/shared/normalize-serve-url.d.ts.map +0 -1
- package/dist/shared/normalize-serve-url.js +0 -20
- package/dist/shared/normalize-serve-url.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
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
import { ImageFormat, PixelFormat, ProResProfile } from 'remotion';
|
|
1
|
+
import { FrameRange, ImageFormat, LogLevel, PixelFormat, ProResProfile } from 'remotion';
|
|
2
2
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
3
3
|
import { Privacy } from '../shared/constants';
|
|
4
|
+
export declare type RenderMediaOnLambdaInput = {
|
|
5
|
+
region: AwsRegion;
|
|
6
|
+
functionName: string;
|
|
7
|
+
serveUrl: string;
|
|
8
|
+
composition: string;
|
|
9
|
+
inputProps: unknown;
|
|
10
|
+
codec: 'h264-mkv' | 'mp3' | 'aac' | 'wav';
|
|
11
|
+
imageFormat: ImageFormat;
|
|
12
|
+
crf?: number | undefined;
|
|
13
|
+
envVariables?: Record<string, string>;
|
|
14
|
+
pixelFormat?: PixelFormat;
|
|
15
|
+
proResProfile?: ProResProfile;
|
|
16
|
+
privacy: Privacy;
|
|
17
|
+
quality?: number;
|
|
18
|
+
maxRetries: number;
|
|
19
|
+
framesPerLambda?: number;
|
|
20
|
+
enableChunkOptimization?: boolean;
|
|
21
|
+
logLevel?: LogLevel;
|
|
22
|
+
frameRange?: FrameRange;
|
|
23
|
+
outName?: string;
|
|
24
|
+
timeoutInMilliseconds?: number;
|
|
25
|
+
};
|
|
26
|
+
export declare type RenderMediaOnLambdaOutput = {
|
|
27
|
+
renderId: string;
|
|
28
|
+
bucketName: string;
|
|
29
|
+
};
|
|
4
30
|
/**
|
|
5
31
|
* @description Triggers a render on a lambda given a composition and a lambda function.
|
|
6
|
-
* @link https://remotion.dev/docs/lambda/
|
|
32
|
+
* @link https://v3.remotion.dev/docs/lambda/rendermediaonlambda
|
|
7
33
|
* @param params.functionName The name of the Lambda function that should be used
|
|
8
34
|
* @param params.serveUrl The URL of the deployed project
|
|
9
35
|
* @param params.composition The ID of the composition which should be rendered.
|
|
@@ -17,29 +43,12 @@ import { Privacy } from '../shared/constants';
|
|
|
17
43
|
* @param params.region The AWS region in which the video should be rendered.
|
|
18
44
|
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
|
|
19
45
|
* @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
|
|
20
|
-
* @param params.
|
|
21
|
-
* @returns
|
|
46
|
+
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
47
|
+
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
22
48
|
*/
|
|
23
|
-
export declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
codec: 'h264-mkv' | 'mp3' | 'aac' | 'wav';
|
|
30
|
-
imageFormat: ImageFormat;
|
|
31
|
-
crf?: number | undefined;
|
|
32
|
-
envVariables?: Record<string, string> | undefined;
|
|
33
|
-
pixelFormat?: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le" | undefined;
|
|
34
|
-
proResProfile?: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
35
|
-
privacy: Privacy;
|
|
36
|
-
quality?: number | undefined;
|
|
37
|
-
maxRetries: number;
|
|
38
|
-
framesPerLambda?: number | undefined;
|
|
39
|
-
enableChunkOptimization?: boolean | undefined;
|
|
40
|
-
saveBrowserLogs?: boolean | undefined;
|
|
41
|
-
}) => Promise<{
|
|
42
|
-
renderId: string;
|
|
43
|
-
bucketName: string;
|
|
44
|
-
}>;
|
|
45
|
-
//# sourceMappingURL=render-video-on-lambda.d.ts.map
|
|
49
|
+
export declare const renderMediaOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, enableChunkOptimization, logLevel, frameRange, outName, timeoutInMilliseconds, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Renamed to renderMediaOnLambda()
|
|
52
|
+
*/
|
|
53
|
+
export declare const renderVideoOnLambda: ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, enableChunkOptimization, logLevel, frameRange, outName, timeoutInMilliseconds, }: RenderMediaOnLambdaInput) => Promise<RenderMediaOnLambdaOutput>;
|
|
54
|
+
//# sourceMappingURL=render-media-on-lambda.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-media-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-media-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,WAAW,EAEX,QAAQ,EACR,WAAW,EACX,aAAa,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAiB,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAI5D,oBAAY,wBAAwB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC1C,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,mBAAmB,kQAqB7B,wBAAwB,KAAG,QAAQ,yBAAyB,CAiC9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,kQAtC7B,wBAAwB,KAAG,QAAQ,yBAAyB,CAsCT,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.renderVideoOnLambda = void 0;
|
|
3
|
+
exports.renderVideoOnLambda = exports.renderMediaOnLambda = void 0;
|
|
4
|
+
const remotion_1 = require("remotion");
|
|
4
5
|
const call_lambda_1 = require("../shared/call-lambda");
|
|
5
6
|
const constants_1 = require("../shared/constants");
|
|
6
|
-
const
|
|
7
|
+
const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
|
|
8
|
+
const validate_frames_per_lambda_1 = require("../shared/validate-frames-per-lambda");
|
|
7
9
|
/**
|
|
8
10
|
* @description Triggers a render on a lambda given a composition and a lambda function.
|
|
9
|
-
* @link https://remotion.dev/docs/lambda/
|
|
11
|
+
* @link https://v3.remotion.dev/docs/lambda/rendermediaonlambda
|
|
10
12
|
* @param params.functionName The name of the Lambda function that should be used
|
|
11
13
|
* @param params.serveUrl The URL of the deployed project
|
|
12
14
|
* @param params.composition The ID of the composition which should be rendered.
|
|
@@ -20,18 +22,19 @@ const validate_frames_per_lambda_1 = require("./validate-frames-per-lambda");
|
|
|
20
22
|
* @param params.region The AWS region in which the video should be rendered.
|
|
21
23
|
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
|
|
22
24
|
* @param params.enableChunkOptimization Whether Remotion should restructure and optimize chunks for subsequent renders. Default true.
|
|
23
|
-
* @param params.
|
|
24
|
-
* @returns
|
|
25
|
+
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
|
|
26
|
+
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
|
|
25
27
|
*/
|
|
26
|
-
const
|
|
27
|
-
(0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda);
|
|
28
|
+
const renderMediaOnLambda = async ({ functionName, serveUrl, inputProps, codec, imageFormat, crf, envVariables, pixelFormat, proResProfile, quality, region, maxRetries, composition, framesPerLambda, privacy, enableChunkOptimization, logLevel, frameRange, outName, timeoutInMilliseconds, }) => {
|
|
29
|
+
(0, validate_frames_per_lambda_1.validateFramesPerLambda)(framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null);
|
|
30
|
+
const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
|
|
28
31
|
const res = await (0, call_lambda_1.callLambda)({
|
|
29
32
|
functionName,
|
|
30
33
|
type: constants_1.LambdaRoutines.start,
|
|
31
34
|
payload: {
|
|
32
|
-
framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda :
|
|
35
|
+
framesPerLambda: framesPerLambda !== null && framesPerLambda !== void 0 ? framesPerLambda : null,
|
|
33
36
|
composition,
|
|
34
|
-
serveUrl,
|
|
37
|
+
serveUrl: realServeUrl,
|
|
35
38
|
inputProps,
|
|
36
39
|
codec,
|
|
37
40
|
imageFormat,
|
|
@@ -43,7 +46,10 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
43
46
|
maxRetries,
|
|
44
47
|
privacy,
|
|
45
48
|
enableChunkOptimization,
|
|
46
|
-
|
|
49
|
+
logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : remotion_1.Internals.Logging.DEFAULT_LOG_LEVEL,
|
|
50
|
+
frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
|
|
51
|
+
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
52
|
+
timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : remotion_1.Internals.DEFAULT_PUPPETEER_TIMEOUT,
|
|
47
53
|
},
|
|
48
54
|
region,
|
|
49
55
|
});
|
|
@@ -52,5 +58,9 @@ const renderVideoOnLambda = async ({ functionName, serveUrl, inputProps, codec,
|
|
|
52
58
|
bucketName: res.bucketName,
|
|
53
59
|
};
|
|
54
60
|
};
|
|
55
|
-
exports.
|
|
56
|
-
|
|
61
|
+
exports.renderMediaOnLambda = renderMediaOnLambda;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Renamed to renderMediaOnLambda()
|
|
64
|
+
*/
|
|
65
|
+
exports.renderVideoOnLambda = exports.renderMediaOnLambda;
|
|
66
|
+
//# sourceMappingURL=render-media-on-lambda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-media-on-lambda.js","sourceRoot":"","sources":["../../src/api/render-media-on-lambda.ts"],"names":[],"mappings":";;;AAAA,uCAOkB;AAElB,uDAAiD;AACjD,mDAA4D;AAC5D,yEAAiE;AACjE,qFAA6E;AA8B7E;;;;;;;;;;;;;;;;;;GAkBG;AAEI,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACzC,YAAY,EACZ,QAA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BAAmB,GAAG,2BAAmB,CAAC"}
|
|
@@ -1,8 +1,32 @@
|
|
|
1
|
-
import { StillImageFormat } from 'remotion';
|
|
1
|
+
import { LogLevel, StillImageFormat } from 'remotion';
|
|
2
2
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
3
|
+
import { CostsInfo } from '../shared/constants';
|
|
4
|
+
export declare type RenderStillOnLambdaInput = {
|
|
5
|
+
region: AwsRegion;
|
|
6
|
+
functionName: string;
|
|
7
|
+
serveUrl: string;
|
|
8
|
+
composition: string;
|
|
9
|
+
inputProps: unknown;
|
|
10
|
+
imageFormat: StillImageFormat;
|
|
11
|
+
privacy: 'private' | 'public';
|
|
12
|
+
maxRetries?: number;
|
|
13
|
+
envVariables?: Record<string, string>;
|
|
14
|
+
quality?: number;
|
|
15
|
+
frame?: number;
|
|
16
|
+
logLevel?: LogLevel;
|
|
17
|
+
outName?: string;
|
|
18
|
+
timeoutInMilliseconds?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare type RenderStillOnLambdaOutput = {
|
|
21
|
+
estimatedPrice: CostsInfo;
|
|
22
|
+
url: string;
|
|
23
|
+
sizeInBytes: number;
|
|
24
|
+
bucketName: string;
|
|
25
|
+
renderId: string;
|
|
26
|
+
};
|
|
3
27
|
/**
|
|
4
28
|
* @description Renders a still frame on Lambda
|
|
5
|
-
* @link https://remotion.dev/docs/lambda/renderstillonlambda
|
|
29
|
+
* @link https://v3.remotion.dev/docs/lambda/renderstillonlambda
|
|
6
30
|
* @param params.functionName The name of the Lambda function that should be used
|
|
7
31
|
* @param params.serveUrl The URL of the deployed project
|
|
8
32
|
* @param params.composition The ID of the composition which should be rendered.
|
|
@@ -14,26 +38,7 @@ import { AwsRegion } from '../pricing/aws-regions';
|
|
|
14
38
|
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
|
|
15
39
|
* @param params.frame Which frame should be used for the still image. Default 0.
|
|
16
40
|
* @param params.privacy Whether the item in the S3 bucket should be public. Possible values: `"private"` and `"public"`
|
|
17
|
-
* @returns
|
|
41
|
+
* @returns {Promise<RenderStillOnLambdaOutput>} See documentation for exact response structure.
|
|
18
42
|
*/
|
|
19
|
-
export declare const renderStillOnLambda: ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame,
|
|
20
|
-
region: AwsRegion;
|
|
21
|
-
functionName: string;
|
|
22
|
-
serveUrl: string;
|
|
23
|
-
composition: string;
|
|
24
|
-
inputProps: unknown;
|
|
25
|
-
imageFormat: StillImageFormat;
|
|
26
|
-
privacy: 'private' | 'public';
|
|
27
|
-
maxRetries?: number | undefined;
|
|
28
|
-
envVariables?: Record<string, string> | undefined;
|
|
29
|
-
quality?: number | undefined;
|
|
30
|
-
frame?: number | undefined;
|
|
31
|
-
saveBrowserLogs?: boolean | undefined;
|
|
32
|
-
}) => Promise<{
|
|
33
|
-
estimatedPrice: import("../shared/constants").CostsInfo;
|
|
34
|
-
url: string;
|
|
35
|
-
size: number;
|
|
36
|
-
bucketName: string;
|
|
37
|
-
renderId: string;
|
|
38
|
-
}>;
|
|
43
|
+
export declare const renderStillOnLambda: ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, }: RenderStillOnLambdaInput) => Promise<RenderStillOnLambdaOutput>;
|
|
39
44
|
//# sourceMappingURL=render-still-on-lambda.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-still-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"render-still-on-lambda.d.ts","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EACN,SAAS,EAGT,MAAM,qBAAqB,CAAC;AAG7B,oBAAY,wBAAwB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,cAAc,EAAE,SAAS,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,mBAAmB,2KAe7B,wBAAwB,KAAG,QAAQ,yBAAyB,CA+B9D,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.renderStillOnLambda = void 0;
|
|
4
|
+
const remotion_1 = require("remotion");
|
|
4
5
|
const call_lambda_1 = require("../shared/call-lambda");
|
|
5
6
|
const constants_1 = require("../shared/constants");
|
|
7
|
+
const convert_to_serve_url_1 = require("../shared/convert-to-serve-url");
|
|
6
8
|
/**
|
|
7
9
|
* @description Renders a still frame on Lambda
|
|
8
|
-
* @link https://remotion.dev/docs/lambda/renderstillonlambda
|
|
10
|
+
* @link https://v3.remotion.dev/docs/lambda/renderstillonlambda
|
|
9
11
|
* @param params.functionName The name of the Lambda function that should be used
|
|
10
12
|
* @param params.serveUrl The URL of the deployed project
|
|
11
13
|
* @param params.composition The ID of the composition which should be rendered.
|
|
@@ -17,31 +19,34 @@ const constants_1 = require("../shared/constants");
|
|
|
17
19
|
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
|
|
18
20
|
* @param params.frame Which frame should be used for the still image. Default 0.
|
|
19
21
|
* @param params.privacy Whether the item in the S3 bucket should be public. Possible values: `"private"` and `"public"`
|
|
20
|
-
* @returns
|
|
22
|
+
* @returns {Promise<RenderStillOnLambdaOutput>} See documentation for exact response structure.
|
|
21
23
|
*/
|
|
22
|
-
const renderStillOnLambda = async ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame,
|
|
24
|
+
const renderStillOnLambda = async ({ functionName, serveUrl, inputProps, imageFormat, envVariables, quality, region, maxRetries, composition, privacy, frame, logLevel, outName, timeoutInMilliseconds, }) => {
|
|
25
|
+
const realServeUrl = await (0, convert_to_serve_url_1.convertToServeUrl)(serveUrl, region);
|
|
23
26
|
const res = await (0, call_lambda_1.callLambda)({
|
|
24
27
|
functionName,
|
|
25
28
|
type: constants_1.LambdaRoutines.still,
|
|
26
29
|
payload: {
|
|
27
30
|
composition,
|
|
28
|
-
serveUrl,
|
|
31
|
+
serveUrl: realServeUrl,
|
|
29
32
|
inputProps,
|
|
30
33
|
imageFormat,
|
|
31
34
|
envVariables,
|
|
32
35
|
quality,
|
|
33
|
-
maxRetries: maxRetries !== null && maxRetries !== void 0 ? maxRetries :
|
|
36
|
+
maxRetries: maxRetries !== null && maxRetries !== void 0 ? maxRetries : constants_1.DEFAULT_MAX_RETRIES,
|
|
34
37
|
frame: frame !== null && frame !== void 0 ? frame : 0,
|
|
35
38
|
privacy,
|
|
36
39
|
attempt: 1,
|
|
37
|
-
|
|
40
|
+
logLevel,
|
|
41
|
+
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
42
|
+
timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : remotion_1.Internals.DEFAULT_PUPPETEER_TIMEOUT,
|
|
38
43
|
},
|
|
39
44
|
region,
|
|
40
45
|
});
|
|
41
46
|
return {
|
|
42
47
|
estimatedPrice: res.estimatedPrice,
|
|
43
48
|
url: res.output,
|
|
44
|
-
|
|
49
|
+
sizeInBytes: res.size,
|
|
45
50
|
bucketName: res.bucketName,
|
|
46
51
|
renderId: res.renderId,
|
|
47
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-still-on-lambda.js","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"render-still-on-lambda.js","sourceRoot":"","sources":["../../src/api/render-still-on-lambda.ts"],"names":[],"mappings":";;;AAAA,uCAA+D;AAE/D,uDAAiD;AACjD,mDAI6B;AAC7B,yEAAiE;AA2BjE;;;;;;;;;;;;;;;GAeG;AAEI,MAAM,mBAAmB,GAAG,KAAK,EAAE,EACzC,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,EACP,qBAAqB,GACK,EAAsC,EAAE;IAClE,MAAM,YAAY,GAAG,MAAM,IAAA,wCAAiB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE/D,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAU,EAAC;QAC5B,YAAY;QACZ,IAAI,EAAE,0BAAc,CAAC,KAAK;QAC1B,OAAO,EAAE;YACR,WAAW;YACX,QAAQ,EAAE,YAAY;YACtB,UAAU;YACV,WAAW;YACX,YAAY;YACZ,OAAO;YACP,UAAU,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,+BAAmB;YAC7C,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC;YACjB,OAAO;YACP,OAAO,EAAE,CAAC;YACV,QAAQ;YACR,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI;YACxB,qBAAqB,EACpB,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,oBAAS,CAAC,yBAAyB;SAC7D;QACD,MAAM;KACN,CAAC,CAAC;IACH,OAAO;QACN,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,GAAG,EAAE,GAAG,CAAC,MAAM;QACf,WAAW,EAAE,GAAG,CAAC,IAAI;QACrB,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,QAAQ,EAAE,GAAG,CAAC,QAAQ;KACtB,CAAC;AACH,CAAC,CAAC;AA9CW,QAAA,mBAAmB,uBA8C9B"}
|
package/dist/api/upload-dir.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-dir.d.ts","sourceRoot":"","sources":["../../src/api/upload-dir.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"upload-dir.d.ts","sourceRoot":"","sources":["../../src/api/upload-dir.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAQpC,oBAAY,iBAAiB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,QAAQ,EAInD,CAAC;AAEF,eAAO,MAAM,SAAS;YAQb,MAAM;YACN,SAAS;SACZ,MAAM;YACH,MAAM;2BACS,iBAAiB,KAAK,IAAI;aACxC,OAAO;mBA2EhB,CAAC"}
|
package/dist/cli/args.d.ts
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import minimist from 'minimist';
|
|
2
2
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
3
|
+
import { Privacy } from '../shared/constants';
|
|
3
4
|
declare type LambdaCommandLineOptions = {
|
|
4
5
|
help: boolean;
|
|
5
6
|
region: AwsRegion;
|
|
6
7
|
memory: number;
|
|
7
8
|
timeout: number;
|
|
9
|
+
['retention-period']: number;
|
|
8
10
|
y: boolean;
|
|
9
11
|
yes: boolean;
|
|
10
12
|
force: boolean;
|
|
11
13
|
f: boolean;
|
|
12
|
-
quiet: boolean;
|
|
13
|
-
q: boolean;
|
|
14
14
|
['site-name']: string | undefined;
|
|
15
15
|
['disable-chunk-optimization']: boolean;
|
|
16
16
|
['save-browser-logs']: boolean;
|
|
17
17
|
['disable-cloudwatch']: boolean;
|
|
18
|
+
['max-retries']: number;
|
|
19
|
+
['out-name']: string | undefined;
|
|
20
|
+
privacy: Privacy;
|
|
18
21
|
};
|
|
19
22
|
export declare const parsedLambdaCli: LambdaCommandLineOptions & minimist.ParsedArgs;
|
|
20
23
|
export declare const forceFlagProvided: boolean;
|
|
21
|
-
export declare const quietFlagProvided: boolean;
|
|
22
24
|
export {};
|
|
23
25
|
//# sourceMappingURL=args.d.ts.map
|
package/dist/cli/args.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,aAAK,wBAAwB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC7B,CAAC,EAAE,OAAO,CAAC;IACX,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,EAAE,OAAO,CAAC;IAEX,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,CAAC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACxC,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC/B,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAChC,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IACxB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,gDAK3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAIZ,CAAC"}
|
package/dist/cli/args.js
CHANGED
|
@@ -3,7 +3,7 @@ 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.
|
|
6
|
+
exports.forceFlagProvided = exports.parsedLambdaCli = void 0;
|
|
7
7
|
const cli_1 = require("@remotion/cli");
|
|
8
8
|
const minimist_1 = __importDefault(require("minimist"));
|
|
9
9
|
exports.parsedLambdaCli = (0, minimist_1.default)(process.argv.slice(2), {
|
|
@@ -13,5 +13,4 @@ exports.forceFlagProvided = exports.parsedLambdaCli.f ||
|
|
|
13
13
|
exports.parsedLambdaCli.force ||
|
|
14
14
|
exports.parsedLambdaCli.yes ||
|
|
15
15
|
exports.parsedLambdaCli.y;
|
|
16
|
-
exports.quietFlagProvided = exports.parsedLambdaCli.quiet || exports.parsedLambdaCli.q;
|
|
17
16
|
//# sourceMappingURL=args.js.map
|
package/dist/cli/args.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA2C;AAC3C,wDAAgC;
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA2C;AAC3C,wDAAgC;AAwBnB,QAAA,eAAe,GAAG,IAAA,kBAAQ,EACtC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EACrB;IACC,OAAO,EAAE,kBAAY,CAAC,YAAY;CAClC,CACD,CAAC;AAEW,QAAA,iBAAiB,GAC7B,uBAAe,CAAC,CAAC;IACjB,uBAAe,CAAC,KAAK;IACrB,uBAAe,CAAC,GAAG;IACnB,uBAAe,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/deploy.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/deploy.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD,eAAO,MAAM,yBAAyB,qBA4CrC,CAAC"}
|
|
@@ -11,24 +11,42 @@ const args_1 = require("../../args");
|
|
|
11
11
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
12
12
|
exports.FUNCTIONS_DEPLOY_SUBCOMMAND = 'deploy';
|
|
13
13
|
const functionsDeploySubcommand = async () => {
|
|
14
|
-
var _a, _b;
|
|
15
|
-
// TODO: Should only allow one lambda to be deployed
|
|
14
|
+
var _a, _b, _c;
|
|
16
15
|
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
17
16
|
const timeoutInSeconds = (_a = args_1.parsedLambdaCli.timeout) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_TIMEOUT;
|
|
18
17
|
const memorySizeInMb = (_b = args_1.parsedLambdaCli.memory) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_MEMORY_SIZE;
|
|
19
18
|
const createCloudWatchLogGroup = !args_1.parsedLambdaCli['disable-cloudwatch'];
|
|
19
|
+
const cloudWatchLogRetentionPeriodInDays = (_c = args_1.parsedLambdaCli['retention-period']) !== null && _c !== void 0 ? _c : constants_1.DEFAULT_CLOUDWATCH_RETENTION_PERIOD;
|
|
20
20
|
(0, validate_memory_size_1.validateMemorySize)(memorySizeInMb);
|
|
21
21
|
(0, validate_timeout_1.validateTimeout)(timeoutInSeconds);
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if (!cli_1.CliInternals.quietFlagProvided()) {
|
|
23
|
+
log_1.Log.info(cli_1.CliInternals.chalk.gray(`
|
|
24
|
+
Region = ${region},
|
|
25
|
+
Memory = ${memorySizeInMb}MB,
|
|
26
|
+
Timeout = ${timeoutInSeconds}sec,
|
|
27
|
+
Version = ${constants_1.CURRENT_VERSION},
|
|
28
|
+
CloudWatch Enabled = ${createCloudWatchLogGroup},
|
|
29
|
+
CloudWatch Retention Period = ${cloudWatchLogRetentionPeriodInDays} days
|
|
30
|
+
`));
|
|
31
|
+
}
|
|
32
|
+
const output = cli_1.CliInternals.createOverwriteableCliOutput(cli_1.CliInternals.quietFlagProvided());
|
|
24
33
|
output.update('Deploying Lambda...');
|
|
25
|
-
const { functionName } = await (0, deploy_function_1.deployFunction)({
|
|
34
|
+
const { functionName, alreadyExisted } = await (0, deploy_function_1.deployFunction)({
|
|
26
35
|
createCloudWatchLogGroup,
|
|
27
36
|
region,
|
|
28
37
|
timeoutInSeconds,
|
|
29
38
|
memorySizeInMb,
|
|
39
|
+
cloudWatchLogRetentionPeriodInDays,
|
|
30
40
|
});
|
|
31
|
-
|
|
41
|
+
if (cli_1.CliInternals.quietFlagProvided()) {
|
|
42
|
+
log_1.Log.info(functionName);
|
|
43
|
+
}
|
|
44
|
+
if (alreadyExisted) {
|
|
45
|
+
output.update(`Already exists as ${functionName}\n`);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
output.update(`Deployed as ${functionName}\n`);
|
|
49
|
+
}
|
|
32
50
|
};
|
|
33
51
|
exports.functionsDeploySubcommand = functionsDeploySubcommand;
|
|
34
52
|
//# sourceMappingURL=deploy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/deploy.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,gDAA2C;AAC3C,kEAA4D;AAC5D,yDAImC;AACnC,+EAAwE;AACxE,uEAAiE;AACjE,qCAA2C;AAC3C,yDAAkD;AAErC,QAAA,2BAA2B,GAAG,QAAQ,CAAC;AAE7C,MAAM,yBAAyB,GAAG,KAAK,IAAI,EAAE;;IACnD,
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/deploy.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,gDAA2C;AAC3C,kEAA4D;AAC5D,yDAImC;AACnC,+EAAwE;AACxE,uEAAiE;AACjE,qCAA2C;AAC3C,yDAAkD;AAErC,QAAA,2BAA2B,GAAG,QAAQ,CAAC;AAE7C,MAAM,yBAAyB,GAAG,KAAK,IAAI,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,6BAAY,GAAE,CAAC;IAC9B,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
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAwB7C,eAAO,MAAM,gBAAgB,SAAU,MAAM,EAAE,8BAwB9C,CAAC"}
|
|
@@ -4,9 +4,11 @@ exports.functionsCommand = exports.FUNCTIONS_COMMAND = void 0;
|
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const log_1 = require("@remotion/cli/dist/log");
|
|
6
6
|
const constants_1 = require("../../../shared/constants");
|
|
7
|
+
const quit_1 = require("../../helpers/quit");
|
|
7
8
|
const deploy_1 = require("./deploy");
|
|
8
9
|
const ls_1 = require("./ls");
|
|
9
10
|
const rm_1 = require("./rm");
|
|
11
|
+
const rmall_1 = require("./rmall");
|
|
10
12
|
exports.FUNCTIONS_COMMAND = 'functions';
|
|
11
13
|
const printFunctionsHelp = () => {
|
|
12
14
|
log_1.Log.info(`${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} <subcommand>`);
|
|
@@ -21,6 +23,9 @@ const printFunctionsHelp = () => {
|
|
|
21
23
|
log_1.Log.info('');
|
|
22
24
|
log_1.Log.info(`${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${rm_1.FUNCTIONS_RM_SUBCOMMAND} <function-name>`);
|
|
23
25
|
log_1.Log.info(cli_1.CliInternals.chalk.gray('Delete a Lambda function'));
|
|
26
|
+
log_1.Log.info('');
|
|
27
|
+
log_1.Log.info(`${constants_1.BINARY_NAME} ${exports.FUNCTIONS_COMMAND} ${rmall_1.FUNCTIONS_RMALL_SUBCOMMAND}`);
|
|
28
|
+
log_1.Log.info(cli_1.CliInternals.chalk.gray('Delete all functions in selected region'));
|
|
24
29
|
};
|
|
25
30
|
const functionsCommand = (args) => {
|
|
26
31
|
if (args[0] === ls_1.FUNCTIONS_LS_SUBCOMMAND) {
|
|
@@ -29,13 +34,16 @@ const functionsCommand = (args) => {
|
|
|
29
34
|
if (args[0] === rm_1.FUNCTIONS_RM_SUBCOMMAND) {
|
|
30
35
|
return (0, rm_1.functionsRmCommand)(args.slice(1));
|
|
31
36
|
}
|
|
37
|
+
if (args[0] === rmall_1.FUNCTIONS_RMALL_SUBCOMMAND) {
|
|
38
|
+
return (0, rmall_1.functionsRmallCommand)();
|
|
39
|
+
}
|
|
32
40
|
if (args[0] === deploy_1.FUNCTIONS_DEPLOY_SUBCOMMAND) {
|
|
33
41
|
return (0, deploy_1.functionsDeploySubcommand)();
|
|
34
42
|
}
|
|
35
43
|
if (args[0]) {
|
|
36
44
|
log_1.Log.error(`Subcommand ${args[0]} not found.`);
|
|
37
45
|
printFunctionsHelp();
|
|
38
|
-
|
|
46
|
+
(0, quit_1.quit)(1);
|
|
39
47
|
}
|
|
40
48
|
printFunctionsHelp();
|
|
41
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/index.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,gDAA2C;AAC3C,yDAAsD;AACtD,qCAAgF;AAChF,6BAAiE;AACjE,6BAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/index.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,gDAA2C;AAC3C,yDAAsD;AACtD,6CAAwC;AACxC,qCAAgF;AAChF,6BAAiE;AACjE,6BAAiE;AACjE,mCAA0E;AAE7D,QAAA,iBAAiB,GAAG,WAAW,CAAC;AAE7C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,SAAG,CAAC,IAAI,CAAC,GAAG,uBAAW,IAAI,yBAAiB,eAAe,CAAC,CAAC;IAC7D,SAAG,CAAC,IAAI,EAAE,CAAC;IACX,SA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I,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KACzC;IAED,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,kCAA0B,EAAE;QAC3C,OAAO,IAAA,6BAAqB,GAAE,CAAC;KAC/B;IAED,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,oCAA2B,EAAE;QAC5C,OAAO,IAAA,kCAAyB,GAAE,CAAC;KACnC;IAED,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE;QACZ,SAAG,CAAC,KAAK,CAAC,cAAc,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;QAC9C,kBAAkB,EAAE,CAAC;QACrB,IAAA,WAAI,EAAC,CAAC,CAAC,CAAC;KACR;IAED,kBAAkB,EAAE,CAAC;AACtB,CAAC,CAAC;AAxBW,QAAA,gBAAgB,oBAwB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/ls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/ls.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,eAAO,MAAM,kBAAkB,qBAoD9B,CAAC"}
|
|
@@ -4,24 +4,25 @@ exports.functionsLsCommand = exports.FUNCTIONS_LS_SUBCOMMAND = void 0;
|
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const log_1 = require("@remotion/cli/dist/log");
|
|
6
6
|
const get_functions_1 = require("../../../api/get-functions");
|
|
7
|
-
const args_1 = require("../../args");
|
|
8
7
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
9
|
-
const NAME_COLS =
|
|
8
|
+
const NAME_COLS = 50;
|
|
10
9
|
const MEMORY_COLS = 15;
|
|
11
10
|
const TIMEOUT_COLS = 15;
|
|
12
11
|
const VERSION_COLS = 15;
|
|
13
12
|
exports.FUNCTIONS_LS_SUBCOMMAND = 'ls';
|
|
14
13
|
const functionsLsCommand = async () => {
|
|
15
14
|
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
16
|
-
const fetchingOutput = cli_1.CliInternals.createOverwriteableCliOutput();
|
|
17
|
-
|
|
18
|
-
fetchingOutput.update('Getting functions...');
|
|
19
|
-
}
|
|
15
|
+
const fetchingOutput = cli_1.CliInternals.createOverwriteableCliOutput(cli_1.CliInternals.quietFlagProvided());
|
|
16
|
+
fetchingOutput.update('Getting functions...');
|
|
20
17
|
const functions = await (0, get_functions_1.getFunctions)({
|
|
21
18
|
region,
|
|
22
19
|
compatibleOnly: false,
|
|
23
20
|
});
|
|
24
|
-
if (
|
|
21
|
+
if (cli_1.CliInternals.quietFlagProvided()) {
|
|
22
|
+
if (functions.length === 0) {
|
|
23
|
+
log_1.Log.info('()');
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
25
26
|
log_1.Log.info(functions.map((f) => f.functionName).join(' '));
|
|
26
27
|
return;
|
|
27
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/ls.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,gDAA2C;AAC3C,8DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"ls.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/ls.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,gDAA2C;AAC3C,8DAAwD;AACxD,yDAAkD;AAElD,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,YAAY,GAAG,EAAE,CAAC;AAEX,QAAA,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,kBAAkB,GAAG,KAAK,IAAI,EAAE;IAC5C,MAAM,MAAM,GAAG,IAAA,6BAAY,GAAE,CAAC;IAC9B,MA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,SAAG,CAAC,IAAI,CACP;YACC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC;YAC7C,SAAS,CAAC,OAAO;gBAChB,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;gBAC7C,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;YACpC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC;YACzD,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;SAC5D,CAAC,IAAI,CAAC,EAAE,CAAC,CACV,CAAC;KACF;AACF,CAAC,CAAC;AApDW,QAAA,kBAAkB,sBAoD7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rm.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/rm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rm.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/functions/rm.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAG5C,eAAO,MAAM,kBAAkB,SAAgB,MAAM,EAAE,kBA+CtD,CAAC"}
|
|
@@ -7,21 +7,26 @@ const get_function_info_1 = require("../../../api/get-function-info");
|
|
|
7
7
|
const constants_1 = require("../../../shared/constants");
|
|
8
8
|
const get_aws_region_1 = require("../../get-aws-region");
|
|
9
9
|
const confirm_1 = require("../../helpers/confirm");
|
|
10
|
+
const quit_1 = require("../../helpers/quit");
|
|
10
11
|
const log_1 = require("../../log");
|
|
11
12
|
const index_1 = require("./index");
|
|
12
13
|
const ls_1 = require("./ls");
|
|
13
14
|
exports.FUNCTIONS_RM_SUBCOMMAND = 'rm';
|
|
14
15
|
const LEFT_COL = 16;
|
|
15
16
|
const functionsRmCommand = async (args) => {
|
|
16
|
-
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
17
17
|
if (args.length === 0) {
|
|
18
18
|
log_1.Log.error('No function name passed.');
|
|
19
19
|
log_1.Log.error('Pass another argument which is the name of the function you would like to remove.');
|
|
20
20
|
log_1.Log.info(`You can run \`${constants_1.BINARY_NAME} ${index_1.FUNCTIONS_COMMAND} ${ls_1.FUNCTIONS_LS_SUBCOMMAND}\` to see a list of deployed Lambda functions.`);
|
|
21
|
-
|
|
21
|
+
(0, quit_1.quit)(1);
|
|
22
|
+
}
|
|
23
|
+
if (args[0] === '()') {
|
|
24
|
+
log_1.Log.info('No functions to remove.');
|
|
25
|
+
return;
|
|
22
26
|
}
|
|
27
|
+
const region = (0, get_aws_region_1.getAwsRegion)();
|
|
23
28
|
for (const functionName of args) {
|
|
24
|
-
const infoOutput = cli_1.CliInternals.createOverwriteableCliOutput();
|
|
29
|
+
const infoOutput = cli_1.CliInternals.createOverwriteableCliOutput(cli_1.CliInternals.quietFlagProvided());
|
|
25
30
|
infoOutput.update('Getting function info...');
|
|
26
31
|
const info = await (0, get_function_info_1.getFunctionInfo)({
|
|
27
32
|
region,
|
|
@@ -35,7 +40,7 @@ const functionsRmCommand = async (args) => {
|
|
|
35
40
|
].join('\n'));
|
|
36
41
|
log_1.Log.info();
|
|
37
42
|
await (0, confirm_1.confirmCli)({ delMessage: 'Delete? (Y/n)', allowForceFlag: true });
|
|
38
|
-
const output = cli_1.CliInternals.createOverwriteableCliOutput();
|
|
43
|
+
const output = cli_1.CliInternals.createOverwriteableCliOutput(cli_1.CliInternals.quietFlagProvided());
|
|
39
44
|
output.update('Deleting...');
|
|
40
45
|
await (0, delete_function_1.deleteFunction)({ region, functionName });
|
|
41
46
|
output.update('Deleted!\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rm.js","sourceRoot":"","sources":["../../../../src/cli/commands/functions/rm.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,kEAA4D;AAC5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