@remotion/lambda-client 4.0.507 → 4.0.508
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 +93 -17
- package/dist/esm/index.mjs +93 -17
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -70047,9 +70047,45 @@ var parseTransformOriginValue = (output, parts) => {
|
|
|
70047
70047
|
});
|
|
70048
70048
|
return {
|
|
70049
70049
|
kind: "translate",
|
|
70050
|
-
values: [x.value, y.value, z.value],
|
|
70051
|
-
units: [x.unit, y.unit, z.unit],
|
|
70052
|
-
dimensions: parts[2] === undefined ? 2 : 3
|
|
70050
|
+
values: [x.value, y.value, z.value, 0],
|
|
70051
|
+
units: [x.unit, y.unit, z.unit, null],
|
|
70052
|
+
dimensions: parts[2] === undefined ? 2 : 3,
|
|
70053
|
+
axisRotation: false
|
|
70054
|
+
};
|
|
70055
|
+
};
|
|
70056
|
+
var parseAxisRotationValue = (output) => {
|
|
70057
|
+
const parts = output.trim().split(/\s+/);
|
|
70058
|
+
const keywordAxis = parts.length === 2 ? parts[0].toLowerCase() : null;
|
|
70059
|
+
if (keywordAxis === "x" || keywordAxis === "y" || keywordAxis === "z") {
|
|
70060
|
+
const keywordAngle = parseStringInterpolationComponent(parts[1], output);
|
|
70061
|
+
if (keywordAngle.kind !== "rotate") {
|
|
70062
|
+
return null;
|
|
70063
|
+
}
|
|
70064
|
+
return {
|
|
70065
|
+
kind: "rotate",
|
|
70066
|
+
values: keywordAxis === "x" ? [1, 0, 0, keywordAngle.value] : keywordAxis === "y" ? [0, 1, 0, keywordAngle.value] : [0, 0, 1, keywordAngle.value],
|
|
70067
|
+
units: [null, null, null, keywordAngle.unit],
|
|
70068
|
+
dimensions: 4,
|
|
70069
|
+
axisRotation: true
|
|
70070
|
+
};
|
|
70071
|
+
}
|
|
70072
|
+
if (parts.length !== 4) {
|
|
70073
|
+
return null;
|
|
70074
|
+
}
|
|
70075
|
+
const axis = parts.slice(0, 3).map(Number);
|
|
70076
|
+
if (!axis.every(Number.isFinite)) {
|
|
70077
|
+
return null;
|
|
70078
|
+
}
|
|
70079
|
+
const vectorAngle = parseStringInterpolationComponent(parts[3], output);
|
|
70080
|
+
if (vectorAngle.kind !== "rotate") {
|
|
70081
|
+
return null;
|
|
70082
|
+
}
|
|
70083
|
+
return {
|
|
70084
|
+
kind: "rotate",
|
|
70085
|
+
values: [axis[0], axis[1], axis[2], vectorAngle.value],
|
|
70086
|
+
units: [null, null, null, vectorAngle.unit],
|
|
70087
|
+
dimensions: 4,
|
|
70088
|
+
axisRotation: true
|
|
70053
70089
|
};
|
|
70054
70090
|
};
|
|
70055
70091
|
var parseStringInterpolationValue = (output) => {
|
|
@@ -70059,11 +70095,16 @@ var parseStringInterpolationValue = (output) => {
|
|
|
70059
70095
|
}
|
|
70060
70096
|
return {
|
|
70061
70097
|
kind: "scale",
|
|
70062
|
-
values: [output, output, 1],
|
|
70063
|
-
units: [null, null, null],
|
|
70064
|
-
dimensions: 1
|
|
70098
|
+
values: [output, output, 1, 0],
|
|
70099
|
+
units: [null, null, null, null],
|
|
70100
|
+
dimensions: 1,
|
|
70101
|
+
axisRotation: false
|
|
70065
70102
|
};
|
|
70066
70103
|
}
|
|
70104
|
+
const axisRotation = parseAxisRotationValue(output);
|
|
70105
|
+
if (axisRotation !== null) {
|
|
70106
|
+
return axisRotation;
|
|
70107
|
+
}
|
|
70067
70108
|
const parts = output.trim().split(/\s+/);
|
|
70068
70109
|
if (parts.length < 1 || parts.length > 3 || parts[0] === "") {
|
|
70069
70110
|
throw new TypeError(`String outputRange values must contain 1 to 3 components, but got "${output}"`);
|
|
@@ -70084,24 +70125,35 @@ var parseStringInterpolationValue = (output) => {
|
|
|
70084
70125
|
const z = parsed[2]?.value ?? 1;
|
|
70085
70126
|
return {
|
|
70086
70127
|
kind,
|
|
70087
|
-
values: [x, y, z],
|
|
70088
|
-
units: [null, null, null],
|
|
70089
|
-
dimensions: parsed.length
|
|
70128
|
+
values: [x, y, z, 0],
|
|
70129
|
+
units: [null, null, null, null],
|
|
70130
|
+
dimensions: parsed.length,
|
|
70131
|
+
axisRotation: false
|
|
70090
70132
|
};
|
|
70091
70133
|
}
|
|
70092
70134
|
return {
|
|
70093
70135
|
kind,
|
|
70094
|
-
values: [parsed[0].value, parsed[1]?.value ?? 0, parsed[2]?.value ?? 0],
|
|
70095
|
-
units: [
|
|
70096
|
-
|
|
70136
|
+
values: [parsed[0].value, parsed[1]?.value ?? 0, parsed[2]?.value ?? 0, 0],
|
|
70137
|
+
units: [
|
|
70138
|
+
parsed[0].unit,
|
|
70139
|
+
parsed[1]?.unit ?? null,
|
|
70140
|
+
parsed[2]?.unit ?? null,
|
|
70141
|
+
null
|
|
70142
|
+
],
|
|
70143
|
+
dimensions: parsed.length,
|
|
70144
|
+
axisRotation: false
|
|
70097
70145
|
};
|
|
70098
70146
|
};
|
|
70099
70147
|
var serializeStringInterpolationValue = ({
|
|
70100
70148
|
kind,
|
|
70101
70149
|
values,
|
|
70102
70150
|
units,
|
|
70103
|
-
dimensions
|
|
70151
|
+
dimensions,
|
|
70152
|
+
axisRotation
|
|
70104
70153
|
}) => {
|
|
70154
|
+
if (axisRotation) {
|
|
70155
|
+
return `${stringifyNumber(values[0])} ${stringifyNumber(values[1])} ${stringifyNumber(values[2])} ${stringifyNumber(values[3])}${units[3]}`;
|
|
70156
|
+
}
|
|
70105
70157
|
if (kind === "scale") {
|
|
70106
70158
|
return values.slice(0, dimensions).map((value) => stringifyNumber(value)).join(" ");
|
|
70107
70159
|
}
|
|
@@ -70269,7 +70321,26 @@ var interpolateString = ({
|
|
|
70269
70321
|
outputRange,
|
|
70270
70322
|
options
|
|
70271
70323
|
}) => {
|
|
70272
|
-
const
|
|
70324
|
+
const initiallyParsedOutputRange = outputRange.map(parseStringInterpolationValue);
|
|
70325
|
+
const hasAxisRotation = initiallyParsedOutputRange.some((parsed) => parsed.axisRotation);
|
|
70326
|
+
const parsedOutputRange = hasAxisRotation ? initiallyParsedOutputRange.map((parsed) => {
|
|
70327
|
+
if (parsed.kind !== "rotate") {
|
|
70328
|
+
return parsed;
|
|
70329
|
+
}
|
|
70330
|
+
if (parsed.axisRotation) {
|
|
70331
|
+
return parsed;
|
|
70332
|
+
}
|
|
70333
|
+
if (parsed.dimensions !== 1) {
|
|
70334
|
+
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
70335
|
+
}
|
|
70336
|
+
return {
|
|
70337
|
+
kind: "rotate",
|
|
70338
|
+
values: [0, 0, 1, parsed.values[0]],
|
|
70339
|
+
units: [null, null, null, parsed.units[0]],
|
|
70340
|
+
dimensions: 4,
|
|
70341
|
+
axisRotation: true
|
|
70342
|
+
};
|
|
70343
|
+
}) : initiallyParsedOutputRange;
|
|
70273
70344
|
const kind = parsedOutputRange[0]?.kind;
|
|
70274
70345
|
if (kind === undefined) {
|
|
70275
70346
|
throw new Error("outputRange must have at least 1 element");
|
|
@@ -70281,12 +70352,16 @@ var interpolateString = ({
|
|
|
70281
70352
|
}
|
|
70282
70353
|
const dimensions = Math.max(...parsedOutputRange.map((parsed) => parsed.dimensions));
|
|
70283
70354
|
const units = [
|
|
70355
|
+
null,
|
|
70284
70356
|
null,
|
|
70285
70357
|
null,
|
|
70286
70358
|
null
|
|
70287
70359
|
];
|
|
70288
70360
|
if (kind !== "scale") {
|
|
70289
70361
|
for (let axis = 0;axis < dimensions; axis++) {
|
|
70362
|
+
if (hasAxisRotation && axis < 3) {
|
|
70363
|
+
continue;
|
|
70364
|
+
}
|
|
70290
70365
|
for (const parsed of parsedOutputRange) {
|
|
70291
70366
|
const unit = parsed.units[axis];
|
|
70292
70367
|
if (unit === null) {
|
|
@@ -70305,7 +70380,7 @@ var interpolateString = ({
|
|
|
70305
70380
|
}
|
|
70306
70381
|
}
|
|
70307
70382
|
}
|
|
70308
|
-
const values = [0, 0, 0];
|
|
70383
|
+
const values = [0, 0, 0, 0];
|
|
70309
70384
|
for (let axis = 0;axis < dimensions; axis++) {
|
|
70310
70385
|
values[axis] = interpolateNumber({
|
|
70311
70386
|
input,
|
|
@@ -70318,7 +70393,8 @@ var interpolateString = ({
|
|
|
70318
70393
|
kind,
|
|
70319
70394
|
values,
|
|
70320
70395
|
units,
|
|
70321
|
-
dimensions
|
|
70396
|
+
dimensions,
|
|
70397
|
+
axisRotation: hasAxisRotation
|
|
70322
70398
|
});
|
|
70323
70399
|
};
|
|
70324
70400
|
var validateTupleOutputRange = (outputRange) => {
|
|
@@ -71599,7 +71675,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
71599
71675
|
}
|
|
71600
71676
|
}
|
|
71601
71677
|
};
|
|
71602
|
-
var VERSION = "4.0.
|
|
71678
|
+
var VERSION = "4.0.508";
|
|
71603
71679
|
var isColorSupported = () => {
|
|
71604
71680
|
const env = process.env || {};
|
|
71605
71681
|
const isForceDisabled = "NO_COLOR" in env;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -69390,9 +69390,45 @@ var parseTransformOriginValue = (output, parts) => {
|
|
|
69390
69390
|
});
|
|
69391
69391
|
return {
|
|
69392
69392
|
kind: "translate",
|
|
69393
|
-
values: [x.value, y.value, z.value],
|
|
69394
|
-
units: [x.unit, y.unit, z.unit],
|
|
69395
|
-
dimensions: parts[2] === undefined ? 2 : 3
|
|
69393
|
+
values: [x.value, y.value, z.value, 0],
|
|
69394
|
+
units: [x.unit, y.unit, z.unit, null],
|
|
69395
|
+
dimensions: parts[2] === undefined ? 2 : 3,
|
|
69396
|
+
axisRotation: false
|
|
69397
|
+
};
|
|
69398
|
+
};
|
|
69399
|
+
var parseAxisRotationValue = (output) => {
|
|
69400
|
+
const parts = output.trim().split(/\s+/);
|
|
69401
|
+
const keywordAxis = parts.length === 2 ? parts[0].toLowerCase() : null;
|
|
69402
|
+
if (keywordAxis === "x" || keywordAxis === "y" || keywordAxis === "z") {
|
|
69403
|
+
const keywordAngle = parseStringInterpolationComponent(parts[1], output);
|
|
69404
|
+
if (keywordAngle.kind !== "rotate") {
|
|
69405
|
+
return null;
|
|
69406
|
+
}
|
|
69407
|
+
return {
|
|
69408
|
+
kind: "rotate",
|
|
69409
|
+
values: keywordAxis === "x" ? [1, 0, 0, keywordAngle.value] : keywordAxis === "y" ? [0, 1, 0, keywordAngle.value] : [0, 0, 1, keywordAngle.value],
|
|
69410
|
+
units: [null, null, null, keywordAngle.unit],
|
|
69411
|
+
dimensions: 4,
|
|
69412
|
+
axisRotation: true
|
|
69413
|
+
};
|
|
69414
|
+
}
|
|
69415
|
+
if (parts.length !== 4) {
|
|
69416
|
+
return null;
|
|
69417
|
+
}
|
|
69418
|
+
const axis = parts.slice(0, 3).map(Number);
|
|
69419
|
+
if (!axis.every(Number.isFinite)) {
|
|
69420
|
+
return null;
|
|
69421
|
+
}
|
|
69422
|
+
const vectorAngle = parseStringInterpolationComponent(parts[3], output);
|
|
69423
|
+
if (vectorAngle.kind !== "rotate") {
|
|
69424
|
+
return null;
|
|
69425
|
+
}
|
|
69426
|
+
return {
|
|
69427
|
+
kind: "rotate",
|
|
69428
|
+
values: [axis[0], axis[1], axis[2], vectorAngle.value],
|
|
69429
|
+
units: [null, null, null, vectorAngle.unit],
|
|
69430
|
+
dimensions: 4,
|
|
69431
|
+
axisRotation: true
|
|
69396
69432
|
};
|
|
69397
69433
|
};
|
|
69398
69434
|
var parseStringInterpolationValue = (output) => {
|
|
@@ -69402,11 +69438,16 @@ var parseStringInterpolationValue = (output) => {
|
|
|
69402
69438
|
}
|
|
69403
69439
|
return {
|
|
69404
69440
|
kind: "scale",
|
|
69405
|
-
values: [output, output, 1],
|
|
69406
|
-
units: [null, null, null],
|
|
69407
|
-
dimensions: 1
|
|
69441
|
+
values: [output, output, 1, 0],
|
|
69442
|
+
units: [null, null, null, null],
|
|
69443
|
+
dimensions: 1,
|
|
69444
|
+
axisRotation: false
|
|
69408
69445
|
};
|
|
69409
69446
|
}
|
|
69447
|
+
const axisRotation = parseAxisRotationValue(output);
|
|
69448
|
+
if (axisRotation !== null) {
|
|
69449
|
+
return axisRotation;
|
|
69450
|
+
}
|
|
69410
69451
|
const parts = output.trim().split(/\s+/);
|
|
69411
69452
|
if (parts.length < 1 || parts.length > 3 || parts[0] === "") {
|
|
69412
69453
|
throw new TypeError(`String outputRange values must contain 1 to 3 components, but got "${output}"`);
|
|
@@ -69427,24 +69468,35 @@ var parseStringInterpolationValue = (output) => {
|
|
|
69427
69468
|
const z = parsed[2]?.value ?? 1;
|
|
69428
69469
|
return {
|
|
69429
69470
|
kind,
|
|
69430
|
-
values: [x, y, z],
|
|
69431
|
-
units: [null, null, null],
|
|
69432
|
-
dimensions: parsed.length
|
|
69471
|
+
values: [x, y, z, 0],
|
|
69472
|
+
units: [null, null, null, null],
|
|
69473
|
+
dimensions: parsed.length,
|
|
69474
|
+
axisRotation: false
|
|
69433
69475
|
};
|
|
69434
69476
|
}
|
|
69435
69477
|
return {
|
|
69436
69478
|
kind,
|
|
69437
|
-
values: [parsed[0].value, parsed[1]?.value ?? 0, parsed[2]?.value ?? 0],
|
|
69438
|
-
units: [
|
|
69439
|
-
|
|
69479
|
+
values: [parsed[0].value, parsed[1]?.value ?? 0, parsed[2]?.value ?? 0, 0],
|
|
69480
|
+
units: [
|
|
69481
|
+
parsed[0].unit,
|
|
69482
|
+
parsed[1]?.unit ?? null,
|
|
69483
|
+
parsed[2]?.unit ?? null,
|
|
69484
|
+
null
|
|
69485
|
+
],
|
|
69486
|
+
dimensions: parsed.length,
|
|
69487
|
+
axisRotation: false
|
|
69440
69488
|
};
|
|
69441
69489
|
};
|
|
69442
69490
|
var serializeStringInterpolationValue = ({
|
|
69443
69491
|
kind,
|
|
69444
69492
|
values,
|
|
69445
69493
|
units,
|
|
69446
|
-
dimensions
|
|
69494
|
+
dimensions,
|
|
69495
|
+
axisRotation
|
|
69447
69496
|
}) => {
|
|
69497
|
+
if (axisRotation) {
|
|
69498
|
+
return `${stringifyNumber(values[0])} ${stringifyNumber(values[1])} ${stringifyNumber(values[2])} ${stringifyNumber(values[3])}${units[3]}`;
|
|
69499
|
+
}
|
|
69448
69500
|
if (kind === "scale") {
|
|
69449
69501
|
return values.slice(0, dimensions).map((value) => stringifyNumber(value)).join(" ");
|
|
69450
69502
|
}
|
|
@@ -69612,7 +69664,26 @@ var interpolateString = ({
|
|
|
69612
69664
|
outputRange,
|
|
69613
69665
|
options
|
|
69614
69666
|
}) => {
|
|
69615
|
-
const
|
|
69667
|
+
const initiallyParsedOutputRange = outputRange.map(parseStringInterpolationValue);
|
|
69668
|
+
const hasAxisRotation = initiallyParsedOutputRange.some((parsed) => parsed.axisRotation);
|
|
69669
|
+
const parsedOutputRange = hasAxisRotation ? initiallyParsedOutputRange.map((parsed) => {
|
|
69670
|
+
if (parsed.kind !== "rotate") {
|
|
69671
|
+
return parsed;
|
|
69672
|
+
}
|
|
69673
|
+
if (parsed.axisRotation) {
|
|
69674
|
+
return parsed;
|
|
69675
|
+
}
|
|
69676
|
+
if (parsed.dimensions !== 1) {
|
|
69677
|
+
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
69678
|
+
}
|
|
69679
|
+
return {
|
|
69680
|
+
kind: "rotate",
|
|
69681
|
+
values: [0, 0, 1, parsed.values[0]],
|
|
69682
|
+
units: [null, null, null, parsed.units[0]],
|
|
69683
|
+
dimensions: 4,
|
|
69684
|
+
axisRotation: true
|
|
69685
|
+
};
|
|
69686
|
+
}) : initiallyParsedOutputRange;
|
|
69616
69687
|
const kind = parsedOutputRange[0]?.kind;
|
|
69617
69688
|
if (kind === undefined) {
|
|
69618
69689
|
throw new Error("outputRange must have at least 1 element");
|
|
@@ -69624,12 +69695,16 @@ var interpolateString = ({
|
|
|
69624
69695
|
}
|
|
69625
69696
|
const dimensions = Math.max(...parsedOutputRange.map((parsed) => parsed.dimensions));
|
|
69626
69697
|
const units = [
|
|
69698
|
+
null,
|
|
69627
69699
|
null,
|
|
69628
69700
|
null,
|
|
69629
69701
|
null
|
|
69630
69702
|
];
|
|
69631
69703
|
if (kind !== "scale") {
|
|
69632
69704
|
for (let axis = 0;axis < dimensions; axis++) {
|
|
69705
|
+
if (hasAxisRotation && axis < 3) {
|
|
69706
|
+
continue;
|
|
69707
|
+
}
|
|
69633
69708
|
for (const parsed of parsedOutputRange) {
|
|
69634
69709
|
const unit = parsed.units[axis];
|
|
69635
69710
|
if (unit === null) {
|
|
@@ -69648,7 +69723,7 @@ var interpolateString = ({
|
|
|
69648
69723
|
}
|
|
69649
69724
|
}
|
|
69650
69725
|
}
|
|
69651
|
-
const values = [0, 0, 0];
|
|
69726
|
+
const values = [0, 0, 0, 0];
|
|
69652
69727
|
for (let axis = 0;axis < dimensions; axis++) {
|
|
69653
69728
|
values[axis] = interpolateNumber({
|
|
69654
69729
|
input,
|
|
@@ -69661,7 +69736,8 @@ var interpolateString = ({
|
|
|
69661
69736
|
kind,
|
|
69662
69737
|
values,
|
|
69663
69738
|
units,
|
|
69664
|
-
dimensions
|
|
69739
|
+
dimensions,
|
|
69740
|
+
axisRotation: hasAxisRotation
|
|
69665
69741
|
});
|
|
69666
69742
|
};
|
|
69667
69743
|
var validateTupleOutputRange = (outputRange) => {
|
|
@@ -70942,7 +71018,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
70942
71018
|
}
|
|
70943
71019
|
}
|
|
70944
71020
|
};
|
|
70945
|
-
var VERSION = "4.0.
|
|
71021
|
+
var VERSION = "4.0.508";
|
|
70946
71022
|
var isColorSupported = () => {
|
|
70947
71023
|
const env = process.env || {};
|
|
70948
71024
|
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.508",
|
|
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.508",
|
|
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.508",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.2.11",
|
|
35
35
|
"@types/mime-types": "2.1.1",
|