@remotion/lambda-client 4.0.517 → 4.0.519
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 +13 -6
- package/dist/esm/index.mjs +13 -6
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -70109,9 +70109,6 @@ function springCalculation({
|
|
|
70109
70109
|
const frameClamped = Math.max(0, frame);
|
|
70110
70110
|
const unevenRest = frameClamped % 1;
|
|
70111
70111
|
for (let f = 0;f <= Math.floor(frameClamped); f++) {
|
|
70112
|
-
if (f === Math.floor(frameClamped)) {
|
|
70113
|
-
f += unevenRest;
|
|
70114
|
-
}
|
|
70115
70112
|
const time = f / fps * 1000;
|
|
70116
70113
|
animation = advance({
|
|
70117
70114
|
animation,
|
|
@@ -70122,6 +70119,16 @@ function springCalculation({
|
|
|
70122
70119
|
}
|
|
70123
70120
|
});
|
|
70124
70121
|
}
|
|
70122
|
+
if (unevenRest > 0) {
|
|
70123
|
+
animation = advance({
|
|
70124
|
+
animation,
|
|
70125
|
+
now: frameClamped / fps * 1000,
|
|
70126
|
+
config: {
|
|
70127
|
+
...defaultSpringConfig,
|
|
70128
|
+
...config
|
|
70129
|
+
}
|
|
70130
|
+
});
|
|
70131
|
+
}
|
|
70125
70132
|
calculationCache[cacheKey] = animation;
|
|
70126
70133
|
return animation;
|
|
70127
70134
|
}
|
|
@@ -70831,7 +70838,7 @@ var interpolateString = ({
|
|
|
70831
70838
|
if (parsed.dimensions !== 1) {
|
|
70832
70839
|
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
70833
70840
|
}
|
|
70834
|
-
const adjacentAxisRotation = parsed.values[0] === 0 ? index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
70841
|
+
const adjacentAxisRotation = parsed.values[0] === 0 ? index === 0 ? initiallyParsedOutputRange.find((candidate) => candidate.axisRotation) : index === initiallyParsedOutputRange.length - 1 ? [...initiallyParsedOutputRange].reverse().find((candidate) => candidate.axisRotation) : index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
70835
70842
|
const axis = adjacentAxisRotation?.axisRotation ? adjacentAxisRotation.values : [0, 0, 1];
|
|
70836
70843
|
return {
|
|
70837
70844
|
kind: "rotate",
|
|
@@ -72209,7 +72216,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
72209
72216
|
}
|
|
72210
72217
|
}
|
|
72211
72218
|
};
|
|
72212
|
-
var VERSION = "4.0.
|
|
72219
|
+
var VERSION = "4.0.519";
|
|
72213
72220
|
var isColorSupported = () => {
|
|
72214
72221
|
const env = process.env || {};
|
|
72215
72222
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -74216,7 +74223,7 @@ var getProgress = async ({
|
|
|
74216
74223
|
}) : null,
|
|
74217
74224
|
overallProgress: getOverallProgress({
|
|
74218
74225
|
encoding: frameCount ? (overallProgress.framesEncoded ?? 0) / frameCount : 0,
|
|
74219
|
-
invoking: (overallProgress.lambdasInvoked ?? 0) / renderMetadata.estimatedRenderLambdaInvokations,
|
|
74226
|
+
invoking: renderMetadata.estimatedRenderLambdaInvokations === 0 ? (overallProgress.lambdasInvoked ?? 0) > 0 ? 1 : 0 : (overallProgress.lambdasInvoked ?? 0) / renderMetadata.estimatedRenderLambdaInvokations,
|
|
74220
74227
|
frames: (overallProgress.framesRendered ?? 0) / (frameCount ?? 1),
|
|
74221
74228
|
gotComposition: overallProgress.compositionValidated,
|
|
74222
74229
|
visitedServeUrl: overallProgress.serveUrlOpened,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -69451,9 +69451,6 @@ function springCalculation({
|
|
|
69451
69451
|
const frameClamped = Math.max(0, frame);
|
|
69452
69452
|
const unevenRest = frameClamped % 1;
|
|
69453
69453
|
for (let f = 0;f <= Math.floor(frameClamped); f++) {
|
|
69454
|
-
if (f === Math.floor(frameClamped)) {
|
|
69455
|
-
f += unevenRest;
|
|
69456
|
-
}
|
|
69457
69454
|
const time = f / fps * 1000;
|
|
69458
69455
|
animation = advance({
|
|
69459
69456
|
animation,
|
|
@@ -69464,6 +69461,16 @@ function springCalculation({
|
|
|
69464
69461
|
}
|
|
69465
69462
|
});
|
|
69466
69463
|
}
|
|
69464
|
+
if (unevenRest > 0) {
|
|
69465
|
+
animation = advance({
|
|
69466
|
+
animation,
|
|
69467
|
+
now: frameClamped / fps * 1000,
|
|
69468
|
+
config: {
|
|
69469
|
+
...defaultSpringConfig,
|
|
69470
|
+
...config
|
|
69471
|
+
}
|
|
69472
|
+
});
|
|
69473
|
+
}
|
|
69467
69474
|
calculationCache[cacheKey] = animation;
|
|
69468
69475
|
return animation;
|
|
69469
69476
|
}
|
|
@@ -70173,7 +70180,7 @@ var interpolateString = ({
|
|
|
70173
70180
|
if (parsed.dimensions !== 1) {
|
|
70174
70181
|
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
70175
70182
|
}
|
|
70176
|
-
const adjacentAxisRotation = parsed.values[0] === 0 ? index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
70183
|
+
const adjacentAxisRotation = parsed.values[0] === 0 ? index === 0 ? initiallyParsedOutputRange.find((candidate) => candidate.axisRotation) : index === initiallyParsedOutputRange.length - 1 ? [...initiallyParsedOutputRange].reverse().find((candidate) => candidate.axisRotation) : index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
70177
70184
|
const axis = adjacentAxisRotation?.axisRotation ? adjacentAxisRotation.values : [0, 0, 1];
|
|
70178
70185
|
return {
|
|
70179
70186
|
kind: "rotate",
|
|
@@ -71551,7 +71558,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
71551
71558
|
}
|
|
71552
71559
|
}
|
|
71553
71560
|
};
|
|
71554
|
-
var VERSION = "4.0.
|
|
71561
|
+
var VERSION = "4.0.519";
|
|
71555
71562
|
var isColorSupported = () => {
|
|
71556
71563
|
const env = process.env || {};
|
|
71557
71564
|
const isForceDisabled = "NO_COLOR" in env;
|
|
@@ -73558,7 +73565,7 @@ var getProgress = async ({
|
|
|
73558
73565
|
}) : null,
|
|
73559
73566
|
overallProgress: getOverallProgress({
|
|
73560
73567
|
encoding: frameCount ? (overallProgress.framesEncoded ?? 0) / frameCount : 0,
|
|
73561
|
-
invoking: (overallProgress.lambdasInvoked ?? 0) / renderMetadata.estimatedRenderLambdaInvokations,
|
|
73568
|
+
invoking: renderMetadata.estimatedRenderLambdaInvokations === 0 ? (overallProgress.lambdasInvoked ?? 0) > 0 ? 1 : 0 : (overallProgress.lambdasInvoked ?? 0) / renderMetadata.estimatedRenderLambdaInvokations,
|
|
73562
73569
|
frames: (overallProgress.framesRendered ?? 0) / (frameCount ?? 1),
|
|
73563
73570
|
gotComposition: overallProgress.compositionValidated,
|
|
73564
73571
|
visitedServeUrl: overallProgress.serveUrlOpened,
|
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.519",
|
|
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.519",
|
|
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.519",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.2.11",
|
|
35
35
|
"@types/mime-types": "2.1.1",
|