@remotion/lambda-client 4.0.386 → 4.0.388
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/dist/cjs/index.js +33 -33
- package/dist/esm/index.mjs +20 -20
- package/package.json +4 -4
- package/dist/app-router-webhook.d.ts +0 -10
- package/dist/app-router-webhook.js +0 -43
- package/dist/apply-lifecycle.d.ts +0 -8
- package/dist/apply-lifecycle.js +0 -18
- package/dist/aws-clients.d.ts +0 -12
- package/dist/aws-clients.js +0 -56
- package/dist/aws-provider.d.ts +0 -27
- package/dist/aws-provider.js +0 -94
- package/dist/bucket-exists.d.ts +0 -3
- package/dist/bucket-exists.js +0 -27
- package/dist/call-lambda-async.d.ts +0 -2
- package/dist/call-lambda-async.js +0 -20
- package/dist/call-lambda-streaming.d.ts +0 -6
- package/dist/call-lambda-streaming.js +0 -126
- package/dist/call-lambda-sync.d.ts +0 -2
- package/dist/call-lambda-sync.js +0 -30
- package/dist/check-credentials.d.ts +0 -1
- package/dist/check-credentials.js +0 -39
- package/dist/clean-items.d.ts +0 -17
- package/dist/clean-items.js +0 -26
- package/dist/constants.d.ts +0 -25
- package/dist/constants.js +0 -26
- package/dist/content-disposition-header.d.ts +0 -2
- package/dist/content-disposition-header.js +0 -50
- package/dist/convert-to-serve-url.d.ts +0 -6
- package/dist/convert-to-serve-url.js +0 -14
- package/dist/create-bucket.d.ts +0 -3
- package/dist/create-bucket.js +0 -65
- package/dist/delete-file.d.ts +0 -3
- package/dist/delete-file.js +0 -17
- package/dist/delete-function.d.ts +0 -7
- package/dist/delete-function.js +0 -15
- package/dist/delete-render.d.ts +0 -22
- package/dist/delete-render.js +0 -90
- package/dist/encode-aws-url-params.d.ts +0 -1
- package/dist/encode-aws-url-params.js +0 -7
- package/dist/estimate-price.d.ts +0 -17
- package/dist/estimate-price.js +0 -45
- package/dist/express-webhook.d.ts +0 -3
- package/dist/express-webhook.js +0 -46
- package/dist/get-account-id.d.ts +0 -3
- package/dist/get-account-id.js +0 -15
- package/dist/get-aws-client.d.ts +0 -32
- package/dist/get-aws-client.js +0 -67
- package/dist/get-aws-urls.d.ts +0 -25
- package/dist/get-aws-urls.js +0 -31
- package/dist/get-buckets.d.ts +0 -9
- package/dist/get-buckets.js +0 -64
- package/dist/get-compositions-on-lambda.d.ts +0 -20
- package/dist/get-compositions-on-lambda.js +0 -62
- package/dist/get-credentials.d.ts +0 -9
- package/dist/get-credentials.js +0 -55
- package/dist/get-env-variable.d.ts +0 -1
- package/dist/get-env-variable.js +0 -15
- package/dist/get-function-name.d.ts +0 -8
- package/dist/get-function-name.js +0 -17
- package/dist/get-function-version.d.ts +0 -9
- package/dist/get-function-version.js +0 -35
- package/dist/get-functions.d.ts +0 -10
- package/dist/get-functions.js +0 -80
- package/dist/get-output-url-from-metadata.d.ts +0 -3
- package/dist/get-output-url-from-metadata.js +0 -18
- package/dist/get-render-progress.d.ts +0 -17
- package/dist/get-render-progress.js +0 -47
- package/dist/get-s3-client.d.ts +0 -11
- package/dist/get-s3-client.js +0 -15
- package/dist/get-service-client.d.ts +0 -25
- package/dist/get-service-client.js +0 -131
- package/dist/get-sites.d.ts +0 -31
- package/dist/get-sites.js +0 -83
- package/dist/head-file.d.ts +0 -3
- package/dist/head-file.js +0 -18
- package/dist/index.d.ts +0 -129
- package/dist/index.js +0 -108
- package/dist/is-cli.d.ts +0 -2
- package/dist/is-cli.js +0 -10
- package/dist/is-flaky-error.d.ts +0 -1
- package/dist/is-flaky-error.js +0 -78
- package/dist/is-in-lambda.d.ts +0 -1
- package/dist/is-in-lambda.js +0 -9
- package/dist/is-likely-to-have-aws-profile.d.ts +0 -1
- package/dist/is-likely-to-have-aws-profile.js +0 -50
- package/dist/lambda-version-string.d.ts +0 -1
- package/dist/lambda-version-string.js +0 -7
- package/dist/lifecycle-rules.d.ts +0 -12
- package/dist/lifecycle-rules.js +0 -73
- package/dist/lifecycle.d.ts +0 -7
- package/dist/lifecycle.js +0 -24
- package/dist/list-objects.d.ts +0 -3
- package/dist/list-objects.js +0 -70
- package/dist/make-lambda-payload.d.ts +0 -59
- package/dist/make-lambda-payload.js +0 -150
- package/dist/make-s3-url.d.ts +0 -6
- package/dist/make-s3-url.js +0 -7
- package/dist/p-limit.d.ts +0 -1
- package/dist/p-limit.js +0 -57
- package/dist/pages-router-webhook.d.ts +0 -5
- package/dist/pages-router-webhook.js +0 -48
- package/dist/parse-function-name.d.ts +0 -8
- package/dist/parse-function-name.js +0 -17
- package/dist/presign-url.d.ts +0 -17
- package/dist/presign-url.js +0 -66
- package/dist/price-per-1s.d.ts +0 -37
- package/dist/price-per-1s.js +0 -822
- package/dist/random-hash.d.ts +0 -1
- package/dist/random-hash.js +0 -13
- package/dist/read-file.d.ts +0 -11
- package/dist/read-file.js +0 -19
- package/dist/regions.d.ts +0 -3
- package/dist/regions.js +0 -48
- package/dist/render-media-on-lambda.d.ts +0 -66
- package/dist/render-media-on-lambda.js +0 -133
- package/dist/render-still-on-lambda.d.ts +0 -61
- package/dist/render-still-on-lambda.js +0 -121
- package/dist/runtime-preference.d.ts +0 -2
- package/dist/runtime-preference.js +0 -8
- package/dist/speculate-function-name.d.ts +0 -7
- package/dist/speculate-function-name.js +0 -39
- package/dist/types.d.ts +0 -4
- package/dist/types.js +0 -2
- package/dist/validate-aws-region.d.ts +0 -2
- package/dist/validate-aws-region.js +0 -9
- package/dist/validate-bucketname.d.ts +0 -4
- package/dist/validate-bucketname.js +0 -15
- package/dist/validate-disk-size-in-mb.d.ts +0 -1
- package/dist/validate-disk-size-in-mb.js +0 -23
- package/dist/validate-lambda-codec.d.ts +0 -2
- package/dist/validate-lambda-codec.js +0 -21
- package/dist/validate-memory-size.d.ts +0 -1
- package/dist/validate-memory-size.js +0 -22
- package/dist/validate-presign-expiration.d.ts +0 -1
- package/dist/validate-presign-expiration.js +0 -29
- package/dist/validate-serveurl.d.ts +0 -1
- package/dist/validate-serveurl.js +0 -9
- package/dist/validate-webhook-signature.d.ts +0 -5
- package/dist/validate-webhook-signature.js +0 -28
- package/dist/write-file.d.ts +0 -5
- package/dist/write-file.js +0 -83
package/dist/cjs/index.js
CHANGED
|
@@ -65826,12 +65826,12 @@ __export(exports_src, {
|
|
|
65826
65826
|
module.exports = __toCommonJS(exports_src);
|
|
65827
65827
|
|
|
65828
65828
|
// src/get-service-client.ts
|
|
65829
|
-
var import_client_cloudwatch_logs = __toESM(require_dist_cjs64());
|
|
65830
|
-
var import_client_iam = __toESM(require_dist_cjs66());
|
|
65831
|
-
var import_client_lambda = __toESM(require_dist_cjs67());
|
|
65832
|
-
var import_client_s3 = __toESM(require_dist_cjs77());
|
|
65833
|
-
var import_client_service_quotas = __toESM(require_dist_cjs78());
|
|
65834
|
-
var import_client_sts = __toESM(require_dist_cjs79());
|
|
65829
|
+
var import_client_cloudwatch_logs = __toESM(require_dist_cjs64(), 1);
|
|
65830
|
+
var import_client_iam = __toESM(require_dist_cjs66(), 1);
|
|
65831
|
+
var import_client_lambda = __toESM(require_dist_cjs67(), 1);
|
|
65832
|
+
var import_client_s3 = __toESM(require_dist_cjs77(), 1);
|
|
65833
|
+
var import_client_service_quotas = __toESM(require_dist_cjs78(), 1);
|
|
65834
|
+
var import_client_sts = __toESM(require_dist_cjs79(), 1);
|
|
65835
65835
|
|
|
65836
65836
|
// ../serverless-client/dist/esm/index.mjs
|
|
65837
65837
|
var tty = __toESM(require("tty"));
|
|
@@ -66555,7 +66555,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
66555
66555
|
}
|
|
66556
66556
|
}
|
|
66557
66557
|
};
|
|
66558
|
-
var VERSION = "4.0.
|
|
66558
|
+
var VERSION = "4.0.388";
|
|
66559
66559
|
var isColorSupported = () => {
|
|
66560
66560
|
const env = process.env || {};
|
|
66561
66561
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -68465,7 +68465,7 @@ var checkCredentials = () => {
|
|
|
68465
68465
|
};
|
|
68466
68466
|
|
|
68467
68467
|
// src/get-credentials.ts
|
|
68468
|
-
var import_credential_provider_ini = __toESM(require_dist_cjs56());
|
|
68468
|
+
var import_credential_provider_ini = __toESM(require_dist_cjs56(), 1);
|
|
68469
68469
|
|
|
68470
68470
|
// src/is-in-lambda.ts
|
|
68471
68471
|
var isInsideLambda = () => Boolean(typeof process !== "undefined" && process?.env?.__RESERVED_IS_INSIDE_REMOTION_LAMBDA);
|
|
@@ -68676,7 +68676,7 @@ var getStsClient = (region, requestHandler) => {
|
|
|
68676
68676
|
var import_node_events = require("node:events");
|
|
68677
68677
|
|
|
68678
68678
|
// src/bucket-exists.ts
|
|
68679
|
-
var import_client_s32 = __toESM(require_dist_cjs77());
|
|
68679
|
+
var import_client_s32 = __toESM(require_dist_cjs77(), 1);
|
|
68680
68680
|
|
|
68681
68681
|
// src/get-s3-client.ts
|
|
68682
68682
|
var getS3Client = ({
|
|
@@ -68722,7 +68722,7 @@ var bucketExistsInRegionImplementation = async ({
|
|
|
68722
68722
|
};
|
|
68723
68723
|
|
|
68724
68724
|
// src/call-lambda-async.ts
|
|
68725
|
-
var import_client_lambda2 = __toESM(require_dist_cjs67());
|
|
68725
|
+
var import_client_lambda2 = __toESM(require_dist_cjs67(), 1);
|
|
68726
68726
|
var callFunctionAsyncImplementation = async ({
|
|
68727
68727
|
functionName,
|
|
68728
68728
|
payload,
|
|
@@ -68744,7 +68744,7 @@ var callFunctionAsyncImplementation = async ({
|
|
|
68744
68744
|
};
|
|
68745
68745
|
|
|
68746
68746
|
// src/call-lambda-streaming.ts
|
|
68747
|
-
var import_client_lambda3 = __toESM(require_dist_cjs67());
|
|
68747
|
+
var import_client_lambda3 = __toESM(require_dist_cjs67(), 1);
|
|
68748
68748
|
var STREAM_STALL_TIMEOUT = 30000;
|
|
68749
68749
|
var LAMBDA_STREAM_STALL = `AWS did not invoke Lambda in ${STREAM_STALL_TIMEOUT}ms`;
|
|
68750
68750
|
var parseJsonOrThrowSource = (data, type) => {
|
|
@@ -68859,7 +68859,7 @@ var callFunctionWithStreamingImplementation = async (options) => {
|
|
|
68859
68859
|
};
|
|
68860
68860
|
|
|
68861
68861
|
// src/call-lambda-sync.ts
|
|
68862
|
-
var import_client_lambda4 = __toESM(require_dist_cjs67());
|
|
68862
|
+
var import_client_lambda4 = __toESM(require_dist_cjs67(), 1);
|
|
68863
68863
|
var callLambdaSyncWithoutRetry = async ({
|
|
68864
68864
|
functionName,
|
|
68865
68865
|
payload,
|
|
@@ -68917,7 +68917,7 @@ var convertToServeUrlImplementation = ({
|
|
|
68917
68917
|
};
|
|
68918
68918
|
|
|
68919
68919
|
// src/create-bucket.ts
|
|
68920
|
-
var import_client_s33 = __toESM(require_dist_cjs77());
|
|
68920
|
+
var import_client_s33 = __toESM(require_dist_cjs77(), 1);
|
|
68921
68921
|
var createBucket = async ({ region, bucketName, forcePathStyle, requestHandler }) => {
|
|
68922
68922
|
await getS3Client({
|
|
68923
68923
|
region,
|
|
@@ -68976,7 +68976,7 @@ var createBucket = async ({ region, bucketName, forcePathStyle, requestHandler }
|
|
|
68976
68976
|
};
|
|
68977
68977
|
|
|
68978
68978
|
// src/delete-file.ts
|
|
68979
|
-
var import_client_s34 = __toESM(require_dist_cjs77());
|
|
68979
|
+
var import_client_s34 = __toESM(require_dist_cjs77(), 1);
|
|
68980
68980
|
var lambdaDeleteFileImplementation = async ({
|
|
68981
68981
|
bucketName,
|
|
68982
68982
|
key,
|
|
@@ -68997,7 +68997,7 @@ var lambdaDeleteFileImplementation = async ({
|
|
|
68997
68997
|
};
|
|
68998
68998
|
|
|
68999
68999
|
// src/delete-function.ts
|
|
69000
|
-
var import_client_lambda5 = __toESM(require_dist_cjs67());
|
|
69000
|
+
var import_client_lambda5 = __toESM(require_dist_cjs67(), 1);
|
|
69001
69001
|
var deleteFunction = async ({
|
|
69002
69002
|
region,
|
|
69003
69003
|
functionName,
|
|
@@ -69935,7 +69935,7 @@ var estimatePrice = ({
|
|
|
69935
69935
|
};
|
|
69936
69936
|
|
|
69937
69937
|
// src/get-account-id.ts
|
|
69938
|
-
var import_client_sts2 = __toESM(require_dist_cjs79());
|
|
69938
|
+
var import_client_sts2 = __toESM(require_dist_cjs79(), 1);
|
|
69939
69939
|
var getAccountIdImplementation = async (options) => {
|
|
69940
69940
|
validateAwsRegion(options.region);
|
|
69941
69941
|
const callerIdentity = await getStsClient(options.region, null).send(new import_client_sts2.GetCallerIdentityCommand({}));
|
|
@@ -69996,7 +69996,7 @@ var getProgressJsonUrl = ({
|
|
|
69996
69996
|
};
|
|
69997
69997
|
|
|
69998
69998
|
// src/get-buckets.ts
|
|
69999
|
-
var import_client_s35 = __toESM(require_dist_cjs77());
|
|
69999
|
+
var import_client_s35 = __toESM(require_dist_cjs77(), 1);
|
|
70000
70000
|
|
|
70001
70001
|
// src/validate-bucketname.ts
|
|
70002
70002
|
var parseBucketName = (name) => {
|
|
@@ -70066,7 +70066,7 @@ var getRemotionBuckets = async ({
|
|
|
70066
70066
|
};
|
|
70067
70067
|
|
|
70068
70068
|
// src/get-functions.ts
|
|
70069
|
-
var import_client_lambda6 = __toESM(require_dist_cjs67());
|
|
70069
|
+
var import_client_lambda6 = __toESM(require_dist_cjs67(), 1);
|
|
70070
70070
|
|
|
70071
70071
|
// src/get-function-version.ts
|
|
70072
70072
|
var getFunctionVersion = async ({
|
|
@@ -70189,7 +70189,7 @@ var getOutputUrlFromMetadata = ({
|
|
|
70189
70189
|
};
|
|
70190
70190
|
|
|
70191
70191
|
// src/head-file.ts
|
|
70192
|
-
var import_client_s36 = __toESM(require_dist_cjs77());
|
|
70192
|
+
var import_client_s36 = __toESM(require_dist_cjs77(), 1);
|
|
70193
70193
|
var lambdaHeadFileImplementation = async ({
|
|
70194
70194
|
bucketName,
|
|
70195
70195
|
key,
|
|
@@ -70274,7 +70274,7 @@ var isFlakyError = (err) => {
|
|
|
70274
70274
|
};
|
|
70275
70275
|
|
|
70276
70276
|
// src/lifecycle-rules.ts
|
|
70277
|
-
var import_client_s37 = __toESM(require_dist_cjs77());
|
|
70277
|
+
var import_client_s37 = __toESM(require_dist_cjs77(), 1);
|
|
70278
70278
|
|
|
70279
70279
|
// src/apply-lifecycle.ts
|
|
70280
70280
|
var deleteLifeCycleInput = ({
|
|
@@ -70403,7 +70403,7 @@ var applyLifeCyleOperation = async ({
|
|
|
70403
70403
|
};
|
|
70404
70404
|
|
|
70405
70405
|
// src/list-objects.ts
|
|
70406
|
-
var import_client_s38 = __toESM(require_dist_cjs77());
|
|
70406
|
+
var import_client_s38 = __toESM(require_dist_cjs77(), 1);
|
|
70407
70407
|
var lambdaLsImplementation = async ({
|
|
70408
70408
|
bucketName,
|
|
70409
70409
|
prefix,
|
|
@@ -70497,7 +70497,7 @@ var randomHashImplementation = () => {
|
|
|
70497
70497
|
};
|
|
70498
70498
|
|
|
70499
70499
|
// src/read-file.ts
|
|
70500
|
-
var import_client_s39 = __toESM(require_dist_cjs77());
|
|
70500
|
+
var import_client_s39 = __toESM(require_dist_cjs77(), 1);
|
|
70501
70501
|
var lambdaReadFileImplementation = async ({
|
|
70502
70502
|
bucketName,
|
|
70503
70503
|
key,
|
|
@@ -70520,9 +70520,9 @@ var lambdaReadFileImplementation = async ({
|
|
|
70520
70520
|
};
|
|
70521
70521
|
|
|
70522
70522
|
// src/write-file.ts
|
|
70523
|
-
var import_client_s310 = __toESM(require_dist_cjs77());
|
|
70524
|
-
var import_lib_storage = __toESM(require_dist_cjs81());
|
|
70525
|
-
var import_mime_types = __toESM(require_mime_types());
|
|
70523
|
+
var import_client_s310 = __toESM(require_dist_cjs77(), 1);
|
|
70524
|
+
var import_lib_storage = __toESM(require_dist_cjs81(), 1);
|
|
70525
|
+
var import_mime_types = __toESM(require_mime_types(), 1);
|
|
70526
70526
|
|
|
70527
70527
|
// src/content-disposition-header.ts
|
|
70528
70528
|
var problematicCharacters = {
|
|
@@ -71613,12 +71613,12 @@ var expressWebhook = (options) => {
|
|
|
71613
71613
|
};
|
|
71614
71614
|
};
|
|
71615
71615
|
// src/get-aws-client.ts
|
|
71616
|
-
var CloudWatchSDK = __toESM(require_dist_cjs64());
|
|
71617
|
-
var IamSdk = __toESM(require_dist_cjs66());
|
|
71618
|
-
var LambdaSDK = __toESM(require_dist_cjs67());
|
|
71619
|
-
var S3SDK = __toESM(require_dist_cjs77());
|
|
71620
|
-
var ServiceQuotasSDK = __toESM(require_dist_cjs78());
|
|
71621
|
-
var StsSdk = __toESM(require_dist_cjs79());
|
|
71616
|
+
var CloudWatchSDK = __toESM(require_dist_cjs64(), 1);
|
|
71617
|
+
var IamSdk = __toESM(require_dist_cjs66(), 1);
|
|
71618
|
+
var LambdaSDK = __toESM(require_dist_cjs67(), 1);
|
|
71619
|
+
var S3SDK = __toESM(require_dist_cjs77(), 1);
|
|
71620
|
+
var ServiceQuotasSDK = __toESM(require_dist_cjs78(), 1);
|
|
71621
|
+
var StsSdk = __toESM(require_dist_cjs79(), 1);
|
|
71622
71622
|
var getAwsClient = ({
|
|
71623
71623
|
region,
|
|
71624
71624
|
service,
|
|
@@ -71747,8 +71747,8 @@ var getRenderProgress = async (input) => {
|
|
|
71747
71747
|
return result;
|
|
71748
71748
|
};
|
|
71749
71749
|
// src/presign-url.ts
|
|
71750
|
-
var import_client_s311 = __toESM(require_dist_cjs77());
|
|
71751
|
-
var import_s3_request_presigner = __toESM(require_dist_cjs83());
|
|
71750
|
+
var import_client_s311 = __toESM(require_dist_cjs77(), 1);
|
|
71751
|
+
var import_s3_request_presigner = __toESM(require_dist_cjs83(), 1);
|
|
71752
71752
|
|
|
71753
71753
|
// src/validate-presign-expiration.ts
|
|
71754
71754
|
var MAX_PRESIGN_EXPIRATION = 604800;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4713,7 +4713,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
4713
4713
|
});
|
|
4714
4714
|
}
|
|
4715
4715
|
async loadEventStreamCapability() {
|
|
4716
|
-
const { EventStreamSerde } = await Promise.resolve().then(() => __toESM(require_event_streams()
|
|
4716
|
+
const { EventStreamSerde } = await Promise.resolve().then(() => __toESM(require_event_streams()));
|
|
4717
4717
|
return new EventStreamSerde({
|
|
4718
4718
|
marshaller: this.getEventStreamMarshaller(),
|
|
4719
4719
|
serializer: this.serializer,
|
|
@@ -16896,7 +16896,7 @@ var require_dist_cjs48 = __commonJS((exports) => {
|
|
|
16896
16896
|
}
|
|
16897
16897
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
16898
16898
|
try {
|
|
16899
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
16899
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
16900
16900
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
16901
16901
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
16902
16902
|
} catch (e) {}
|
|
@@ -17618,7 +17618,7 @@ var require_dist_cjs50 = __commonJS((exports) => {
|
|
|
17618
17618
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
17619
17619
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
17620
17620
|
var getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
17621
|
-
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc()
|
|
17621
|
+
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc()));
|
|
17622
17622
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop];
|
|
17623
17623
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
17624
17624
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -17628,7 +17628,7 @@ var require_dist_cjs50 = __commonJS((exports) => {
|
|
|
17628
17628
|
return ssoOidcClient;
|
|
17629
17629
|
};
|
|
17630
17630
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
17631
|
-
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc()
|
|
17631
|
+
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc()));
|
|
17632
17632
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
17633
17633
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
17634
17634
|
clientId: ssoToken.clientId,
|
|
@@ -19430,7 +19430,7 @@ var require_dist_cjs53 = __commonJS((exports) => {
|
|
|
19430
19430
|
return this.profileData.login_session;
|
|
19431
19431
|
}
|
|
19432
19432
|
async refresh(token) {
|
|
19433
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await Promise.resolve().then(() => __toESM(require_signin()
|
|
19433
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await Promise.resolve().then(() => __toESM(require_signin()));
|
|
19434
19434
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
19435
19435
|
const isH2 = (requestHandler2) => {
|
|
19436
19436
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
@@ -20739,19 +20739,19 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20739
20739
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
20740
20740
|
const sourceProvidersMap = {
|
|
20741
20741
|
EcsContainer: async (options) => {
|
|
20742
|
-
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()
|
|
20743
|
-
const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
20742
|
+
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()));
|
|
20743
|
+
const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
20744
20744
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
20745
20745
|
return async () => propertyProvider.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
20746
20746
|
},
|
|
20747
20747
|
Ec2InstanceMetadata: async (options) => {
|
|
20748
20748
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
20749
|
-
const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
20749
|
+
const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
20750
20750
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
20751
20751
|
},
|
|
20752
20752
|
Environment: async (options) => {
|
|
20753
20753
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
20754
|
-
const { fromEnv } = await Promise.resolve().then(() => __toESM(require_dist_cjs42()
|
|
20754
|
+
const { fromEnv } = await Promise.resolve().then(() => __toESM(require_dist_cjs42()));
|
|
20755
20755
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
20756
20756
|
}
|
|
20757
20757
|
};
|
|
@@ -20784,7 +20784,7 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20784
20784
|
const profileData = profiles[profileName];
|
|
20785
20785
|
const { source_profile, region } = profileData;
|
|
20786
20786
|
if (!options.roleAssumer) {
|
|
20787
|
-
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM(require_sts()
|
|
20787
|
+
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM(require_sts()));
|
|
20788
20788
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
20789
20789
|
...options.clientConfig,
|
|
20790
20790
|
credentialProviderLogger: options.logger,
|
|
@@ -20837,12 +20837,12 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20837
20837
|
return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
20838
20838
|
};
|
|
20839
20839
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
20840
|
-
var resolveProcessCredentials = async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs54()
|
|
20840
|
+
var resolveProcessCredentials = async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs54())).then(({ fromProcess }) => fromProcess({
|
|
20841
20841
|
...options,
|
|
20842
20842
|
profile
|
|
20843
20843
|
})().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
20844
20844
|
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
20845
|
-
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()
|
|
20845
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
|
|
20846
20846
|
return fromSSO({
|
|
20847
20847
|
profile,
|
|
20848
20848
|
logger: options.logger,
|
|
@@ -20870,7 +20870,7 @@ var require_dist_cjs56 = __commonJS((exports) => {
|
|
|
20870
20870
|
return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
20871
20871
|
};
|
|
20872
20872
|
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
20873
|
-
var resolveWebIdentityCredentials = async (profile, options) => Promise.resolve().then(() => __toESM(require_dist_cjs55()
|
|
20873
|
+
var resolveWebIdentityCredentials = async (profile, options) => Promise.resolve().then(() => __toESM(require_dist_cjs55())).then(({ fromTokenFile }) => fromTokenFile({
|
|
20874
20874
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
20875
20875
|
roleArn: profile.role_arn,
|
|
20876
20876
|
roleSessionName: profile.role_session_name,
|
|
@@ -20927,10 +20927,10 @@ var require_dist_cjs57 = __commonJS((exports) => {
|
|
|
20927
20927
|
var sharedIniFileLoader = require_dist_cjs36();
|
|
20928
20928
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
20929
20929
|
var remoteProvider = async (init) => {
|
|
20930
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()
|
|
20930
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs43()));
|
|
20931
20931
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
20932
20932
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
20933
|
-
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()
|
|
20933
|
+
const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()));
|
|
20934
20934
|
return propertyProvider.chain(fromHttp(init), fromContainerMetadata(init));
|
|
20935
20935
|
}
|
|
20936
20936
|
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
@@ -21027,22 +21027,22 @@ var require_dist_cjs57 = __commonJS((exports) => {
|
|
|
21027
21027
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
21028
21028
|
throw new propertyProvider.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
21029
21029
|
}
|
|
21030
|
-
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()
|
|
21030
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
|
|
21031
21031
|
return fromSSO(init)(awsIdentityProperties);
|
|
21032
21032
|
},
|
|
21033
21033
|
async (awsIdentityProperties) => {
|
|
21034
21034
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
21035
|
-
const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs56()
|
|
21035
|
+
const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs56()));
|
|
21036
21036
|
return fromIni(init)(awsIdentityProperties);
|
|
21037
21037
|
},
|
|
21038
21038
|
async (awsIdentityProperties) => {
|
|
21039
21039
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
21040
|
-
const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs54()
|
|
21040
|
+
const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs54()));
|
|
21041
21041
|
return fromProcess(init)(awsIdentityProperties);
|
|
21042
21042
|
},
|
|
21043
21043
|
async (awsIdentityProperties) => {
|
|
21044
21044
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
21045
|
-
const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs55()
|
|
21045
|
+
const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs55()));
|
|
21046
21046
|
return fromTokenFile(init)(awsIdentityProperties);
|
|
21047
21047
|
},
|
|
21048
21048
|
async () => {
|
|
@@ -65898,7 +65898,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
65898
65898
|
}
|
|
65899
65899
|
}
|
|
65900
65900
|
};
|
|
65901
|
-
var VERSION = "4.0.
|
|
65901
|
+
var VERSION = "4.0.388";
|
|
65902
65902
|
var isColorSupported = () => {
|
|
65903
65903
|
const env = process.env || {};
|
|
65904
65904
|
const isForceDisabled = "NO_COLOR" in env;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda-client"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/lambda-client",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.388",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"scripts": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"@aws-sdk/lib-storage": "3.936.0",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"@aws-sdk/credential-provider-ini": "3.936.0",
|
|
29
|
-
"@remotion/serverless-client": "4.0.
|
|
29
|
+
"@remotion/serverless-client": "4.0.388",
|
|
30
30
|
"@types/express": "^5.0.0",
|
|
31
31
|
"express": "4.21.0",
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.388",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
|
-
"next": "16.0.
|
|
34
|
+
"next": "16.0.10",
|
|
35
35
|
"@types/mime-types": "2.1.1"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { WebhookErrorPayload, WebhookSuccessPayload, WebhookTimeoutPayload } from '@remotion/serverless-client';
|
|
2
|
-
export type NextWebhookArgs = {
|
|
3
|
-
testing?: boolean;
|
|
4
|
-
extraHeaders?: Record<string, string>;
|
|
5
|
-
secret: string;
|
|
6
|
-
onSuccess?: (payload: WebhookSuccessPayload) => void;
|
|
7
|
-
onTimeout?: (payload: WebhookTimeoutPayload) => void;
|
|
8
|
-
onError?: (payload: WebhookErrorPayload) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const appRouterWebhook: (options: NextWebhookArgs) => ((req: Request) => Promise<Response>);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.appRouterWebhook = void 0;
|
|
4
|
-
const validate_webhook_signature_1 = require("./validate-webhook-signature");
|
|
5
|
-
const appRouterWebhook = (options) => {
|
|
6
|
-
const { testing, extraHeaders, secret, onSuccess, onTimeout, onError } = options;
|
|
7
|
-
return async function (req) {
|
|
8
|
-
let headers = extraHeaders || {};
|
|
9
|
-
if (testing) {
|
|
10
|
-
const testingheaders = {
|
|
11
|
-
'Access-Control-Allow-Origin': 'https://www.remotion.dev',
|
|
12
|
-
'Access-Control-Allow-Headers': 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, X-Remotion-Status, X-Remotion-Signature, X-Remotion-Mode',
|
|
13
|
-
'Access-Control-Allow-Methods': 'OPTIONS,POST',
|
|
14
|
-
};
|
|
15
|
-
headers = { ...headers, ...testingheaders };
|
|
16
|
-
}
|
|
17
|
-
if (req.method === 'OPTIONS') {
|
|
18
|
-
// do we have any use of the OPTIONS method other than the tester on webhooks page ? if so we can add a condition here to only return this if testing mode enabled
|
|
19
|
-
return new Response(null, {
|
|
20
|
-
headers,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
// Parse the body properly
|
|
24
|
-
const body = await req.json();
|
|
25
|
-
(0, validate_webhook_signature_1.validateWebhookSignature)({
|
|
26
|
-
secret,
|
|
27
|
-
body,
|
|
28
|
-
signatureHeader: req.headers.get('X-Remotion-Signature'),
|
|
29
|
-
});
|
|
30
|
-
const payload = body;
|
|
31
|
-
if (payload.type === 'success' && onSuccess) {
|
|
32
|
-
onSuccess(payload);
|
|
33
|
-
}
|
|
34
|
-
else if (payload.type === 'timeout' && onTimeout) {
|
|
35
|
-
onTimeout(payload);
|
|
36
|
-
}
|
|
37
|
-
else if (payload.type === 'error' && onError) {
|
|
38
|
-
onError(payload);
|
|
39
|
-
}
|
|
40
|
-
return new Response(JSON.stringify({ success: true }), { headers });
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.appRouterWebhook = appRouterWebhook;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DeleteBucketLifecycleCommandInput, LifecycleRule, PutBucketLifecycleConfigurationCommandInput } from '@aws-sdk/client-s3';
|
|
2
|
-
export declare const deleteLifeCycleInput: ({ bucketName, }: {
|
|
3
|
-
bucketName: string;
|
|
4
|
-
}) => DeleteBucketLifecycleCommandInput;
|
|
5
|
-
export declare const createLifeCycleInput: ({ bucketName, lcRules, }: {
|
|
6
|
-
bucketName: string;
|
|
7
|
-
lcRules: LifecycleRule[];
|
|
8
|
-
}) => PutBucketLifecycleConfigurationCommandInput;
|
package/dist/apply-lifecycle.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLifeCycleInput = exports.deleteLifeCycleInput = void 0;
|
|
4
|
-
const deleteLifeCycleInput = ({ bucketName, }) => {
|
|
5
|
-
return {
|
|
6
|
-
Bucket: bucketName,
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
exports.deleteLifeCycleInput = deleteLifeCycleInput;
|
|
10
|
-
const createLifeCycleInput = ({ bucketName, lcRules, }) => {
|
|
11
|
-
return {
|
|
12
|
-
Bucket: bucketName,
|
|
13
|
-
LifecycleConfiguration: {
|
|
14
|
-
Rules: lcRules,
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
exports.createLifeCycleInput = createLifeCycleInput;
|
package/dist/aws-clients.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { CloudWatchLogsClient } from '@aws-sdk/client-cloudwatch-logs';
|
|
2
|
-
import type { IAMClient } from '@aws-sdk/client-iam';
|
|
3
|
-
import type { LambdaClient } from '@aws-sdk/client-lambda';
|
|
4
|
-
import type { ServiceQuotasClient } from '@aws-sdk/client-service-quotas';
|
|
5
|
-
import type { STSClient } from '@aws-sdk/client-sts';
|
|
6
|
-
import type { AwsRegion } from './regions';
|
|
7
|
-
import type { RequestHandler } from './types';
|
|
8
|
-
export declare const getCloudWatchLogsClient: (region: AwsRegion, requestHandler: RequestHandler | null) => CloudWatchLogsClient;
|
|
9
|
-
export declare const getLambdaClient: (region: AwsRegion, _timeoutInTest: number | undefined, requestHandler: RequestHandler | null) => LambdaClient;
|
|
10
|
-
export declare const getIamClient: (region: AwsRegion, requestHandler: RequestHandler | null) => IAMClient;
|
|
11
|
-
export declare const getServiceQuotasClient: (region: AwsRegion, requestHandler: RequestHandler | null) => ServiceQuotasClient;
|
|
12
|
-
export declare const getStsClient: (region: AwsRegion, requestHandler: RequestHandler | null) => STSClient;
|
package/dist/aws-clients.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStsClient = exports.getServiceQuotasClient = exports.getIamClient = exports.getLambdaClient = exports.getCloudWatchLogsClient = void 0;
|
|
4
|
-
const get_service_client_1 = require("./get-service-client");
|
|
5
|
-
const getCloudWatchLogsClient = (region, requestHandler) => {
|
|
6
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
7
|
-
region,
|
|
8
|
-
service: 'cloudwatch',
|
|
9
|
-
customCredentials: null,
|
|
10
|
-
forcePathStyle: false,
|
|
11
|
-
requestHandler,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
exports.getCloudWatchLogsClient = getCloudWatchLogsClient;
|
|
15
|
-
const getLambdaClient = (region,
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17
|
-
_timeoutInTest, requestHandler) => {
|
|
18
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
19
|
-
region,
|
|
20
|
-
service: 'lambda',
|
|
21
|
-
customCredentials: null,
|
|
22
|
-
forcePathStyle: false,
|
|
23
|
-
requestHandler,
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
exports.getLambdaClient = getLambdaClient;
|
|
27
|
-
const getIamClient = (region, requestHandler) => {
|
|
28
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
29
|
-
region,
|
|
30
|
-
service: 'iam',
|
|
31
|
-
customCredentials: null,
|
|
32
|
-
forcePathStyle: false,
|
|
33
|
-
requestHandler,
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
exports.getIamClient = getIamClient;
|
|
37
|
-
const getServiceQuotasClient = (region, requestHandler) => {
|
|
38
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
39
|
-
region,
|
|
40
|
-
service: 'servicequotas',
|
|
41
|
-
customCredentials: null,
|
|
42
|
-
forcePathStyle: false,
|
|
43
|
-
requestHandler,
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
exports.getServiceQuotasClient = getServiceQuotasClient;
|
|
47
|
-
const getStsClient = (region, requestHandler) => {
|
|
48
|
-
return (0, get_service_client_1.getServiceClient)({
|
|
49
|
-
region,
|
|
50
|
-
service: 'sts',
|
|
51
|
-
customCredentials: null,
|
|
52
|
-
forcePathStyle: false,
|
|
53
|
-
requestHandler,
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.getStsClient = getStsClient;
|
package/dist/aws-provider.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { AwsRegion } from './regions';
|
|
2
|
-
export type AwsProvider = {
|
|
3
|
-
type: 'aws';
|
|
4
|
-
region: AwsRegion;
|
|
5
|
-
receivedArtifactType: {
|
|
6
|
-
s3Key: string;
|
|
7
|
-
s3Url: string;
|
|
8
|
-
};
|
|
9
|
-
creationFunctionOptions: {
|
|
10
|
-
createCloudWatchLogGroup: boolean;
|
|
11
|
-
accountId: string;
|
|
12
|
-
alreadyCreated: boolean;
|
|
13
|
-
retentionInDays: number;
|
|
14
|
-
customRoleArn: string;
|
|
15
|
-
enableLambdaInsights: boolean;
|
|
16
|
-
vpcSubnetIds: string;
|
|
17
|
-
vpcSecurityGroupIds: string;
|
|
18
|
-
runtimePreference: RuntimePreference;
|
|
19
|
-
};
|
|
20
|
-
storageClass: StorageClass;
|
|
21
|
-
requestHandler: RequestHandler | null | undefined;
|
|
22
|
-
};
|
|
23
|
-
import type { StorageClass } from '@aws-sdk/client-s3';
|
|
24
|
-
import type { ProviderSpecifics } from '@remotion/serverless-client';
|
|
25
|
-
import type { RuntimePreference } from './runtime-preference';
|
|
26
|
-
import type { RequestHandler } from './types';
|
|
27
|
-
export declare const awsImplementation: ProviderSpecifics<AwsProvider>;
|
package/dist/aws-provider.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.awsImplementation = void 0;
|
|
5
|
-
const serverless_client_1 = require("@remotion/serverless-client");
|
|
6
|
-
const node_events_1 = require("node:events");
|
|
7
|
-
const bucket_exists_1 = require("./bucket-exists");
|
|
8
|
-
const call_lambda_async_1 = require("./call-lambda-async");
|
|
9
|
-
const call_lambda_streaming_1 = require("./call-lambda-streaming");
|
|
10
|
-
const call_lambda_sync_1 = require("./call-lambda-sync");
|
|
11
|
-
const check_credentials_1 = require("./check-credentials");
|
|
12
|
-
const constants_1 = require("./constants");
|
|
13
|
-
const convert_to_serve_url_1 = require("./convert-to-serve-url");
|
|
14
|
-
const create_bucket_1 = require("./create-bucket");
|
|
15
|
-
const delete_file_1 = require("./delete-file");
|
|
16
|
-
const delete_function_1 = require("./delete-function");
|
|
17
|
-
const estimate_price_1 = require("./estimate-price");
|
|
18
|
-
const get_account_id_1 = require("./get-account-id");
|
|
19
|
-
const get_aws_urls_1 = require("./get-aws-urls");
|
|
20
|
-
const get_buckets_1 = require("./get-buckets");
|
|
21
|
-
const get_functions_1 = require("./get-functions");
|
|
22
|
-
const get_output_url_from_metadata_1 = require("./get-output-url-from-metadata");
|
|
23
|
-
const head_file_1 = require("./head-file");
|
|
24
|
-
const is_flaky_error_1 = require("./is-flaky-error");
|
|
25
|
-
const lifecycle_rules_1 = require("./lifecycle-rules");
|
|
26
|
-
const list_objects_1 = require("./list-objects");
|
|
27
|
-
const parse_function_name_1 = require("./parse-function-name");
|
|
28
|
-
const random_hash_1 = require("./random-hash");
|
|
29
|
-
const read_file_1 = require("./read-file");
|
|
30
|
-
const write_file_1 = require("./write-file");
|
|
31
|
-
if (/^AWS_Lambda_nodejs(?:18|20)[.]x$/.test((_a = process.env.AWS_EXECUTION_ENV) !== null && _a !== void 0 ? _a : '') === true) {
|
|
32
|
-
process.env.FONTCONFIG_PATH = '/opt';
|
|
33
|
-
process.env.FONTCONFIG_FILE = '/opt/fonts.conf';
|
|
34
|
-
process.env.DISABLE_FROM_SURFACE = '1';
|
|
35
|
-
process.env.NO_COLOR = '1';
|
|
36
|
-
// @ts-expect-error
|
|
37
|
-
globalThis._dumpUnreleasedBuffers = new node_events_1.EventEmitter();
|
|
38
|
-
// @ts-expect-error
|
|
39
|
-
globalThis._dumpUnreleasedBuffers.setMaxListeners(201);
|
|
40
|
-
}
|
|
41
|
-
const validateDeleteAfter = (lifeCycleValue) => {
|
|
42
|
-
if (lifeCycleValue === null) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (lifeCycleValue === undefined) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (typeof lifeCycleValue !== 'string') {
|
|
49
|
-
throw new TypeError(`Expected life cycle value to be a string, got ${JSON.stringify(lifeCycleValue)}`);
|
|
50
|
-
}
|
|
51
|
-
if (!(lifeCycleValue in serverless_client_1.expiryDays)) {
|
|
52
|
-
throw new TypeError(`Expected deleteAfter value to be one of ${Object.keys(serverless_client_1.expiryDays).join(', ')}, got ${lifeCycleValue}`);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
exports.awsImplementation = {
|
|
56
|
-
getChromiumPath() {
|
|
57
|
-
return '/opt/bin/chromium';
|
|
58
|
-
},
|
|
59
|
-
getBuckets: get_buckets_1.getRemotionBuckets,
|
|
60
|
-
createBucket: create_bucket_1.createBucket,
|
|
61
|
-
applyLifeCycle: lifecycle_rules_1.applyLifeCyleOperation,
|
|
62
|
-
listObjects: list_objects_1.lambdaLsImplementation,
|
|
63
|
-
deleteFile: delete_file_1.lambdaDeleteFileImplementation,
|
|
64
|
-
bucketExists: bucket_exists_1.bucketExistsInRegionImplementation,
|
|
65
|
-
randomHash: random_hash_1.randomHashImplementation,
|
|
66
|
-
readFile: read_file_1.lambdaReadFileImplementation,
|
|
67
|
-
writeFile: write_file_1.lambdaWriteFileImplementation,
|
|
68
|
-
headFile: head_file_1.lambdaHeadFileImplementation,
|
|
69
|
-
convertToServeUrl: convert_to_serve_url_1.convertToServeUrlImplementation,
|
|
70
|
-
printLoggingHelper: true,
|
|
71
|
-
validateDeleteAfter,
|
|
72
|
-
callFunctionAsync: call_lambda_async_1.callFunctionAsyncImplementation,
|
|
73
|
-
callFunctionStreaming: call_lambda_streaming_1.callFunctionWithStreamingImplementation,
|
|
74
|
-
callFunctionSync: call_lambda_sync_1.callFunctionSyncImplementation,
|
|
75
|
-
getEphemeralStorageForPriceCalculation() {
|
|
76
|
-
// We cannot determine the ephemeral storage size, so we
|
|
77
|
-
// overestimate the price, but will only have a miniscule effect (~0.2%)
|
|
78
|
-
return constants_1.MAX_EPHEMERAL_STORAGE_IN_MB;
|
|
79
|
-
},
|
|
80
|
-
estimatePrice: estimate_price_1.estimatePrice,
|
|
81
|
-
getLoggingUrlForMethod: get_aws_urls_1.getCloudwatchMethodUrl,
|
|
82
|
-
getLoggingUrlForRendererFunction: get_aws_urls_1.getCloudwatchRendererUrl,
|
|
83
|
-
isFlakyError: is_flaky_error_1.isFlakyError,
|
|
84
|
-
getOutputUrl: get_output_url_from_metadata_1.getOutputUrlFromMetadata,
|
|
85
|
-
serverStorageProductName: () => 'S3',
|
|
86
|
-
getMaxStillInlinePayloadSize: () => 5000000,
|
|
87
|
-
getMaxNonInlinePayloadSizePerFunction: () => 200000,
|
|
88
|
-
getAccountId: get_account_id_1.getAccountIdImplementation,
|
|
89
|
-
deleteFunction: delete_function_1.deleteFunction,
|
|
90
|
-
getFunctions: get_functions_1.getFunctions,
|
|
91
|
-
parseFunctionName: parse_function_name_1.parseFunctionName,
|
|
92
|
-
checkCredentials: check_credentials_1.checkCredentials,
|
|
93
|
-
getBucketPrefix: () => constants_1.REMOTION_BUCKET_PREFIX,
|
|
94
|
-
};
|
package/dist/bucket-exists.d.ts
DELETED