@remotion/serverless-client 4.0.468 → 4.0.469
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/esm/index.mjs +6 -3
- package/package.json +5 -5
package/dist/esm/index.mjs
CHANGED
|
@@ -51,8 +51,8 @@ function checkValidInputRange(arr) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function checkInfiniteRange(name, arr) {
|
|
54
|
-
if (arr.length <
|
|
55
|
-
throw new Error(name + " must have at least
|
|
54
|
+
if (arr.length < 1) {
|
|
55
|
+
throw new Error(name + " must have at least 1 element");
|
|
56
56
|
}
|
|
57
57
|
for (const element of arr) {
|
|
58
58
|
if (typeof element !== "number") {
|
|
@@ -119,6 +119,9 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
119
119
|
if (typeof input !== "number") {
|
|
120
120
|
throw new TypeError("Cannot interpolate an input which is not a number");
|
|
121
121
|
}
|
|
122
|
+
if (inputRange.length === 1) {
|
|
123
|
+
return outputRange[0];
|
|
124
|
+
}
|
|
122
125
|
const range = findRange(input, inputRange);
|
|
123
126
|
return interpolateFunction(input, [inputRange[range], inputRange[range + 1]], [outputRange[range], outputRange[range + 1]], {
|
|
124
127
|
easing: resolveEasingForSegment(range),
|
|
@@ -1136,7 +1139,7 @@ var validateFramesPerFunction = ({
|
|
|
1136
1139
|
import * as tty from "tty";
|
|
1137
1140
|
|
|
1138
1141
|
// ../core/dist/esm/version.mjs
|
|
1139
|
-
var VERSION = "4.0.
|
|
1142
|
+
var VERSION = "4.0.469";
|
|
1140
1143
|
|
|
1141
1144
|
// ../renderer/dist/esm/error-handling.mjs
|
|
1142
1145
|
var isColorSupported = () => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/serverless-client"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/serverless-client",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.469",
|
|
7
7
|
"main": "dist",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"lint": "eslint src",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
28
|
-
"@remotion/renderer": "4.0.
|
|
29
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
26
|
+
"remotion": "4.0.469",
|
|
27
|
+
"@remotion/streaming": "4.0.469",
|
|
28
|
+
"@remotion/renderer": "4.0.469",
|
|
29
|
+
"@remotion/eslint-config-internal": "4.0.469",
|
|
30
30
|
"eslint": "9.19.0",
|
|
31
31
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
32
32
|
},
|