@remotion/lambda-client 4.0.437 → 4.0.439

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
@@ -70055,6 +70055,10 @@ var PERCENTAGE = NUMBER + "%";
70055
70055
  function call(...args) {
70056
70056
  return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
70057
70057
  }
70058
+ var MODERN_VALUE = "(?:none|[-+]?\\d*\\.?\\d+(?:%|deg|rad|grad|turn)?)";
70059
+ function modernColorCall(name) {
70060
+ return new RegExp(name + "\\(\\s*(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")(?:\\s*\\/\\s*(" + MODERN_VALUE + "))?\\s*\\)");
70061
+ }
70058
70062
  function getMatchers() {
70059
70063
  const cachedMatchers = {
70060
70064
  rgb: undefined,
@@ -70065,7 +70069,12 @@ function getMatchers() {
70065
70069
  hex4: undefined,
70066
70070
  hex5: undefined,
70067
70071
  hex6: undefined,
70068
- hex8: undefined
70072
+ hex8: undefined,
70073
+ oklch: undefined,
70074
+ oklab: undefined,
70075
+ lab: undefined,
70076
+ lch: undefined,
70077
+ hwb: undefined
70069
70078
  };
70070
70079
  if (cachedMatchers.rgb === undefined) {
70071
70080
  cachedMatchers.rgb = new RegExp("rgb" + call(NUMBER, NUMBER, NUMBER));
@@ -70076,6 +70085,11 @@ function getMatchers() {
70076
70085
  cachedMatchers.hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
70077
70086
  cachedMatchers.hex6 = /^#([0-9a-fA-F]{6})$/;
70078
70087
  cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
70088
+ cachedMatchers.oklch = modernColorCall("oklch");
70089
+ cachedMatchers.oklab = modernColorCall("oklab");
70090
+ cachedMatchers.lab = modernColorCall("lab");
70091
+ cachedMatchers.lch = modernColorCall("lch");
70092
+ cachedMatchers.hwb = modernColorCall("hwb");
70079
70093
  }
70080
70094
  return cachedMatchers;
70081
70095
  }
@@ -70139,6 +70153,96 @@ function parsePercentage(str) {
70139
70153
  }
70140
70154
  return int / 100;
70141
70155
  }
70156
+ function parseModernComponent(str, percentScale) {
70157
+ if (str === "none")
70158
+ return 0;
70159
+ if (str.endsWith("%")) {
70160
+ return Number.parseFloat(str) / 100 * percentScale;
70161
+ }
70162
+ return Number.parseFloat(str);
70163
+ }
70164
+ function parseHueAngle(str) {
70165
+ if (str === "none")
70166
+ return 0;
70167
+ if (str.endsWith("rad")) {
70168
+ return Number.parseFloat(str) * 180 / Math.PI;
70169
+ }
70170
+ if (str.endsWith("grad"))
70171
+ return Number.parseFloat(str) * 0.9;
70172
+ if (str.endsWith("turn"))
70173
+ return Number.parseFloat(str) * 360;
70174
+ return Number.parseFloat(str);
70175
+ }
70176
+ function parseModernAlpha(str) {
70177
+ if (str === undefined || str === "none")
70178
+ return 1;
70179
+ if (str.endsWith("%")) {
70180
+ return Math.max(0, Math.min(1, Number.parseFloat(str) / 100));
70181
+ }
70182
+ return Math.max(0, Math.min(1, Number.parseFloat(str)));
70183
+ }
70184
+ function linearToSrgb(c) {
70185
+ if (c <= 0.0031308)
70186
+ return 12.92 * c;
70187
+ return 1.055 * c ** (1 / 2.4) - 0.055;
70188
+ }
70189
+ function clamp01(v) {
70190
+ return Math.max(0, Math.min(1, v));
70191
+ }
70192
+ function rgbFloatToInt(r, g, b, alpha) {
70193
+ const ri = Math.round(clamp01(r) * 255);
70194
+ const gi = Math.round(clamp01(g) * 255);
70195
+ const bi = Math.round(clamp01(b) * 255);
70196
+ const ai = Math.round(clamp01(alpha) * 255);
70197
+ return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
70198
+ }
70199
+ function oklabToSrgb(L, a, b) {
70200
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
70201
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
70202
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
70203
+ const l = l_ * l_ * l_;
70204
+ const m = m_ * m_ * m_;
70205
+ const s = s_ * s_ * s_;
70206
+ const rLin = 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
70207
+ const gLin = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
70208
+ const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
70209
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
70210
+ }
70211
+ function labToSrgb(L, a, b) {
70212
+ const epsilon = 216 / 24389;
70213
+ const kappa = 24389 / 27;
70214
+ const Xn = 0.95047;
70215
+ const Yn = 1;
70216
+ const Zn = 1.08883;
70217
+ const fy = (L + 16) / 116;
70218
+ const fx = a / 500 + fy;
70219
+ const fz = fy - b / 200;
70220
+ const fx3 = fx * fx * fx;
70221
+ const fz3 = fz * fz * fz;
70222
+ const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
70223
+ const yr = L > kappa * epsilon ? ((L + 16) / 116) ** 3 : L / kappa;
70224
+ const zr = fz3 > epsilon ? fz3 : (116 * fz - 16) / kappa;
70225
+ const X = xr * Xn;
70226
+ const Y = yr * Yn;
70227
+ const Z = zr * Zn;
70228
+ const rLin = 3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z;
70229
+ const gLin = -0.969266 * X + 1.8760108 * Y + 0.041556 * Z;
70230
+ const bLin = 0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z;
70231
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
70232
+ }
70233
+ function hwbToSrgb(h, w, bk) {
70234
+ if (w + bk >= 1) {
70235
+ const gray = w / (w + bk);
70236
+ return [gray, gray, gray];
70237
+ }
70238
+ const q = 1;
70239
+ const p = 0;
70240
+ const r = hue2rgb(p, q, h + 1 / 3);
70241
+ const g = hue2rgb(p, q, h);
70242
+ const bl = hue2rgb(p, q, h - 1 / 3);
70243
+ const factor = 1 - w - bk;
70244
+ return [r * factor + w, g * factor + w, bl * factor + w];
70245
+ }
70142
70246
  var colorNames = {
70143
70247
  transparent: 0,
70144
70248
  aliceblue: 4042850303,
@@ -70337,6 +70441,58 @@ function normalizeColor(color) {
70337
70441
  return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0;
70338
70442
  }
70339
70443
  }
70444
+ if (matchers.oklch) {
70445
+ if (match = matchers.oklch.exec(color)) {
70446
+ const L = parseModernComponent(match[1], 1);
70447
+ const C = parseModernComponent(match[2], 0.4);
70448
+ const H = parseHueAngle(match[3]);
70449
+ const alpha = parseModernAlpha(match[4]);
70450
+ const hRad = H * Math.PI / 180;
70451
+ const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
70452
+ return rgbFloatToInt(r, g, b, alpha);
70453
+ }
70454
+ }
70455
+ if (matchers.oklab) {
70456
+ if (match = matchers.oklab.exec(color)) {
70457
+ const L = parseModernComponent(match[1], 1);
70458
+ const a = parseModernComponent(match[2], 0.4);
70459
+ const b = parseModernComponent(match[3], 0.4);
70460
+ const alpha = parseModernAlpha(match[4]);
70461
+ const [r, g, bl] = oklabToSrgb(L, a, b);
70462
+ return rgbFloatToInt(r, g, bl, alpha);
70463
+ }
70464
+ }
70465
+ if (matchers.lab) {
70466
+ if (match = matchers.lab.exec(color)) {
70467
+ const L = parseModernComponent(match[1], 100);
70468
+ const a = parseModernComponent(match[2], 125);
70469
+ const b = parseModernComponent(match[3], 125);
70470
+ const alpha = parseModernAlpha(match[4]);
70471
+ const [r, g, bl] = labToSrgb(L, a, b);
70472
+ return rgbFloatToInt(r, g, bl, alpha);
70473
+ }
70474
+ }
70475
+ if (matchers.lch) {
70476
+ if (match = matchers.lch.exec(color)) {
70477
+ const L = parseModernComponent(match[1], 100);
70478
+ const C = parseModernComponent(match[2], 150);
70479
+ const H = parseHueAngle(match[3]);
70480
+ const alpha = parseModernAlpha(match[4]);
70481
+ const hRad = H * Math.PI / 180;
70482
+ const [r, g, bl] = labToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
70483
+ return rgbFloatToInt(r, g, bl, alpha);
70484
+ }
70485
+ }
70486
+ if (matchers.hwb) {
70487
+ if (match = matchers.hwb.exec(color)) {
70488
+ const H = parseHueAngle(match[1]);
70489
+ const W = parseModernComponent(match[2], 1);
70490
+ const B = parseModernComponent(match[3], 1);
70491
+ const alpha = parseModernAlpha(match[4]);
70492
+ const [r, g, bl] = hwbToSrgb(H / 360, W, B);
70493
+ return rgbFloatToInt(r, g, bl, alpha);
70494
+ }
70495
+ }
70340
70496
  throw new Error(`invalid color string ${color} provided`);
70341
70497
  }
