@remotion/lambda-client 4.0.467 → 4.0.469

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.
@@ -2,37 +2,27 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- function __accessProp(key) {
6
- return this[key];
7
- }
5
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
8
6
  var __toCommonJS = (from) => {
9
- var entry = (__moduleCache ??= new WeakMap).get(from), desc;
7
+ var entry = __moduleCache.get(from), desc;
10
8
  if (entry)
11
9
  return entry;
12
10
  entry = __defProp({}, "__esModule", { value: true });
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (var key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(entry, key))
16
- __defProp(entry, key, {
17
- get: __accessProp.bind(from, key),
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- }
11
+ if (from && typeof from === "object" || typeof from === "function")
12
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ }));
21
16
  __moduleCache.set(from, entry);
22
17
  return entry;
23
18
  };
24
- var __moduleCache;
25
- var __returnValue = (v) => v;
26
- function __exportSetter(name, newValue) {
27
- this[name] = __returnValue.bind(null, newValue);
28
- }
29
19
  var __export = (target, all) => {
30
20
  for (var name in all)
31
21
  __defProp(target, name, {
32
22
  get: all[name],
33
23
  enumerable: true,
34
24
  configurable: true,
35
- set: __exportSetter.bind(all, name)
25
+ set: (newValue) => all[name] = () => newValue
36
26
  });
37
27
  };
38
28
 
package/dist/cjs/index.js CHANGED
@@ -4,60 +4,39 @@ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- function __accessProp(key) {
8
- return this[key];
9
- }
10
- var __toESMCache_node;
11
- var __toESMCache_esm;
12
7
  var __toESM = (mod, isNodeMode, target) => {
13
- var canCache = mod != null && typeof mod === "object";
14
- if (canCache) {
15
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
- var cached = cache.get(mod);
17
- if (cached)
18
- return cached;
19
- }
20
8
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
9
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
10
  for (let key of __getOwnPropNames(mod))
23
11
  if (!__hasOwnProp.call(to, key))
24
12
  __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
13
+ get: () => mod[key],
26
14
  enumerable: true
27
15
  });
28
- if (canCache)
29
- cache.set(mod, to);
30
16
  return to;
31
17
  };
18
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
32
19
  var __toCommonJS = (from) => {
33
- var entry = (__moduleCache ??= new WeakMap).get(from), desc;
20
+ var entry = __moduleCache.get(from), desc;
34
21
  if (entry)
35
22
  return entry;
36
23
  entry = __defProp({}, "__esModule", { value: true });
37
- if (from && typeof from === "object" || typeof from === "function") {
38
- for (var key of __getOwnPropNames(from))
39
- if (!__hasOwnProp.call(entry, key))
40
- __defProp(entry, key, {
41
- get: __accessProp.bind(from, key),
42
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
43
- });
44
- }
24
+ if (from && typeof from === "object" || typeof from === "function")
25
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
26
+ get: () => from[key],
27
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
+ }));
45
29
  __moduleCache.set(from, entry);
46
30
  return entry;
47
31
  };
48
- var __moduleCache;
49
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
50
- var __returnValue = (v) => v;
51
- function __exportSetter(name, newValue) {
52
- this[name] = __returnValue.bind(null, newValue);
53
- }
54
33
  var __export = (target, all) => {
55
34
  for (var name in all)
56
35
  __defProp(target, name, {
57
36
  get: all[name],
58
37
  enumerable: true,
59
38
  configurable: true,
60
- set: __exportSetter.bind(all, name)
39
+ set: (newValue) => all[name] = () => newValue
61
40
  });
62
41
  };
63
42
 
@@ -4203,7 +4182,7 @@ var require_serde = __commonJS((exports2) => {
4203
4182
  }
4204
4183
  return value.slice(idx);
4205
4184
  };
