@remotion/vercel 4.0.459 → 4.0.461
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/esm/index.mjs +64 -2
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -164,6 +164,36 @@ var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
|
164
164
|
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
165
165
|
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
166
166
|
var DELAY_RENDER_CLEAR_TOKEN = "handle was cleared after";
|
|
167
|
+
var findPropsToDelete = ({
|
|
168
|
+
schema,
|
|
169
|
+
key,
|
|
170
|
+
value
|
|
171
|
+
}) => {
|
|
172
|
+
const fieldSchema = schema[key];
|
|
173
|
+
if (!fieldSchema) {
|
|
174
|
+
throw new Error("Key " + JSON.stringify(key) + " not found in schema");
|
|
175
|
+
}
|
|
176
|
+
if (typeof value !== "string") {
|
|
177
|
+
throw new Error("Value must be a string, but is " + JSON.stringify(value));
|
|
178
|
+
}
|
|
179
|
+
if (fieldSchema.type !== "enum") {
|
|
180
|
+
throw new Error("Key " + JSON.stringify(key) + " is not an enum");
|
|
181
|
+
}
|
|
182
|
+
const currentVariant = fieldSchema.variants[value];
|
|
183
|
+
if (!currentVariant) {
|
|
184
|
+
throw new Error("Value for " + JSON.stringify(key) + " must be one of " + Object.keys(fieldSchema.variants).map((v) => JSON.stringify(v)).join(", ") + ", got " + JSON.stringify(value));
|
|
185
|
+
}
|
|
186
|
+
const otherVariants = Object.keys(fieldSchema.variants).filter((v) => v !== value);
|
|
187
|
+
const otherKeys = new Set;
|
|
188
|
+
for (const variant of otherVariants) {
|
|
189
|
+
const otherVariant = fieldSchema.variants[variant];
|
|
190
|
+
const keys = Object.keys(otherVariant);
|
|
191
|
+
for (const k of keys) {
|
|
192
|
+
otherKeys.add(k);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return [...otherKeys];
|
|
196
|
+
};
|
|
167
197
|
var DATE_TOKEN = "remotion-date:";
|
|
168
198
|
var FILE_TOKEN = "remotion-file:";
|
|
169
199
|
var serializeJSONWithSpecialTypes = ({
|
|
@@ -831,7 +861,8 @@ var NoReactInternals = {
|
|
|
831
861
|
DATE_TOKEN,
|
|
832
862
|
FILE_TOKEN,
|
|
833
863
|
validateCodec,
|
|
834
|
-
proResProfileOptions
|
|
864
|
+
proResProfileOptions,
|
|
865
|
+
findPropsToDelete
|
|
835
866
|
};
|
|
836
867
|
|
|
837
868
|
// src/scripts/render-still.ts
|
|
@@ -1057,6 +1088,36 @@ var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
|
1057
1088
|
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
1058
1089
|
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
1059
1090
|
var DELAY_RENDER_CLEAR_TOKEN = "handle was cleared after";
|
|
1091
|
+
var findPropsToDelete = ({
|
|
1092
|
+
schema,
|
|
1093
|
+
key,
|
|
1094
|
+
value
|
|
1095
|
+
}) => {
|
|
1096
|
+
const fieldSchema = schema[key];
|
|
1097
|
+
if (!fieldSchema) {
|
|
1098
|
+
throw new Error("Key " + JSON.stringify(key) + " not found in schema");
|
|
1099
|
+
}
|
|
1100
|
+
if (typeof value !== "string") {
|
|
1101
|
+
throw new Error("Value must be a string, but is " + JSON.stringify(value));
|
|
1102
|
+
}
|
|
1103
|
+
if (fieldSchema.type !== "enum") {
|
|
1104
|
+
throw new Error("Key " + JSON.stringify(key) + " is not an enum");
|
|
1105
|
+
}
|
|
1106
|
+
const currentVariant = fieldSchema.variants[value];
|
|
1107
|
+
if (!currentVariant) {
|
|
1108
|
+
throw new Error("Value for " + JSON.stringify(key) + " must be one of " + Object.keys(fieldSchema.variants).map((v) => JSON.stringify(v)).join(", ") + ", got " + JSON.stringify(value));
|
|
1109
|
+
}
|
|
1110
|
+
const otherVariants = Object.keys(fieldSchema.variants).filter((v) => v !== value);
|
|
1111
|
+
const otherKeys = new Set;
|
|
1112
|
+
for (const variant of otherVariants) {
|
|
1113
|
+
const otherVariant = fieldSchema.variants[variant];
|
|
1114
|
+
const keys = Object.keys(otherVariant);
|
|
1115
|
+
for (const k of keys) {
|
|
1116
|
+
otherKeys.add(k);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
return [...otherKeys];
|
|
1120
|
+
};
|
|
1060
1121
|
var DATE_TOKEN = "remotion-date:";
|
|
1061
1122
|
var FILE_TOKEN = "remotion-file:";
|
|
1062
1123
|
var serializeJSONWithSpecialTypes = ({
|
|
@@ -1724,7 +1785,8 @@ var NoReactInternals = {
|
|
|
1724
1785
|
DATE_TOKEN,
|
|
1725
1786
|
FILE_TOKEN,
|
|
1726
1787
|
validateCodec,
|
|
1727
|
-
proResProfileOptions
|
|
1788
|
+
proResProfileOptions,
|
|
1789
|
+
findPropsToDelete
|
|
1728
1790
|
};
|
|
1729
1791
|
|
|
1730
1792
|
// src/scripts/render-video.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/vercel",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.461",
|
|
4
4
|
"description": "Render Remotion videos on Vercel Sandbox",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@remotion/renderer": "4.0.
|
|
28
|
-
"remotion": "4.0.
|
|
27
|
+
"@remotion/renderer": "4.0.461",
|
|
28
|
+
"remotion": "4.0.461"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@vercel/sandbox": ">=1.0.0"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
42
|
+
"@remotion/eslint-config-internal": "4.0.461",
|
|
43
43
|
"@vercel/blob": "2.3.0",
|
|
44
44
|
"@vercel/sandbox": "1.6.0",
|
|
45
45
|
"eslint": "9.19.0",
|