@remotion/lambda-client 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/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,
@@ -72333,7 +72347,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
72333
72347
  }
72334
72348
  }
72335
72349
  };
72336
- var VERSION = "4.0.529";
72350
+ var VERSION = "4.0.531";
72337
72351
  var isColorSupported = () => {
72338
72352
  const env = process.env || {};
72339
72353
  const isForceDisabled = "NO_COLOR" in env;
@@ -73427,7 +73441,8 @@ var getExtensionOfFilename = (filename) => {
73427
73441
  if (filename === null) {
73428
73442
  return null;
73429
73443
  }
73430
- const filenameArr = pathNormalize(filename).split(".");
73444
+ const segments = pathNormalize(filename).split(/[/\\]/);
73445
+ const filenameArr = segments[segments.length - 1].split(".");
73431
73446
  const hasExtension = filenameArr.length >= 2;
73432
73447
  const filenameArrLength = filenameArr.length;
73433
73448
  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,
@@ -71675,7 +71689,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
71675
71689
  }
71676
71690
  }
71677
71691
  };
71678
- var VERSION = "4.0.529";
71692
+ var VERSION = "4.0.531";
71679
71693
  var isColorSupported = () => {
71680
71694
  const env = process.env || {};
71681
71695
  const isForceDisabled = "NO_COLOR" in env;
@@ -72769,7 +72783,8 @@ var getExtensionOfFilename = (filename) => {
72769
72783
  if (filename === null) {
72770
72784
  return null;
72771
72785
  }
72772
- const filenameArr = pathNormalize(filename).split(".");
72786
+ const segments = pathNormalize(filename).split(/[/\\]/);
72787
+ const filenameArr = segments[segments.length - 1].split(".");
72773
72788
  const hasExtension = filenameArr.length >= 2;
72774
72789
  const filenameArrLength = filenameArr.length;
72775
72790
  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.529",
6
+ "version": "4.0.531",
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.529",
29
+ "@remotion/serverless-client": "4.0.531",
30
30
  "@types/express": "5.0.1",
31
31
  "express": "4.21.0",
32
- "@remotion/eslint-config-internal": "4.0.529",
32
+ "@remotion/eslint-config-internal": "4.0.531",
33
33
  "eslint": "9.19.0",
34
34
  "next": "16.3.3",
35
35
  "@types/mime-types": "2.1.1",