@remotion/lambda-client 4.0.472 → 4.0.474
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 +44 -3
- package/dist/esm/index.mjs +44 -3
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -70108,6 +70108,40 @@ var interpolateString = ({
|
|
|
70108
70108
|
dimensions
|
|
70109
70109
|
});
|
|
70110
70110
|
};
|
|
70111
|
+
var validateTupleOutputRange = (outputRange) => {
|
|
70112
|
+
const dimensions = outputRange[0]?.length;
|
|
70113
|
+
if (dimensions === undefined) {
|
|
70114
|
+
throw new Error("outputRange must have at least 1 element");
|
|
70115
|
+
}
|
|
70116
|
+
if (dimensions === 0) {
|
|
70117
|
+
throw new TypeError("outputRange tuples must contain at least 1 number");
|
|
70118
|
+
}
|
|
70119
|
+
for (const output of outputRange) {
|
|
70120
|
+
if (output.length !== dimensions) {
|
|
70121
|
+
throw new TypeError(`outputRange tuples must all have the same length, but got ${dimensions} and ${output.length}`);
|
|
70122
|
+
}
|
|
70123
|
+
for (const value of output) {
|
|
70124
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
70125
|
+
throw new TypeError(`outputRange tuples must contain only finite numbers, but got [${output.join(",")}]`);
|
|
70126
|
+
}
|
|
70127
|
+
}
|
|
70128
|
+
}
|
|
70129
|
+
return dimensions;
|
|
70130
|
+
};
|
|
70131
|
+
var interpolateTuple = ({
|
|
70132
|
+
input,
|
|
70133
|
+
inputRange,
|
|
70134
|
+
outputRange,
|
|
70135
|
+
options
|
|
70136
|
+
}) => {
|
|
70137
|
+
const dimensions = validateTupleOutputRange(outputRange);
|
|
70138
|
+
return new Array(dimensions).fill(true).map((_, axis) => interpolateNumber({
|
|
70139
|
+
input,
|
|
70140
|
+
inputRange,
|
|
70141
|
+
outputRange: outputRange.map((output) => output[axis]),
|
|
70142
|
+
options
|
|
70143
|
+
}));
|
|
70144
|
+
};
|
|
70111
70145
|
function checkValidInputRange(arr) {
|
|
70112
70146
|
for (let i = 1;i < arr.length; ++i) {
|
|
70113
70147
|
if (!(arr[i] > arr[i - 1])) {
|
|
@@ -70183,8 +70217,11 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
70183
70217
|
}
|
|
70184
70218
|
return interpolateString({ input, inputRange, outputRange, options });
|
|
70185
70219
|
}
|
|
70220
|
+
if (outputRange.every((output) => Array.isArray(output))) {
|
|
70221
|
+
return interpolateTuple({ input, inputRange, outputRange, options });
|
|
70222
|
+
}
|
|
70186
70223
|
if (!outputRange.every((output) => typeof output === "number")) {
|
|
70187
|
-
throw new TypeError("outputRange must contain only numbers, or supported scale, translate, and rotate strings");
|
|
70224
|
+
throw new TypeError("outputRange must contain only numbers, numeric tuples, or supported scale, translate, and rotate strings");
|
|
70188
70225
|
}
|
|
70189
70226
|
checkInfiniteRange("outputRange", outputRange);
|
|
70190
70227
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
@@ -70818,7 +70855,6 @@ var sequenceVisualStyleSchema = {
|
|
|
70818
70855
|
},
|
|
70819
70856
|
"style.scale": {
|
|
70820
70857
|
type: "scale",
|
|
70821
|
-
min: 0.05,
|
|
70822
70858
|
max: 100,
|
|
70823
70859
|
step: 0.01,
|
|
70824
70860
|
default: 1,
|
|
@@ -70899,6 +70935,11 @@ var sequenceSchema = {
|
|
|
70899
70935
|
}
|
|
70900
70936
|
}
|
|
70901
70937
|
};
|
|
70938
|
+
var sequenceSchemaWithoutFrom = {
|
|
70939
|
+
hidden: hiddenField,
|
|
70940
|
+
durationInFrames: durationInFramesField,
|
|
70941
|
+
layout: sequenceSchema.layout
|
|
70942
|
+
};
|
|
70902
70943
|
var sequenceSchemaDefaultLayoutNone = {
|
|
70903
70944
|
...sequenceSchema,
|
|
70904
70945
|
layout: {
|
|
@@ -71138,7 +71179,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
71138
71179
|
}
|
|
71139
71180
|
}
|
|
71140
71181
|
};
|
|
71141
|
-
var VERSION = "4.0.
|
|
71182
|
+
var VERSION = "4.0.474";
|
|
71142
71183
|
var isColorSupported = () => {
|
|
71143
71184
|
const env = process.env || {};
|
|
71144
71185
|
const isForceDisabled = "NO_COLOR" in env;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -69451,6 +69451,40 @@ var interpolateString = ({
|
|
|
69451
69451
|
dimensions
|
|
69452
69452
|
});
|
|
69453
69453
|
};
|
|
69454
|
+
var validateTupleOutputRange = (outputRange) => {
|
|
69455
|
+
const dimensions = outputRange[0]?.length;
|
|
69456
|
+
if (dimensions === undefined) {
|
|
69457
|
+
throw new Error("outputRange must have at least 1 element");
|
|
69458
|
+
}
|
|
69459
|
+
if (dimensions === 0) {
|
|
69460
|
+
throw new TypeError("outputRange tuples must contain at least 1 number");
|
|
69461
|
+
}
|
|
69462
|
+
for (const output of outputRange) {
|
|
69463
|
+
if (output.length !== dimensions) {
|
|
69464
|
+
throw new TypeError(`outputRange tuples must all have the same length, but got ${dimensions} and ${output.length}`);
|
|
69465
|
+
}
|
|
69466
|
+
for (const value of output) {
|
|
69467
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
69468
|
+
throw new TypeError(`outputRange tuples must contain only finite numbers, but got [${output.join(",")}]`);
|
|
69469
|
+
}
|
|
69470
|
+
}
|
|
69471
|
+
}
|
|
69472
|
+
return dimensions;
|
|
69473
|
+
};
|
|
69474
|
+
var interpolateTuple = ({
|
|
69475
|
+
input,
|
|
69476
|
+
inputRange,
|
|
69477
|
+
outputRange,
|
|
69478
|
+
options
|
|
69479
|
+
}) => {
|
|
69480
|
+
const dimensions = validateTupleOutputRange(outputRange);
|
|
69481
|
+
return new Array(dimensions).fill(true).map((_, axis) => interpolateNumber({
|
|
69482
|
+
input,
|
|
69483
|
+
inputRange,
|
|
69484
|
+
outputRange: outputRange.map((output) => output[axis]),
|
|
69485
|
+
options
|
|
69486
|
+
}));
|
|
69487
|
+
};
|
|
69454
69488
|
function checkValidInputRange(arr) {
|
|
69455
69489
|
for (let i = 1;i < arr.length; ++i) {
|
|
69456
69490
|
if (!(arr[i] > arr[i - 1])) {
|
|
@@ -69526,8 +69560,11 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
69526
69560
|
}
|
|
69527
69561
|
return interpolateString({ input, inputRange, outputRange, options });
|
|
69528
69562
|
}
|
|
69563
|
+
if (outputRange.every((output) => Array.isArray(output))) {
|
|
69564
|
+
return interpolateTuple({ input, inputRange, outputRange, options });
|
|
69565
|
+
}
|
|
69529
69566
|
if (!outputRange.every((output) => typeof output === "number")) {
|
|
69530
|
-
throw new TypeError("outputRange must contain only numbers, or supported scale, translate, and rotate strings");
|
|
69567
|
+
throw new TypeError("outputRange must contain only numbers, numeric tuples, or supported scale, translate, and rotate strings");
|
|
69531
69568
|
}
|
|
69532
69569
|
checkInfiniteRange("outputRange", outputRange);
|
|
69533
69570
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
@@ -70161,7 +70198,6 @@ var sequenceVisualStyleSchema = {
|
|
|
70161
70198
|
},
|
|
70162
70199
|
"style.scale": {
|
|
70163
70200
|
type: "scale",
|
|
70164
|
-
min: 0.05,
|
|
70165
70201
|
max: 100,
|
|
70166
70202
|
step: 0.01,
|
|
70167
70203
|
default: 1,
|
|
@@ -70242,6 +70278,11 @@ var sequenceSchema = {
|
|
|
70242
70278
|
}
|
|
70243
70279
|
}
|
|
70244
70280
|
};
|
|
70281
|
+
var sequenceSchemaWithoutFrom = {
|
|
70282
|
+
hidden: hiddenField,
|
|
70283
|
+
durationInFrames: durationInFramesField,
|
|
70284
|
+
layout: sequenceSchema.layout
|
|
70285
|
+
};
|
|
70245
70286
|
var sequenceSchemaDefaultLayoutNone = {
|
|
70246
70287
|
...sequenceSchema,
|
|
70247
70288
|
layout: {
|
|
@@ -70481,7 +70522,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
70481
70522
|
}
|
|
70482
70523
|
}
|
|
70483
70524
|
};
|
|
70484
|
-
var VERSION = "4.0.
|
|
70525
|
+
var VERSION = "4.0.474";
|
|
70485
70526
|
var isColorSupported = () => {
|
|
70486
70527
|
const env = process.env || {};
|
|
70487
70528
|
const isForceDisabled = "NO_COLOR" in env;
|
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.474",
|
|
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.474",
|
|
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.474",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.2.6",
|
|
35
35
|
"@types/mime-types": "2.1.1",
|