@remotion/lambda 3.3.13 → 3.3.14
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/api/get-buckets.js +18 -7
- package/package.json +6 -6
- package/remotionlambda.zip +0 -0
package/dist/api/get-buckets.js
CHANGED
|
@@ -17,19 +17,30 @@ const getRemotionS3Buckets = async (region) => {
|
|
|
17
17
|
if (parsedRegion) {
|
|
18
18
|
return parsedRegion;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
try {
|
|
21
|
+
const result = await (0, aws_clients_1.getS3Client)(region, null).send(new client_s3_1.GetBucketLocationCommand({
|
|
22
|
+
Bucket: bucket.Name,
|
|
23
|
+
}));
|
|
24
|
+
// AWS docs: Buckets in Region us-east-1 have a LocationConstraint of null!!
|
|
25
|
+
return (_a = result.LocationConstraint) !== null && _a !== void 0 ? _a : 'us-east-1';
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
// Sometimes the API returns a bucket even if it was deleted before
|
|
29
|
+
if (err.message.includes('NoSuchBucket')) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
throw err;
|
|
33
|
+
}
|
|
25
34
|
}));
|
|
26
|
-
const bucketsWithLocation = remotionBuckets
|
|
35
|
+
const bucketsWithLocation = remotionBuckets
|
|
36
|
+
.map((bucket, i) => {
|
|
27
37
|
return {
|
|
28
38
|
creationDate: bucket.CreationDate.getTime(),
|
|
29
39
|
name: bucket.Name,
|
|
30
40
|
region: locations[i],
|
|
31
41
|
};
|
|
32
|
-
})
|
|
42
|
+
})
|
|
43
|
+
.filter((b) => b.region);
|
|
33
44
|
return {
|
|
34
45
|
remotionBuckets: bucketsWithLocation.filter((bucket) => {
|
|
35
46
|
return bucket.region === region;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.14",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"@aws-sdk/credential-providers": "3.215.0",
|
|
34
34
|
"@aws-sdk/lib-storage": "3.215.0",
|
|
35
35
|
"@aws-sdk/s3-request-presigner": "3.215.0",
|
|
36
|
-
"@remotion/bundler": "3.3.
|
|
37
|
-
"@remotion/cli": "3.3.
|
|
38
|
-
"@remotion/renderer": "3.3.
|
|
36
|
+
"@remotion/bundler": "3.3.14",
|
|
37
|
+
"@remotion/cli": "3.3.14",
|
|
38
|
+
"@remotion/renderer": "3.3.14",
|
|
39
39
|
"aws-policies": "^1.0.1",
|
|
40
40
|
"mime-types": "2.1.34",
|
|
41
|
-
"remotion": "3.3.
|
|
41
|
+
"remotion": "3.3.14"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "85189b3037c37ec1a63dfc1f10a22981b3a56382"
|
|
65
65
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|