@remotion/lambda-client 4.0.515 → 4.0.516
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 +15 -3
- package/dist/esm/index.mjs +15 -3
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -71183,7 +71183,7 @@ var serializeJSONWithSpecialTypes = ({
|
|
|
71183
71183
|
setUsed = true;
|
|
71184
71184
|
return value;
|
|
71185
71185
|
}
|
|
71186
|
-
if (typeof item === "string" && staticBase !== null && item.startsWith(staticBase)) {
|
|
71186
|
+
if (typeof item === "string" && staticBase !== null && staticBase !== "" && item.startsWith(staticBase)) {
|
|
71187
71187
|
customFileUsed = true;
|
|
71188
71188
|
return `${FILE_TOKEN}${item.replace(staticBase + "/", "")}`;
|
|
71189
71189
|
}
|
|
@@ -71194,13 +71194,25 @@ var serializeJSONWithSpecialTypes = ({
|
|
|
71194
71194
|
throw new Error("Could not serialize the passed input props to JSON: " + err.message);
|
|
71195
71195
|
}
|
|
71196
71196
|
};
|
|
71197
|
+
var resolveFileTokenToUrl = (value) => {
|
|
71198
|
+
const encodedName = value.replace(FILE_TOKEN, "");
|
|
71199
|
+
let name = encodedName;
|
|
71200
|
+
try {
|
|
71201
|
+
name = encodedName.split("/").map(decodeURIComponent).join("/");
|
|
71202
|
+
} catch {}
|
|
71203
|
+
const matchingStaticFile = window.remotion_staticFiles?.find((file) => file.name === name);
|
|
71204
|
+
if (matchingStaticFile) {
|
|
71205
|
+
return matchingStaticFile.src;
|
|
71206
|
+
}
|
|
71207
|
+
return `${window.remotion_staticBase}/${encodedName}`;
|
|
71208
|
+
};
|
|
71197
71209
|
var deserializeJSONWithSpecialTypes = (data) => {
|
|
71198
71210
|
return JSON.parse(data, (_, value) => {
|
|
71199
71211
|
if (typeof value === "string" && value.startsWith(DATE_TOKEN)) {
|
|
71200
71212
|
return new Date(value.replace(DATE_TOKEN, ""));
|
|
71201
71213
|
}
|
|
71202
71214
|
if (typeof value === "string" && value.startsWith(FILE_TOKEN)) {
|
|
71203
|
-
return
|
|
71215
|
+
return resolveFileTokenToUrl(value);
|
|
71204
71216
|
}
|
|
71205
71217
|
return value;
|
|
71206
71218
|
});
|
|
@@ -72197,7 +72209,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
72197
72209
|
}
|
|
72198
72210
|
}
|
|
72199
72211
|
};
|
|
72200
|
-
var VERSION = "4.0.
|
|
72212
|
+
var VERSION = "4.0.516";
|
|
72201
72213
|
var isColorSupported = () => {
|
|
72202
72214
|
const env = process.env || {};
|
|
72203
72215
|
const isForceDisabled = "NO_COLOR" in env;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -70525,7 +70525,7 @@ var serializeJSONWithSpecialTypes = ({
|
|
|
70525
70525
|
setUsed = true;
|
|
70526
70526
|
return value;
|
|
70527
70527
|
}
|
|
70528
|
-
if (typeof item === "string" && staticBase !== null && item.startsWith(staticBase)) {
|
|
70528
|
+
if (typeof item === "string" && staticBase !== null && staticBase !== "" && item.startsWith(staticBase)) {
|
|
70529
70529
|
customFileUsed = true;
|
|
70530
70530
|
return `${FILE_TOKEN}${item.replace(staticBase + "/", "")}`;
|
|
70531
70531
|
}
|
|
@@ -70536,13 +70536,25 @@ var serializeJSONWithSpecialTypes = ({
|
|
|
70536
70536
|
throw new Error("Could not serialize the passed input props to JSON: " + err.message);
|
|
70537
70537
|
}
|
|
70538
70538
|
};
|
|
70539
|
+
var resolveFileTokenToUrl = (value) => {
|
|
70540
|
+
const encodedName = value.replace(FILE_TOKEN, "");
|
|
70541
|
+
let name = encodedName;
|
|
70542
|
+
try {
|
|
70543
|
+
name = encodedName.split("/").map(decodeURIComponent).join("/");
|
|
70544
|
+
} catch {}
|
|
70545
|
+
const matchingStaticFile = window.remotion_staticFiles?.find((file) => file.name === name);
|
|
70546
|
+
if (matchingStaticFile) {
|
|
70547
|
+
return matchingStaticFile.src;
|
|
70548
|
+
}
|
|
70549
|
+
return `${window.remotion_staticBase}/${encodedName}`;
|
|
70550
|
+
};
|
|
70539
70551
|
var deserializeJSONWithSpecialTypes = (data) => {
|
|
70540
70552
|
return JSON.parse(data, (_, value) => {
|
|
70541
70553
|
if (typeof value === "string" && value.startsWith(DATE_TOKEN)) {
|
|
70542
70554
|
return new Date(value.replace(DATE_TOKEN, ""));
|
|
70543
70555
|
}
|
|
70544
70556
|
if (typeof value === "string" && value.startsWith(FILE_TOKEN)) {
|
|
70545
|
-
return
|
|
70557
|
+
return resolveFileTokenToUrl(value);
|
|
70546
70558
|
}
|
|
70547
70559
|
return value;
|
|
70548
70560
|
});
|
|
@@ -71539,7 +71551,7 @@ var validateDownloadBehavior = (downloadBehavior) => {
|
|
|
71539
71551
|
}
|
|
71540
71552
|
}
|
|
71541
71553
|
};
|
|
71542
|
-
var VERSION = "4.0.
|
|
71554
|
+
var VERSION = "4.0.516";
|
|
71543
71555
|
var isColorSupported = () => {
|
|
71544
71556
|
const env = process.env || {};
|
|
71545
71557
|
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.516",
|
|
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.516",
|
|
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.516",
|
|
33
33
|
"eslint": "9.19.0",
|
|
34
34
|
"next": "16.2.11",
|
|
35
35
|
"@types/mime-types": "2.1.1",
|