@remotion/lambda-client 4.0.528 → 4.0.530

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 CHANGED
@@ -70951,7 +70951,7 @@ var interpolateFontWeight = ({
70951
70951
  options
70952
70952
  });
70953
70953
  };
70954
- var interpolateDiscreteString = ({
70954
+ var interpolateDiscreteValue = ({
70955
70955
  input,
70956
70956
  inputRange,
70957
70957
  outputRange,
@@ -70965,7 +70965,7 @@ var interpolateDiscreteString = ({
70965
70965
  easing: options?.easing,
70966
70966
  segmentIndex
70967
70967
  }) !== Easing.step1) {
70968
- throw new TypeError("Non-numeric strings can only be interpolated using Easing.step1");
70968
+ 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");
70969
70969
  }
70970
70970
  }
70971
70971
  const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
@@ -70974,7 +70974,7 @@ var interpolateDiscreteString = ({
70974
70974
  let resolvedInput = posterizedInput;
70975
70975
  if (resolvedInput < inputMin) {
70976
70976
  if (options?.extrapolateLeft === "identity") {
70977
- throw new TypeError('extrapolateLeft: "identity" is not supported for non-numeric strings');
70977
+ throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateLeft: "identity" is not supported for booleans' : 'extrapolateLeft: "identity" is not supported for non-numeric strings');
70978
70978
  }
70979
70979
  if (options?.extrapolateLeft === "wrap") {
70980
70980
  const wrapRange = inputMax - inputMin;
@@ -70985,7 +70985,7 @@ var interpolateDiscreteString = ({
70985
70985
  }
70986
70986
  if (resolvedInput > inputMax) {
70987
70987
  if (options?.extrapolateRight === "identity") {
70988
- throw new TypeError('extrapolateRight: "identity" is not supported for non-numeric strings');
70988
+ throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateRight: "identity" is not supported for booleans' : 'extrapolateRight: "identity" is not supported for non-numeric strings');
70989
70989
  }
70990
70990
  if (options?.extrapolateRight === "wrap") {
70991
70991
  const wrapRange = inputMax - inputMin;
@@ -71114,6 +71114,20 @@ function interpolate(input, inputRange, outputRange, options) {
71114
71114
  throw new Error("outputRange must contain only numbers");
71115
71115
  }
71116
71116
  const outputType = options?.outputType;
71117
+ if (outputRange.some((output) => typeof output === "boolean")) {
71118
+ if (!outputRange.every((output) => typeof output === "boolean")) {
71119
+ throw new TypeError("Boolean outputRange must contain only booleans");
71120
+ }
71121
+ if (outputType !== undefined) {
71122
+ throw new TypeError("Boolean outputRange cannot use outputType");
71123
+ }
71124
+ return interpolateDiscreteValue({
71125
+ input,
71126
+ inputRange,
71127
+ outputRange,
71128
+ options
71129
+ });
71130
+ }
71117
71131
  if (outputType === "font-weight") {
71118
71132
  if (!outputRange.every((output) => typeof output === "number" || typeof output === "string")) {
71119
71133
  throw new TypeError("Font weight outputRange must contain only numbers or strings");
@@ -71156,7 +71170,7 @@ function interpolate(input, inputRange, outputRange, options) {
71156
71170
  if (!hasNonNumericString) {
71157
71171
  throw error;
71158
71172
  }
71159
- return interpolateDiscreteString({
71173
+ return interpolateDiscreteValue({
71160
71174
  input,
71161
71175
  inputRange,
71162
71176
  outputRange,
@@ -71581,6 +71595,12 @@ var trimBeforeField = {
71581
71595
  step: 1,
71582
71596
  hiddenFromList: true
71583
71597
  };
71598
+ var loopField = {
71599
+ type: "boolean",
71600
+ default: false,
71601
+ description: "Loop",
71602
+ keyframable: false
71603
+ };
71584
71604
  var freezeField = {
71585
71605
  type: "number",
71586
71606
  default: null,
@@ -71601,6 +71621,7 @@ var baseSchema = {
71601
71621
  from: fromField,
71602
71622
  trimBefore: trimBeforeField,
71603
71623
  playbackRate: playbackRateField,
71624
+ loop: loopField,
71604
71625
  freeze: freezeField,
71605
71626
  hidden: hiddenField,
71606
71627
  name: sequenceNameField,
@@ -71622,6 +71643,7 @@ var baseSchemaWithoutFrom = {
71622
71643
  durationInFrames: durationInFramesField,
71623
71644
  trimBefore: trimBeforeField,
71624
71645
  playbackRate: playbackRateField,
71646
+ loop: loopField,
71625
71647
  freeze: freezeField,
71626
71648
  hidden: hiddenField,
71627
71649
  name: sequenceNameField,
@@ -72333,7 +72355,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
72333
72355
  }
72334
72356
  }
72335
72357
  };
72336
- var VERSION = "4.0.528";
72358
+ var VERSION = "4.0.530";
72337
72359
  var isColorSupported = () => {
72338
72360
  const env = process.env || {};
72339
72361
  const isForceDisabled = "NO_COLOR" in env;
@@ -73427,7 +73449,8 @@ var getExtensionOfFilename = (filename) => {
73427
73449
  if (filename === null) {
73428
73450
  return null;
73429
73451
  }
73430
- const filenameArr = pathNormalize(filename).split(".");
73452
+ const segments = pathNormalize(filename).split(/[/\\]/);
73453
+ const filenameArr = segments[segments.length - 1].split(".");
73431
73454
  const hasExtension = filenameArr.length >= 2;
73432
73455
  const filenameArrLength = filenameArr.length;
73433
73456
  const extension = hasExtension ? filenameArr[filenameArrLength - 1] : null;
@@ -70293,7 +70293,7 @@ var interpolateFontWeight = ({
70293
70293
  options
70294
70294
  });
70295
70295
  };
70296
- var interpolateDiscreteString = ({
70296
+ var interpolateDiscreteValue = ({
70297
70297
  input,
70298
70298
  inputRange,
70299
70299
  outputRange,
@@ -70307,7 +70307,7 @@ var interpolateDiscreteString = ({
70307
70307
  easing: options?.easing,
70308
70308
  segmentIndex
70309
70309
  }) !== Easing.step1) {
70310
- throw new TypeError("Non-numeric strings can only be interpolated using Easing.step1");
70310
+ 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");
70311
70311
  }
70312
70312
  }
70313
70313
  const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
@@ -70316,7 +70316,7 @@ var interpolateDiscreteString = ({
70316
70316
  let resolvedInput = posterizedInput;
70317
70317
  if (resolvedInput < inputMin) {
70318
70318
  if (options?.extrapolateLeft === "identity") {
70319
- throw new TypeError('extrapolateLeft: "identity" is not supported for non-numeric strings');
70319
+ throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateLeft: "identity" is not supported for booleans' : 'extrapolateLeft: "identity" is not supported for non-numeric strings');
70320
70320
  }
70321
70321
  if (options?.extrapolateLeft === "wrap") {
70322
70322
  const wrapRange = inputMax - inputMin;
@@ -70327,7 +70327,7 @@ var interpolateDiscreteString = ({
70327
70327
  }
70328
70328
  if (resolvedInput > inputMax) {
70329
70329
  if (options?.extrapolateRight === "identity") {
70330
- throw new TypeError('extrapolateRight: "identity" is not supported for non-numeric strings');
70330
+ throw new TypeError(typeof outputRange[0] === "boolean" ? 'extrapolateRight: "identity" is not supported for booleans' : 'extrapolateRight: "identity" is not supported for non-numeric strings');
70331
70331
  }
70332
70332
  if (options?.extrapolateRight === "wrap") {
70333
70333
  const wrapRange = inputMax - inputMin;
@@ -70456,6 +70456,20 @@ function interpolate(input, inputRange, outputRange, options) {
70456
70456
  throw new Error("outputRange must contain only numbers");
70457
70457
  }
70458
70458
  const outputType = options?.outputType;
70459
+ if (outputRange.some((output) => typeof output === "boolean")) {
70460
+ if (!outputRange.every((output) => typeof output === "boolean")) {
70461
+ throw new TypeError("Boolean outputRange must contain only booleans");
70462
+ }
70463
+ if (outputType !== undefined) {
70464
+ throw new TypeError("Boolean outputRange cannot use outputType");
70465
+ }
70466
+ return interpolateDiscreteValue({
70467
+ input,
70468
+ inputRange,
70469
+ outputRange,
70470
+ options
70471
+ });
70472
+ }
70459
70473
  if (outputType === "font-weight") {
70460
70474
  if (!outputRange.every((output) => typeof output === "number" || typeof output === "string")) {
70461
70475
  throw new TypeError("Font weight outputRange must contain only numbers or strings");
@@ -70498,7 +70512,7 @@ function interpolate(input, inputRange, outputRange, options) {
70498
70512
  if (!hasNonNumericString) {
70499
70513
  throw error;
70500
70514
  }
70501
- return interpolateDiscreteString({
70515
+ return interpolateDiscreteValue({
70502
70516
  input,
70503
70517
  inputRange,
70504
70518
  outputRange,
@@ -70923,6 +70937,12 @@ var trimBeforeField = {
70923
70937
  step: 1,
70924
70938
  hiddenFromList: true
70925
70939
  };
70940
+ var loopField = {
70941
+ type: "boolean",
70942
+ default: false,
70943
+ description: "Loop",
70944
+ keyframable: false
70945
+ };
70926
70946
  var freezeField = {
70927
70947
  type: "number",
70928
70948
  default: null,
@@ -70943,6 +70963,7 @@ var baseSchema = {
70943
70963
  from: fromField,
70944
70964
  trimBefore: trimBeforeField,
70945
70965
  playbackRate: playbackRateField,
70966
+ loop: loopField,
70946
70967
  freeze: freezeField,
70947
70968
  hidden: hiddenField,
70948
70969
  name: sequenceNameField,
@@ -70964,6 +70985,7 @@ var baseSchemaWithoutFrom = {
70964
70985
  durationInFrames: durationInFramesField,
70965
70986
  trimBefore: trimBeforeField,
70966
70987
  playbackRate: playbackRateField,
70988
+ loop: loopField,
70967
70989
  freeze: freezeField,
70968
70990
  hidden: hiddenField,
70969
70991
  name: sequenceNameField,
@@ -71675,7 +71697,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
71675
71697
  }
71676
71698
  }
71677
71699
  };
71678
- var VERSION = "4.0.528";
71700
+ var VERSION = "4.0.530";
71679
71701
  var isColorSupported = () => {
71680
71702
  const env = process.env || {};
71681
71703
  const isForceDisabled = "NO_COLOR" in env;
@@ -72769,7 +72791,8 @@ var getExtensionOfFilename = (filename) => {
72769
72791
  if (filename === null) {
72770
72792
  return null;
72771
72793
  }
72772
- const filenameArr = pathNormalize(filename).split(".");
72794
+ const segments = pathNormalize(filename).split(/[/\\]/);
72795
+ const filenameArr = segments[segments.length - 1].split(".");
72773
72796
  const hasExtension = filenameArr.length >= 2;
72774
72797
  const filenameArrLength = filenameArr.length;
72775
72798
  const extension = hasExtension ? filenameArr[filenameArrLength - 1] : null;
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.528",
6
+ "version": "4.0.530",
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.528",
29
+ "@remotion/serverless-client": "4.0.530",
30
30
  "@types/express": "5.0.1",
31
31
  "express": "4.21.0",
32
- "@remotion/eslint-config-internal": "4.0.528",
32
+ "@remotion/eslint-config-internal": "4.0.530",
33
33
  "eslint": "9.19.0",
34
34
  "next": "16.3.3",
35
35
  "@types/mime-types": "2.1.1",