70342
70498
  function processColor(color) {
@@ -70578,7 +70734,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
70578
70734
  }
70579
70735
  }
70580
70736
  };
70581
- var VERSION = "4.0.437";
70737
+ var VERSION = "4.0.439";
70582
70738
  var isColorSupported = () => {
70583
70739
  const env = process.env || {};
70584
70740
  const isForceDisabled = "NO_COLOR" in env;
@@ -69398,6 +69398,10 @@ var PERCENTAGE = NUMBER + "%";
69398
69398
  function call(...args) {
69399
69399
  return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
69400
69400
  }
69401
+ var MODERN_VALUE = "(?:none|[-+]?\\d*\\.?\\d+(?:%|deg|rad|grad|turn)?)";
69402
+ function modernColorCall(name) {
69403
+ return new RegExp(name + "\\(\\s*(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")\\s+(" + MODERN_VALUE + ")(?:\\s*\\/\\s*(" + MODERN_VALUE + "))?\\s*\\)");
69404
+ }
69401
69405
  function getMatchers() {
69402
69406
  const cachedMatchers = {
69403
69407
  rgb: undefined,
@@ -69408,7 +69412,12 @@ function getMatchers() {
69408
69412
  hex4: undefined,
69409
69413
  hex5: undefined,
69410
69414
  hex6: undefined,
69411
- hex8: undefined
69415
+ hex8: undefined,
69416
+ oklch: undefined,
69417
+ oklab: undefined,
69418
+ lab: undefined,
69419
+ lch: undefined,
69420
+ hwb: undefined
69412
69421
  };
69413
69422
  if (cachedMatchers.rgb === undefined) {
69414
69423
  cachedMatchers.rgb = new RegExp("rgb" + call(NUMBER, NUMBER, NUMBER));
@@ -69419,6 +69428,11 @@ function getMatchers() {
69419
69428
  cachedMatchers.hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
69420
69429
  cachedMatchers.hex6 = /^#([0-9a-fA-F]{6})$/;
69421
69430
  cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
69431
+ cachedMatchers.oklch = modernColorCall("oklch");
69432
+ cachedMatchers.oklab = modernColorCall("oklab");
69433
+ cachedMatchers.lab = modernColorCall("lab");
69434
+ cachedMatchers.lch = modernColorCall("lch");
69435
+ cachedMatchers.hwb = modernColorCall("hwb");
69422
69436
  }
69423
69437
  return cachedMatchers;
69424
69438
  }
@@ -69482,6 +69496,96 @@ function parsePercentage(str) {
69482
69496
  }
69483
69497
  return int / 100;
69484
69498
  }
69499
+ function parseModernComponent(str, percentScale) {
69500
+ if (str === "none")
69501
+ return 0;
69502
+ if (str.endsWith("%")) {
69503
+ return Number.parseFloat(str) / 100 * percentScale;
69504
+ }
69505
+ return Number.parseFloat(str);
69506
+ }
69507
+ function parseHueAngle(str) {
69508
+ if (str === "none")
69509
+ return 0;
69510
+ if (str.endsWith("rad")) {
69511
+ return Number.parseFloat(str) * 180 / Math.PI;
69512
+ }
69513
+ if (str.endsWith("grad"))
69514
+ return Number.parseFloat(str) * 0.9;
69515
+ if (str.endsWith("turn"))
69516
+ return Number.parseFloat(str) * 360;
69517
+ return Number.parseFloat(str);
69518
+ }
69519
+ function parseModernAlpha(str) {
69520
+ if (str === undefined || str === "none")
69521
+ return 1;
69522
+ if (str.endsWith("%")) {
69523
+ return Math.max(0, Math.min(1, Number.parseFloat(str) / 100));
69524
+ }
69525
+ return Math.max(0, Math.min(1, Number.parseFloat(str)));
69526
+ }
69527
+ function linearToSrgb(c) {
69528
+ if (c <= 0.0031308)
69529
+ return 12.92 * c;
69530
+ return 1.055 * c ** (1 / 2.4) - 0.055;
69531
+ }
69532
+ function clamp01(v) {
69533
+ return Math.max(0, Math.min(1, v));
69534
+ }
69535
+ function rgbFloatToInt(r, g, b, alpha) {
69536
+ const ri = Math.round(clamp01(r) * 255);
69537
+ const gi = Math.round(clamp01(g) * 255);
69538
+ const bi = Math.round(clamp01(b) * 255);
69539
+ const ai = Math.round(clamp01(alpha) * 255);
69540
+ return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
69541
+ }
69542
+ function oklabToSrgb(L, a, b) {
69543
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
69544
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
69545
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
69546
+ const l = l_ * l_ * l_;
69547
+ const m = m_ * m_ * m_;
69548
+ const s = s_ * s_ * s_;
69549
+ const rLin = 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
69550
+ const gLin = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
69551
+ const bLin = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
69552
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
69553
+ }
69554
+ function labToSrgb(L, a, b) {
69555
+ const epsilon = 216 / 24389;
69556
+ const kappa = 24389 / 27;
69557
+ const Xn = 0.95047;
69558
+ const Yn = 1;
69559
+ const Zn = 1.08883;
69560
+ const fy = (L + 16) / 116;
69561
+ const fx = a / 500 + fy;
69562
+ const fz = fy - b / 200;
69563
+ const fx3 = fx * fx * fx;
69564
+ const fz3 = fz * fz * fz;
69565
+ const xr = fx3 > epsilon ? fx3 : (116 * fx - 16) / kappa;
69566
+ const yr = L > kappa * epsilon ? ((L + 16) / 116) ** 3 : L / kappa;
69567
+ const zr = fz3 > epsilon ? fz3 : (116 * fz - 16) / kappa;
69568
+ const X = xr * Xn;
69569
+ const Y = yr * Yn;
69570
+ const Z = zr * Zn;
69571
+ const rLin = 3.2404542 * X - 1.5371385 * Y - 0.4985314 * Z;
69572
+ const gLin = -0.969266 * X + 1.8760108 * Y + 0.041556 * Z;
69573
+ const bLin = 0.0556434 * X - 0.2040259 * Y + 1.0572252 * Z;
69574
+ return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
69575
+ }
69576
+ function hwbToSrgb(h, w, bk) {
69577
+ if (w + bk >= 1) {
69578
+ const gray = w / (w + bk);
69579
+ return [gray, gray, gray];
69580
+ }
69581
+ const q = 1;
69582
+ const p = 0;
69583
+ const r = hue2rgb(p, q, h + 1 / 3);
69584
+ const g = hue2rgb(p, q, h);
69585
+ const bl = hue2rgb(p, q, h - 1 / 3);
69586
+ const factor = 1 - w - bk;
69587
+ return [r * factor + w, g * factor + w, bl * factor + w];
69588
+ }
69485
69589
  var colorNames = {
69486
69590
  transparent: 0,
69487
69591
  aliceblue: 4042850303,
@@ -69680,6 +69784,58 @@ function normalizeColor(color) {
69680
69784
  return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0;
69681
69785
  }
69682
69786
  }
69787
+ if (matchers.oklch) {
69788
+ if (match = matchers.oklch.exec(color)) {
69789
+ const L = parseModernComponent(match[1], 1);
69790
+ const C = parseModernComponent(match[2], 0.4);
69791
+ const H = parseHueAngle(match[3]);
69792
+ const alpha = parseModernAlpha(match[4]);
69793
+ const hRad = H * Math.PI / 180;
69794
+ const [r, g, b] = oklabToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
69795
+ return rgbFloatToInt(r, g, b, alpha);
69796
+ }
69797
+ }
69798
+ if (matchers.oklab) {
69799
+ if (match = matchers.oklab.exec(color)) {
69800
+ const L = parseModernComponent(match[1], 1);
69801
+ const a = parseModernComponent(match[2], 0.4);
69802
+ const b = parseModernComponent(match[3], 0.4);
69803
+ const alpha = parseModernAlpha(match[4]);
69804
+ const [r, g, bl] = oklabToSrgb(L, a, b);
69805
+ return rgbFloatToInt(r, g, bl, alpha);
69806
+ }
69807
+ }
69808
+ if (matchers.lab) {
69809
+ if (match = matchers.lab.exec(color)) {
69810
+ const L = parseModernComponent(match[1], 100);
69811
+ const a = parseModernComponent(match[2], 125);
69812
+ const b = parseModernComponent(match[3], 125);
69813
+ const alpha = parseModernAlpha(match[4]);
69814
+ const [r, g, bl] = labToSrgb(L, a, b);
69815
+ return rgbFloatToInt(r, g, bl, alpha);
69816
+ }
69817
+ }
69818
+ if (matchers.lch) {
69819
+ if (match = matchers.lch.exec(color)) {
69820
+ const L = parseModernComponent(match[1], 100);
69821
+ const C = parseModernComponent(match[2], 150);
69822
+ const H = parseHueAngle(match[3]);
69823
+ const alpha = parseModernAlpha(match[4]);
69824
+ const hRad = H * Math.PI / 180;
69825
+ const [r, g, bl] = labToSrgb(L, C * Math.cos(hRad), C * Math.sin(hRad));
69826
+ return rgbFloatToInt(r, g, bl, alpha);
69827
+ }
69828
+ }
69829
+ if (matchers.hwb) {
69830
+ if (match = matchers.hwb.exec(color)) {
69831
+ const H = parseHueAngle(match[1]);
69832
+ const W = parseModernComponent(match[2], 1);
69833
+ const B = parseModernComponent(match[3], 1);
69834
+ const alpha = parseModernAlpha(match[4]);
69835
+ const [r, g, bl] = hwbToSrgb(H / 360, W, B);
69836
+ return rgbFloatToInt(r, g, bl, alpha);
69837
+ }
69838
+ }
69683
69839
  throw new Error(`invalid color string ${color} provided`);
69684
69840
  }
69685
69841
  function processColor(color) {
@@ -69921,7 +70077,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
69921
70077
  }
69922
70078
  }
69923
70079
  };
69924
- var VERSION = "4.0.437";
70080
+ var VERSION = "4.0.439";
69925
70081
  var isColorSupported = () => {
69926
70082
  const env = process.env || {};
69927
70083
  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.437",
6
+ "version": "4.0.439",
7
7
  "main": "dist/cjs/index.js",
8
8
  "sideEffects": false,
9
9
  "scripts": {
@@ -27,10 +27,10 @@
27
27
  "@aws-sdk/lib-storage": "3.986.0",
28
28
  "mime-types": "2.1.34",
29
29
  "@aws-sdk/credential-provider-ini": "3.972.5",
30
- "@remotion/serverless-client": "4.0.437",
30
+ "@remotion/serverless-client": "4.0.439",
31
31
  "@types/express": "^5.0.0",
32
32
  "express": "4.21.0",
33
- "@remotion/eslint-config-internal": "4.0.437",
33
+ "@remotion/eslint-config-internal": "4.0.439",
34
34
  "eslint": "9.19.0",
35
35
  "next": "16.1.7",
36
36
  "@types/mime-types": "2.1.1",