4206
- var LazyJsonString = function LazyJsonString2(val) {
4185
+ var LazyJsonString = function LazyJsonString(val) {
4207
4186
  const str = Object.assign(new String(val), {
4208
4187
  deserializeJSON() {
4209
4188
  return JSON.parse(String(val));
@@ -5757,7 +5736,7 @@ var require_dist_cjs19 = __commonJS((exports2) => {
5757
5736
  return httpRequest;
5758
5737
  }
5759
5738
  }
5760
- var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
5739
+ var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired(identity) {
5761
5740
  return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
5762
5741
  };
5763
5742
  var EXPIRATION_MS = 300000;
@@ -69930,8 +69909,8 @@ function checkValidInputRange(arr) {
69930
69909
  }
69931
69910
  }
69932
69911
  function checkInfiniteRange(name, arr) {
69933
- if (arr.length < 2) {
69934
- throw new Error(name + " must have at least 2 elements");
69912
+ if (arr.length < 1) {
69913
+ throw new Error(name + " must have at least 1 element");
69935
69914
  }
69936
69915
  for (const element of arr) {
69937
69916
  if (typeof element !== "number") {
@@ -69998,6 +69977,9 @@ function interpolate(input, inputRange, outputRange, options) {
69998
69977
  if (typeof input !== "number") {
69999
69978
  throw new TypeError("Cannot interpolate an input which is not a number");
70000
69979
  }
69980
+ if (inputRange.length === 1) {
69981
+ return outputRange[0];
69982
+ }
70001
69983
  const range = findRange(input, inputRange);
70002
69984
  return interpolateFunction(input, [inputRange[range], inputRange[range + 1]], [outputRange[range], outputRange[range + 1]], {
70003
69985
  easing: resolveEasingForSegment(range),
@@ -70892,7 +70874,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
70892
70874
  }
70893
70875
  }
70894
70876
  };
70895
- var VERSION = "4.0.467";
70877
+ var VERSION = "4.0.469";
70896
70878
  var isColorSupported = () => {
70897
70879
  const env = process.env || {};
70898
70880
  const isForceDisabled = "NO_COLOR" in env;
@@ -2,37 +2,27 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- function __accessProp(key) {
6
- return this[key];
7
- }
5
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
8
6
  var __toCommonJS = (from) => {
9
- var entry = (__moduleCache ??= new WeakMap).get(from), desc;
7
+ var entry = __moduleCache.get(from), desc;
10
8
  if (entry)
11
9
  return entry;
12
10
  entry = __defProp({}, "__esModule", { value: true });
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (var key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(entry, key))
16
- __defProp(entry, key, {
17
- get: __accessProp.bind(from, key),
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- }
11
+ if (from && typeof from === "object" || typeof from === "function")
12
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ }));
21
16
  __moduleCache.set(from, entry);
22
17
  return entry;
23
18
  };
24
- var __moduleCache;
25
- var __returnValue = (v) => v;
26
- function __exportSetter(name, newValue) {
27
- this[name] = __returnValue.bind(null, newValue);
28
- }
29
19
  var __export = (target, all) => {
30
20
  for (var name in all)
31
21
  __defProp(target, name, {
32
22
  get: all[name],
33
23
  enumerable: true,
34
24
  configurable: true,
35
- set: __exportSetter.bind(all, name)
25
+ set: (newValue) => all[name] = () => newValue
36
26
  });
37
27
  };
38
28
 
@@ -4,29 +4,15 @@ var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- function __accessProp(key) {
8
- return this[key];
9
- }
10
- var __toESMCache_node;
11
- var __toESMCache_esm;
12
7
  var __toESM = (mod, isNodeMode, target) => {
13
- var canCache = mod != null && typeof mod === "object";
14
- if (canCache) {
15
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
- var cached = cache.get(mod);
17
- if (cached)
18
- return cached;
19
- }
20
8
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
9
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
10
  for (let key of __getOwnPropNames(mod))
23
11
  if (!__hasOwnProp.call(to, key))
24
12
  __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
13
+ get: () => mod[key],
26
14
  enumerable: true
27
15
  });
28
- if (canCache)
29
- cache.set(mod, to);
30
16
  return to;
31
17
  };
32
18
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
@@ -4174,7 +4160,7 @@ var require_serde = __commonJS((exports) => {
4174
4160
  }
4175
4161
  return value.slice(idx);
4176
4162
  };
4177
- var LazyJsonString = function LazyJsonString2(val) {
4163
+ var LazyJsonString = function LazyJsonString(val) {
4178
4164
  const str = Object.assign(new String(val), {
4179
4165
  deserializeJSON() {
4180
4166
  return JSON.parse(String(val));
@@ -5728,7 +5714,7 @@ var require_dist_cjs19 = __commonJS((exports) => {
5728
5714
  return httpRequest;
5729
5715
  }
5730
5716
  }
5731
- var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
5717
+ var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired(identity) {
5732
5718
  return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
5733
5719
  };
5734
5720
  var EXPIRATION_MS = 300000;
@@ -69066,6 +69052,16 @@ var require_db = __commonJS((exports, module) => {
69066
69052
  };
69067
69053
  });
69068
69054
 
69055
+ // ../../node_modules/.bun/mime-db@1.51.0/node_modules/mime-db/index.js
69056
+ var require_mime_db = __commonJS((exports, module) => {
69057
+ /*!
69058
+ * mime-db
69059
+ * Copyright(c) 2014 Jonathan Ong
69060
+ * MIT Licensed
69061
+ */
69062
+ module.exports = require_db();
69063
+ });
69064
+
69069
69065
  // ../../node_modules/.bun/mime-types@2.1.34/node_modules/mime-types/index.js
69070
69066
  var require_mime_types = __commonJS((exports) => {
69071
69067
  /*!
@@ -69074,7 +69070,7 @@ var require_mime_types = __commonJS((exports) => {
69074
69070
  * Copyright(c) 2015 Douglas Christopher Wilson
69075
69071
  * MIT Licensed
69076
69072
  */
69077
- var db = require_db();
69073
+ var db = require_mime_db();
69078
69074
  var extname = __require("path").extname;
69079
69075
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
69080
69076
  var TEXT_TYPE_REGEXP = /^text\//i;
@@ -69256,8 +69252,8 @@ function checkValidInputRange(arr) {
69256
69252
  }
69257
69253
  }
69258
69254
  function checkInfiniteRange(name, arr) {
69259
- if (arr.length < 2) {
69260
- throw new Error(name + " must have at least 2 elements");
69255
+ if (arr.length < 1) {
69256
+ throw new Error(name + " must have at least 1 element");
69261
69257
  }
69262
69258
  for (const element of arr) {
69263
69259
  if (typeof element !== "number") {
@@ -69324,6 +69320,9 @@ function interpolate(input, inputRange, outputRange, options) {
69324
69320
  if (typeof input !== "number") {
69325
69321
  throw new TypeError("Cannot interpolate an input which is not a number");
69326
69322
  }
69323
+ if (inputRange.length === 1) {
69324
+ return outputRange[0];
69325
+ }
69327
69326
  const range = findRange(input, inputRange);
69328
69327
  return interpolateFunction(input, [inputRange[range], inputRange[range + 1]], [outputRange[range], outputRange[range + 1]], {
69329
69328
  easing: resolveEasingForSegment(range),
@@ -70218,7 +70217,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
70218
70217
  }
70219
70218
  }
70220
70219
  };
70221
- var VERSION = "4.0.467";
70220
+ var VERSION = "4.0.469";
70222
70221
  var isColorSupported = () => {
70223
70222
  const env = process.env || {};
70224
70223
  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.467",
6
+ "version": "4.0.469",
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.467",
29
+ "@remotion/serverless-client": "4.0.469",
30
30
  "@types/express": "5.0.1",
31
31
  "express": "4.21.0",
32
- "@remotion/eslint-config-internal": "4.0.467",
32
+ "@remotion/eslint-config-internal": "4.0.469",
33
33
  "eslint": "9.19.0",
34
34
  "next": "16.2.6",
35
35
  "@types/mime-types": "2.1.1",