@remotion/vercel 4.0.529 → 4.0.531
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 +38 -10
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -1208,7 +1208,7 @@ var interpolateFontWeight = ({
|
|
|
1208
1208
|
options
|
|
1209
1209
|
});
|
|
1210
1210
|
};
|
|
1211
|
-
var
|
|
1211
|
+
var interpolateDiscreteValue = ({
|
|
1212
1212
|
input,
|
|
1213
1213
|
inputRange,
|
|
1214
1214
|
outputRange,
|
|
@@ -1222,7 +1222,7 @@ var interpolateDiscreteString = ({
|
|
|
1222
1222
|
easing: options?.easing,
|
|
1223
1223
|
segmentIndex
|
|
1224
1224
|
}) !== Easing.step1) {
|
|
1225
|
-
throw new TypeError("Non-numeric strings can only be interpolated using Easing.step1");
|
|
1225
|
+
throw new TypeError(typeof outputRange[0] === "boolean" ? "Booleans can only be interpolated using Easing.step1" : "Non-numeric strings can only be interpolated using Easing.step1");
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
|
|
@@ -1231,7 +1231,7 @@ var interpolateDiscreteString = ({
|
|
|
1231
1231
|
let resolvedInput = posterizedInput;
|
|
1232
1232
|
if (resolvedInput < inputMin) {
|
|
1233
1233
|
if (options?.extrapolateLeft === "identity") {
|
|
1234
|
-
throw new TypeError('extrapolateLeft: "identity" is not supported for non-numeric strings');
|
|
1234
|
+
throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateLeft: "identity" is not supported for booleans' : 'extrapolateLeft: "identity" is not supported for non-numeric strings');
|
|
1235
1235
|
}
|
|
1236
1236
|
if (options?.extrapolateLeft === "wrap") {
|
|
1237
1237
|
const wrapRange = inputMax - inputMin;
|
|
@@ -1242,7 +1242,7 @@ var interpolateDiscreteString = ({
|
|
|
1242
1242
|
}
|
|
1243
1243
|
if (resolvedInput > inputMax) {
|
|
1244
1244
|
if (options?.extrapolateRight === "identity") {
|
|
1245
|
-
throw new TypeError('extrapolateRight: "identity" is not supported for non-numeric strings');
|
|
1245
|
+
throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateRight: "identity" is not supported for booleans' : 'extrapolateRight: "identity" is not supported for non-numeric strings');
|
|
1246
1246
|
}
|
|
1247
1247
|
if (options?.extrapolateRight === "wrap") {
|
|
1248
1248
|
const wrapRange = inputMax - inputMin;
|
|
@@ -1371,6 +1371,20 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
1371
1371
|
throw new Error("outputRange must contain only numbers");
|
|
1372
1372
|
}
|
|
1373
1373
|
const outputType = options?.outputType;
|
|
1374
|
+
if (outputRange.some((output) => typeof output === "boolean")) {
|
|
1375
|
+
if (!outputRange.every((output) => typeof output === "boolean")) {
|
|
1376
|
+
throw new TypeError("Boolean outputRange must contain only booleans");
|
|
1377
|
+
}
|
|
1378
|
+
if (outputType !== undefined) {
|
|
1379
|
+
throw new TypeError("Boolean outputRange cannot use outputType");
|
|
1380
|
+
}
|
|
1381
|
+
return interpolateDiscreteValue({
|
|
1382
|
+
input,
|
|
1383
|
+
inputRange,
|
|
1384
|
+
outputRange,
|
|
1385
|
+
options
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1374
1388
|
if (outputType === "font-weight") {
|
|
1375
1389
|
if (!outputRange.every((output) => typeof output === "number" || typeof output === "string")) {
|
|
1376
1390
|
throw new TypeError("Font weight outputRange must contain only numbers or strings");
|
|
@@ -1413,7 +1427,7 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
1413
1427
|
if (!hasNonNumericString) {
|
|
1414
1428
|
throw error;
|
|
1415
1429
|
}
|
|
1416
|
-
return
|
|
1430
|
+
return interpolateDiscreteValue({
|
|
1417
1431
|
input,
|
|
1418
1432
|
inputRange,
|
|
1419
1433
|
outputRange,
|
|
@@ -3699,7 +3713,7 @@ var interpolateFontWeight = ({
|
|
|
3699
3713
|
options
|
|
3700
3714
|
});
|
|
3701
3715
|
};
|
|
3702
|
-
var
|
|
3716
|
+
var interpolateDiscreteValue = ({
|
|
3703
3717
|
input,
|
|
3704
3718
|
inputRange,
|
|
3705
3719
|
outputRange,
|
|
@@ -3713,7 +3727,7 @@ var interpolateDiscreteString = ({
|
|
|
3713
3727
|
easing: options?.easing,
|
|
3714
3728
|
segmentIndex
|
|
3715
3729
|
}) !== Easing.step1) {
|
|
3716
|
-
throw new TypeError("Non-numeric strings can only be interpolated using Easing.step1");
|
|
3730
|
+
throw new TypeError(typeof outputRange[0] === "boolean" ? "Booleans can only be interpolated using Easing.step1" : "Non-numeric strings can only be interpolated using Easing.step1");
|
|
3717
3731
|
}
|
|
3718
3732
|
}
|
|
3719
3733
|
const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
|
|
@@ -3722,7 +3736,7 @@ var interpolateDiscreteString = ({
|
|
|
3722
3736
|
let resolvedInput = posterizedInput;
|
|
3723
3737
|
if (resolvedInput < inputMin) {
|
|
3724
3738
|
if (options?.extrapolateLeft === "identity") {
|
|
3725
|
-
throw new TypeError('extrapolateLeft: "identity" is not supported for non-numeric strings');
|
|
3739
|
+
throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateLeft: "identity" is not supported for booleans' : 'extrapolateLeft: "identity" is not supported for non-numeric strings');
|
|
3726
3740
|
}
|
|
3727
3741
|
if (options?.extrapolateLeft === "wrap") {
|
|
3728
3742
|
const wrapRange = inputMax - inputMin;
|
|
@@ -3733,7 +3747,7 @@ var interpolateDiscreteString = ({
|
|
|
3733
3747
|
}
|
|
3734
3748
|
if (resolvedInput > inputMax) {
|
|
3735
3749
|
if (options?.extrapolateRight === "identity") {
|
|
3736
|
-
throw new TypeError('extrapolateRight: "identity" is not supported for non-numeric strings');
|
|
3750
|
+
throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateRight: "identity" is not supported for booleans' : 'extrapolateRight: "identity" is not supported for non-numeric strings');
|
|
3737
3751
|
}
|
|
3738
3752
|
if (options?.extrapolateRight === "wrap") {
|
|
3739
3753
|
const wrapRange = inputMax - inputMin;
|
|
@@ -3862,6 +3876,20 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
3862
3876
|
throw new Error("outputRange must contain only numbers");
|
|
3863
3877
|
}
|
|
3864
3878
|
const outputType = options?.outputType;
|
|
3879
|
+
if (outputRange.some((output) => typeof output === "boolean")) {
|
|
3880
|
+
if (!outputRange.every((output) => typeof output === "boolean")) {
|
|
3881
|
+
throw new TypeError("Boolean outputRange must contain only booleans");
|
|
3882
|
+
}
|
|
3883
|
+
if (outputType !== undefined) {
|
|
3884
|
+
throw new TypeError("Boolean outputRange cannot use outputType");
|
|
3885
|
+
}
|
|
3886
|
+
return interpolateDiscreteValue({
|
|
3887
|
+
input,
|
|
3888
|
+
inputRange,
|
|
3889
|
+
outputRange,
|
|
3890
|
+
options
|
|
3891
|
+
});
|
|
3892
|
+
}
|
|
3865
3893
|
if (outputType === "font-weight") {
|
|
3866
3894
|
if (!outputRange.every((output) => typeof output === "number" || typeof output === "string")) {
|
|
3867
3895
|
throw new TypeError("Font weight outputRange must contain only numbers or strings");
|
|
@@ -3904,7 +3932,7 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
3904
3932
|
if (!hasNonNumericString) {
|
|
3905
3933
|
throw error;
|
|
3906
3934
|
}
|
|
3907
|
-
return
|
|
3935
|
+
return interpolateDiscreteValue({
|
|
3908
3936
|
input,
|
|
3909
3937
|
inputRange,
|
|
3910
3938
|
outputRange,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/vercel",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.531",
|
|
4
4
|
"description": "Render Remotion videos on Vercel Sandbox",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/renderer": "4.0.
|
|
27
|
-
"remotion": "4.0.
|
|
26
|
+
"@remotion/renderer": "4.0.531",
|
|
27
|
+
"remotion": "4.0.531"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@vercel/sandbox": ">=1.0.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
41
|
+
"@remotion/eslint-config-internal": "4.0.531",
|
|
42
42
|
"@vercel/blob": "2.3.0",
|
|
43
43
|
"@vercel/sandbox": "1.6.0",
|
|
44
44
|
"eslint": "9.19.0",
|