@remotion/lambda-client 4.0.486 → 4.0.488
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 +17 -8
- package/dist/esm/index.mjs +17 -8
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -71401,7 +71401,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
71401
71401
|
}
|
|
71402
71402
|
}
|
|
71403
71403
|
};
|
|
71404
|
-
var VERSION = "4.0.
|
|
71404
|
+
var VERSION = "4.0.488";
|
|
71405
71405
|
var isColorSupported = () => {
|
|
71406
71406
|
const env = process.env || {};
|
|
71407
71407
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -71862,6 +71862,16 @@ var makeStreamer = (onMessage) => {
|
|
|
71862
71862
|
}
|
|
71863
71863
|
};
|
|
71864
71864
|
};
|
|
71865
|
+
var OVERHEAD_TIME_PER_LAMBDA = 100;
|
|
71866
|
+
var calculateBillingDuration = ({
|
|
71867
|
+
timings,
|
|
71868
|
+
functionsInvoked,
|
|
71869
|
+
elapsedTimeOfUnfinishedChunks
|
|
71870
|
+
}) => {
|
|
71871
|
+
const completedChunksDuration = timings.map((p) => Math.max(0, p.rendered - p.start) + OVERHEAD_TIME_PER_LAMBDA).reduce((a, b) => a + b, 0);
|
|
71872
|
+
const unfinished = Math.max(0, functionsInvoked - timings.length);
|
|
71873
|
+
return completedChunksDuration + unfinished * elapsedTimeOfUnfinishedChunks;
|
|
71874
|
+
};
|
|
71865
71875
|
var min = (arr) => {
|
|
71866
71876
|
if (arr.length === 0) {
|
|
71867
71877
|
throw new Error("Array of 0 length");
|
|
@@ -72104,12 +72114,11 @@ var estimatePriceFromMetadata = ({
|
|
|
72104
72114
|
}
|
|
72105
72115
|
const now = fatalErrorTimestamp ?? Date.now();
|
|
72106
72116
|
const elapsedTime = Math.max(0, now - (renderMetadata?.startedDate ?? 0));
|
|
72107
|
-
const
|
|
72108
|
-
|
|
72109
|
-
|
|
72110
|
-
|
|
72111
|
-
|
|
72112
|
-
}) + timeElapsedOfUnfinished;
|
|
72117
|
+
const estimatedBillingDurationInMilliseconds = calculateBillingDuration({
|
|
72118
|
+
timings,
|
|
72119
|
+
functionsInvoked,
|
|
72120
|
+
elapsedTimeOfUnfinishedChunks: elapsedTime
|
|
72121
|
+
});
|
|
72113
72122
|
const accruedSoFar = Number(providerSpecifics.estimatePrice({
|
|
72114
72123
|
region,
|
|
72115
72124
|
durationInMilliseconds: estimatedBillingDurationInMilliseconds,
|
|
@@ -73192,7 +73201,7 @@ var getProgress = async ({
|
|
|
73192
73201
|
const priceFromBucket = estimatePriceFromMetadata({
|
|
73193
73202
|
renderMetadata,
|
|
73194
73203
|
memorySizeInMb: providerSpecifics.parseFunctionName(renderMetadata.rendererFunctionName)?.memorySizeInMb ?? memorySizeInMb,
|
|
73195
|
-
functionsInvoked:
|
|
73204
|
+
functionsInvoked: overallProgress.lambdasInvoked ?? 0,
|
|
73196
73205
|
diskSizeInMb: providerSpecifics.getEphemeralStorageForPriceCalculation(),
|
|
73197
73206
|
timings: overallProgress.timings ?? [],
|
|
73198
73207
|
region,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -70744,7 +70744,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
70744
70744
|
}
|
|
70745
70745
|
}
|
|
70746
70746
|
};
|
|
70747
|
-
var VERSION = "4.0.
|
|
70747
|
+
var VERSION = "4.0.488";
|
|
70748
70748
|
var isColorSupported = () => {
|
|
70749
70749
|
const env = process.env || {};
|
|
70750
70750
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -71205,6 +71205,16 @@ var makeStreamer = (onMessage) => {
|
|
|
71205
71205
|
}
|
|
71206
71206
|
};
|
|
71207
71207
|
};
|
|
71208
|
+
var OVERHEAD_TIME_PER_LAMBDA = 100;
|
|
71209
|
+
var calculateBillingDuration = ({
|
|
71210
|
+
timings,
|
|
71211
|
+
functionsInvoked,
|
|
71212
|
+
elapsedTimeOfUnfinishedChunks
|
|
71213
|
+
}) => {
|
|
71214
|
+
const completedChunksDuration = timings.map((p) => Math.max(0, p.rendered - p.start) + OVERHEAD_TIME_PER_LAMBDA).reduce((a, b) => a + b, 0);
|
|
71215
|
+
const unfinished = Math.max(0, functionsInvoked - timings.length);
|
|
71216
|
+
return completedChunksDuration + unfinished * elapsedTimeOfUnfinishedChunks;
|
|
71217
|
+
};
|
|
71208
71218
|
var min = (arr) => {
|
|
71209
71219
|
if (arr.length === 0) {
|
|
71210
71220
|
throw new Error("Array of 0 length");
|
|
@@ -71447,12 +71457,11 @@ var estimatePriceFromMetadata = ({
|
|
|
71447
71457
|
}
|
|
71448
71458
|
const now = fatalErrorTimestamp ?? Date.now();
|
|
71449
71459
|
const elapsedTime = Math.max(0, now - (renderMetadata?.startedDate ?? 0));
|
|
71450
|
-
const
|
|
71451
|
-
|
|
71452
|
-
|
|
71453
|
-
|
|
71454
|
-
|
|
71455
|
-
}) + timeElapsedOfUnfinished;
|
|
71460
|
+
const estimatedBillingDurationInMilliseconds = calculateBillingDuration({
|
|
71461
|
+
timings,
|
|
71462
|
+
functionsInvoked,
|
|
71463
|
+
elapsedTimeOfUnfinishedChunks: elapsedTime
|
|
71464
|
+
});
|
|
71456
71465
|
const accruedSoFar = Number(providerSpecifics.estimatePrice({
|
|
71457
71466
|
region,
|
|
71458
71467
|
durationInMilliseconds: estimatedBillingDurationInMilliseconds,
|
|
@@ -72535,7 +72544,7 @@ var getProgress = async ({
|
|
|
72535
72544
|
const priceFromBucket = estimatePriceFromMetadata({
|
|
72536
72545
|
renderMetadata,
|
|
72537
72546
|
memorySizeInMb: providerSpecifics.parseFunctionName(renderMetadata.rendererFunctionName)?.memorySizeInMb ?? memorySizeInMb,
|
|
72538
|
-
functionsInvoked:
|
|
72547
|
+
functionsInvoked: overallProgress.lambdasInvoked ?? 0,
|
|
72539
72548
|
diskSizeInMb: providerSpecifics.getEphemeralStorageForPriceCalculation(),
|
|
72540
72549
|
timings: overallProgress.timings ?? [],
|
|
72541
72550
|
region,
|
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.488",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"formatting": "oxfmt src --check",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@aws-sdk/lib-storage": "3.986.0",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"@aws-sdk/credential-provider-ini": "3.972.5",
|
|
29
|
-
"@remotion/serverless-client": "4.0.
|
|
29
|
+
"@remotion/serverless-client": "4.0.488",
|
|
30
30
|
"@types/express": "5.0.1",
|
|
31
31
|
"express": "4.21.0",
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.488",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.2.6",
|
|
35
35
|
"@types/mime-types": "2.1.1",
|