@remotion/cloudrun 4.0.213 → 4.0.214
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/.turbo/turbo-make.log +6 -0
- package/dist/api/get-buckets.d.ts +1 -1
- package/dist/api/get-sites.d.ts +1 -1
- package/dist/api/helpers/extract-mem-from-url.js +1 -2
- package/dist/api/helpers/extract-time-from-url.js +1 -2
- package/dist/api/helpers/parse-service-name.d.ts +1 -1
- package/dist/api/render-media-on-cloudrun.d.ts +2 -1
- package/dist/api/render-still-on-cloudrun.d.ts +7 -7
- package/dist/cli/args.d.ts +0 -1
- package/dist/cli/log.d.ts +6 -6
- package/dist/client.d.ts +2 -2
- package/dist/functions/helpers/payloads.d.ts +14 -14
- package/dist/index.d.ts +11 -26
- package/dist/index.js +1 -1
- package/dist/internals.d.ts +1 -1
- package/dist/shared/base64-to-hash.js +1 -2
- package/dist/shared/read-dir.js +1 -2
- package/dist/shared/validate-gcp-region.js +1 -2
- package/dist/shared/validate-privacy.js +1 -2
- package/dist/shared/validate-region.d.ts +2 -1
- package/dist/shared/validate-retries.js +1 -2
- package/package.json +7 -7
- package/.turbo/turbo-build.log +0 -6
- package/.turbo/turbo-lint.log +0 -30
|
@@ -5,6 +5,6 @@ import type { GcpRegion } from '../pricing/gcp-regions';
|
|
|
5
5
|
* @param params.region GCP region to check. If not passed, all regions will be checked.
|
|
6
6
|
* @returns {Promise<Bucket[]>} List of buckets returned by GCP.
|
|
7
7
|
*/
|
|
8
|
-
export declare const getRemotionStorageBuckets: (region: GcpRegion |
|
|
8
|
+
export declare const getRemotionStorageBuckets: (region: GcpRegion | "all regions") => Promise<{
|
|
9
9
|
remotionBuckets: Bucket[];
|
|
10
10
|
}>;
|
package/dist/api/get-sites.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export type GetSitesOutput = {
|
|
|
20
20
|
* @param {GcpRegion} params.region The GCP region that you want to query for.
|
|
21
21
|
* @returns {Promise<GetSitesOutput>} A Promise containing an object with `sites` and `bucket` keys. Consult documentation for details.
|
|
22
22
|
*/
|
|
23
|
-
export declare const getSites: (region: GcpRegion |
|
|
23
|
+
export declare const getSites: (region: GcpRegion | "all regions") => Promise<GetSitesOutput>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractMemoryFromURL =
|
|
3
|
+
exports.extractMemoryFromURL = extractMemoryFromURL;
|
|
4
4
|
function extractMemoryFromURL(url) {
|
|
5
5
|
const regex = /mem(.*?)-/;
|
|
6
6
|
const match = url.match(regex);
|
|
7
7
|
return match ? match[1] : undefined;
|
|
8
8
|
}
|
|
9
|
-
exports.extractMemoryFromURL = extractMemoryFromURL;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractTimeoutFromURL =
|
|
3
|
+
exports.extractTimeoutFromURL = extractTimeoutFromURL;
|
|
4
4
|
function extractTimeoutFromURL(url) {
|
|
5
5
|
const firstTIndex = url.indexOf('-t');
|
|
6
6
|
if (firstTIndex !== -1) {
|
|
@@ -10,4 +10,3 @@ function extractTimeoutFromURL(url) {
|
|
|
10
10
|
}
|
|
11
11
|
return undefined;
|
|
12
12
|
}
|
|
13
|
-
exports.extractTimeoutFromURL = extractTimeoutFromURL;
|
|
@@ -3,6 +3,6 @@ export declare const getGcpParent: (region: GcpRegion) => string;
|
|
|
3
3
|
export declare const parseServiceName: (fullServiceName: string, region: GcpRegion) => {
|
|
4
4
|
serviceName: string;
|
|
5
5
|
remotionVersion: string;
|
|
6
|
-
region:
|
|
6
|
+
region: GcpRegion;
|
|
7
7
|
consoleUrl: string;
|
|
8
8
|
};
|
|
@@ -60,7 +60,8 @@ export type RenderMediaOnCloudrunInput = {
|
|
|
60
60
|
preferLossless?: boolean;
|
|
61
61
|
downloadBehavior?: DownloadBehavior;
|
|
62
62
|
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>>;
|
|
63
|
-
|
|
63
|
+
declare const internalRenderMediaOnCloudrunRaw: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, }: InternalRenderMediaOnCloudrun) => Promise<RenderMediaOnCloudrunOutput | CloudRunCrashResponse>;
|
|
64
|
+
export declare const internalRenderMediaOnCloudrun: typeof internalRenderMediaOnCloudrunRaw;
|
|
64
65
|
/**
|
|
65
66
|
* @description Triggers a render on a GCP Cloud Run service given a composition and a Cloud Run URL.
|
|
66
67
|
* @see [Documentation](https://remotion.dev/docs/cloudrun/renderMediaOnGcp)
|
|
@@ -25,21 +25,21 @@ type OptionalParameters = {
|
|
|
25
25
|
} & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnCloudRun>;
|
|
26
26
|
export type RenderStillOnCloudrunInput = Partial<OptionalParameters> & MandatoryParameters;
|
|
27
27
|
export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{
|
|
28
|
+
name: string;
|
|
29
|
+
message: string;
|
|
30
|
+
type: "error";
|
|
31
|
+
stack: string;
|
|
32
|
+
} | {
|
|
33
|
+
bucketName: string;
|
|
28
34
|
type: "success";
|
|
29
35
|
privacy: "public-read" | "project-private";
|
|
30
36
|
cloudStorageUri: string;
|
|
31
37
|
size: number;
|
|
32
|
-
bucketName: string;
|
|
33
38
|
renderId: string;
|
|
34
39
|
publicUrl?: string | null | undefined;
|
|
35
40
|
} | {
|
|
36
|
-
type: "error";
|
|
37
|
-
message: string;
|
|
38
|
-
name: string;
|
|
39
|
-
stack: string;
|
|
40
|
-
} | {
|
|
41
|
-
type: "crash";
|
|
42
41
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
42
|
+
type: "crash";
|
|
43
43
|
cloudRunEndpoint: string;
|
|
44
44
|
requestStartTime: string;
|
|
45
45
|
requestCrashTime: string;
|
package/dist/cli/args.d.ts
CHANGED
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
2
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
3
|
-
tag?: string
|
|
4
|
-
}, ...args:
|
|
5
|
-
info: (options: import("@remotion/renderer").LogOptions, ...args:
|
|
6
|
-
warn: (options: import("@remotion/renderer").LogOptions, ...args:
|
|
3
|
+
tag?: string;
|
|
4
|
+
}, ...args: Parameters<typeof console.log>) => void;
|
|
5
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
6
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
7
7
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
8
|
-
tag?: string
|
|
9
|
-
}, ...args:
|
|
8
|
+
tag?: string;
|
|
9
|
+
}, ...args: Parameters<typeof console.log>) => void;
|
|
10
10
|
};
|
package/dist/client.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export { getRegions } from './api/get-regions';
|
|
|
5
5
|
export { getServiceInfo } from './api/get-service-info';
|
|
6
6
|
export { getServices } from './api/get-services';
|
|
7
7
|
export { getSites } from './api/get-sites';
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
8
|
+
export { RenderMediaOnCloudrunInput, renderMediaOnCloudrun, } from './api/render-media-on-cloudrun';
|
|
9
|
+
export { RenderStillOnCloudrunInput, renderStillOnCloudrun, } from './api/render-still-on-cloudrun';
|
|
10
10
|
export { speculateServiceName } from './api/speculate-service-name';
|
|
@@ -111,7 +111,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
111
111
|
envVariables: Record<string, string>;
|
|
112
112
|
muted: boolean;
|
|
113
113
|
outputBucket: string;
|
|
114
|
-
logLevel: "
|
|
114
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
115
115
|
delayRenderTimeoutInMilliseconds: number | null;
|
|
116
116
|
concurrency: string | number | null;
|
|
117
117
|
enforceAudioTrack: boolean;
|
|
@@ -160,7 +160,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
160
160
|
envVariables: Record<string, string>;
|
|
161
161
|
muted: boolean;
|
|
162
162
|
outputBucket: string;
|
|
163
|
-
logLevel: "
|
|
163
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
164
164
|
delayRenderTimeoutInMilliseconds: number | null;
|
|
165
165
|
concurrency: string | number | null;
|
|
166
166
|
enforceAudioTrack: boolean;
|
|
@@ -250,7 +250,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
250
250
|
outputBucket: string;
|
|
251
251
|
outName: string | null;
|
|
252
252
|
privacy: "public" | "private";
|
|
253
|
-
logLevel: "
|
|
253
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
254
254
|
delayRenderTimeoutInMilliseconds: number;
|
|
255
255
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
256
256
|
clientVersion: string;
|
|
@@ -282,7 +282,7 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
282
282
|
outputBucket: string;
|
|
283
283
|
outName: string | null;
|
|
284
284
|
privacy: "public" | "private";
|
|
285
|
-
logLevel: "
|
|
285
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
286
286
|
delayRenderTimeoutInMilliseconds: number;
|
|
287
287
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
288
288
|
clientVersion: string;
|
|
@@ -310,14 +310,14 @@ declare const renderFailResponsePayload: z.ZodObject<{
|
|
|
310
310
|
name: z.ZodString;
|
|
311
311
|
stack: z.ZodString;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
type: "error";
|
|
314
|
-
message: string;
|
|
315
313
|
name: string;
|
|
314
|
+
message: string;
|
|
315
|
+
type: "error";
|
|
316
316
|
stack: string;
|
|
317
317
|
}, {
|
|
318
|
-
type: "error";
|
|
319
|
-
message: string;
|
|
320
318
|
name: string;
|
|
319
|
+
message: string;
|
|
320
|
+
type: "error";
|
|
321
321
|
stack: string;
|
|
322
322
|
}>;
|
|
323
323
|
declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
@@ -329,19 +329,19 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
329
329
|
renderId: z.ZodString;
|
|
330
330
|
privacy: z.ZodEnum<["public-read", "project-private"]>;
|
|
331
331
|
}, "strip", z.ZodTypeAny, {
|
|
332
|
+
bucketName: string;
|
|
332
333
|
type: "success";
|
|
333
334
|
privacy: "public-read" | "project-private";
|
|
334
335
|
cloudStorageUri: string;
|
|
335
336
|
size: number;
|
|
336
|
-
bucketName: string;
|
|
337
337
|
renderId: string;
|
|
338
338
|
publicUrl?: string | null | undefined;
|
|
339
339
|
}, {
|
|
340
|
+
bucketName: string;
|
|
340
341
|
type: "success";
|
|
341
342
|
privacy: "public-read" | "project-private";
|
|
342
343
|
cloudStorageUri: string;
|
|
343
344
|
size: number;
|
|
344
|
-
bucketName: string;
|
|
345
345
|
renderId: string;
|
|
346
346
|
publicUrl?: string | null | undefined;
|
|
347
347
|
}>;
|
|
@@ -354,19 +354,19 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
354
354
|
renderId: z.ZodString;
|
|
355
355
|
privacy: z.ZodEnum<["public-read", "project-private"]>;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
bucketName: string;
|
|
357
358
|
type: "success";
|
|
358
359
|
privacy: "public-read" | "project-private";
|
|
359
360
|
cloudStorageUri: string;
|
|
360
361
|
size: number;
|
|
361
|
-
bucketName: string;
|
|
362
362
|
renderId: string;
|
|
363
363
|
publicUrl?: string | null | undefined;
|
|
364
364
|
}, {
|
|
365
|
+
bucketName: string;
|
|
365
366
|
type: "success";
|
|
366
367
|
privacy: "public-read" | "project-private";
|
|
367
368
|
cloudStorageUri: string;
|
|
368
369
|
size: number;
|
|
369
|
-
bucketName: string;
|
|
370
370
|
renderId: string;
|
|
371
371
|
publicUrl?: string | null | undefined;
|
|
372
372
|
}>;
|
|
@@ -378,15 +378,15 @@ declare const cloudRunCrashResponse: z.ZodObject<{
|
|
|
378
378
|
requestCrashTime: z.ZodString;
|
|
379
379
|
requestElapsedTimeInSeconds: z.ZodNumber;
|
|
380
380
|
}, "strip", z.ZodTypeAny, {
|
|
381
|
-
type: "crash";
|
|
382
381
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
382
|
+
type: "crash";
|
|
383
383
|
cloudRunEndpoint: string;
|
|
384
384
|
requestStartTime: string;
|
|
385
385
|
requestCrashTime: string;
|
|
386
386
|
requestElapsedTimeInSeconds: number;
|
|
387
387
|
}, {
|
|
388
|
-
type: "crash";
|
|
389
388
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
389
|
+
type: "crash";
|
|
390
390
|
cloudRunEndpoint: string;
|
|
391
391
|
requestStartTime: string;
|
|
392
392
|
requestCrashTime: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,41 +16,26 @@ import type { GcpRegion } from './pricing/gcp-regions';
|
|
|
16
16
|
/**
|
|
17
17
|
* @deprecated Import this from `@remotion/cloudrun/client` instead
|
|
18
18
|
*/
|
|
19
|
-
declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, }: RenderMediaOnCloudrunInput) => Promise<
|
|
20
|
-
type: "success";
|
|
21
|
-
privacy: "public-read" | "project-private";
|
|
22
|
-
cloudStorageUri: string;
|
|
23
|
-
size: number;
|
|
24
|
-
bucketName: string;
|
|
25
|
-
renderId: string;
|
|
26
|
-
publicUrl?: string | null | undefined;
|
|
27
|
-
} | {
|
|
28
|
-
type: "crash";
|
|
29
|
-
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
30
|
-
cloudRunEndpoint: string;
|
|
31
|
-
requestStartTime: string;
|
|
32
|
-
requestCrashTime: string;
|
|
33
|
-
requestElapsedTimeInSeconds: number;
|
|
34
|
-
}>;
|
|
19
|
+
declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, }: RenderMediaOnCloudrunInput) => Promise<RenderMediaOnCloudrunOutput | import("./functions/helpers/payloads").CloudRunCrashResponse>;
|
|
35
20
|
/**
|
|
36
21
|
* @deprecated Import this from `@remotion/cloudrun/client` instead
|
|
37
22
|
*/
|
|
38
23
|
declare const renderStillOnCloudrun: (options: import("./api/render-still-on-cloudrun").RenderStillOnCloudrunInput) => Promise<{
|
|
24
|
+
name: string;
|
|
25
|
+
message: string;
|
|
26
|
+
type: "error";
|
|
27
|
+
stack: string;
|
|
28
|
+
} | {
|
|
29
|
+
bucketName: string;
|
|
39
30
|
type: "success";
|
|
40
31
|
privacy: "public-read" | "project-private";
|
|
41
32
|
cloudStorageUri: string;
|
|
42
33
|
size: number;
|
|
43
|
-
bucketName: string;
|
|
44
34
|
renderId: string;
|
|
45
35
|
publicUrl?: string | null | undefined;
|
|
46
36
|
} | {
|
|
47
|
-
type: "error";
|
|
48
|
-
message: string;
|
|
49
|
-
name: string;
|
|
50
|
-
stack: string;
|
|
51
|
-
} | {
|
|
52
|
-
type: "crash";
|
|
53
37
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
38
|
+
type: "crash";
|
|
54
39
|
cloudRunEndpoint: string;
|
|
55
40
|
requestStartTime: string;
|
|
56
41
|
requestCrashTime: string;
|
|
@@ -59,6 +44,6 @@ declare const renderStillOnCloudrun: (options: import("./api/render-still-on-clo
|
|
|
59
44
|
/**
|
|
60
45
|
* @deprecated Import this from `@remotion/lambda/client` instead
|
|
61
46
|
*/
|
|
62
|
-
declare const getSites: (region:
|
|
63
|
-
export { CloudrunInternals,
|
|
64
|
-
export type {
|
|
47
|
+
declare const getSites: (region: GcpRegion | "all regions") => Promise<import("./api/get-sites").GetSitesOutput>;
|
|
48
|
+
export { CloudrunInternals, deleteService, deleteSite, deployService, deploySite, getOrCreateBucket, getRegions, getServiceInfo, getServices, getSites, renderMediaOnCloudrun, renderStillOnCloudrun, speculateServiceName, testPermissions, };
|
|
49
|
+
export type { DeployServiceInput, DeployServiceOutput, GcpRegion, RenderMediaOnCloudrunInput, RenderMediaOnCloudrunOutput, };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testPermissions = exports.speculateServiceName = exports.
|
|
3
|
+
exports.testPermissions = exports.speculateServiceName = exports.renderStillOnCloudrun = exports.renderMediaOnCloudrun = exports.getSites = exports.getServices = exports.getServiceInfo = exports.getRegions = exports.getOrCreateBucket = exports.deploySite = exports.deployService = exports.deleteSite = exports.deleteService = exports.CloudrunInternals = void 0;
|
|
4
4
|
const delete_service_1 = require("./api/delete-service");
|
|
5
5
|
Object.defineProperty(exports, "deleteService", { enumerable: true, get: function () { return delete_service_1.deleteService; } });
|
|
6
6
|
const delete_site_1 = require("./api/delete-site");
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const CloudrunInternals: {
|
|
2
|
-
executeCommand: (args: string[], remotionRoot: string, logLevel: "
|
|
2
|
+
executeCommand: (args: string[], remotionRoot: string, logLevel: import("@remotion/renderer").LogLevel) => Promise<void>;
|
|
3
3
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.base64ToHex =
|
|
3
|
+
exports.base64ToHex = base64ToHex;
|
|
4
4
|
function base64ToHex(str) {
|
|
5
5
|
// Decode the base64 string to a buffer containing the binary data
|
|
6
6
|
const raw = Buffer.from(str, 'base64');
|
|
@@ -11,4 +11,3 @@ function base64ToHex(str) {
|
|
|
11
11
|
}
|
|
12
12
|
return hex;
|
|
13
13
|
}
|
|
14
|
-
exports.base64ToHex = base64ToHex;
|
package/dist/shared/read-dir.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.readDirectory =
|
|
26
|
+
exports.readDirectory = readDirectory;
|
|
27
27
|
const fs = __importStar(require("fs"));
|
|
28
28
|
const path = __importStar(require("path"));
|
|
29
29
|
const get_etag_1 = require("./get-etag");
|
|
@@ -56,4 +56,3 @@ async function readDirectory({ dir, etags, originalDir, }) {
|
|
|
56
56
|
// Return the list of files with their etags and file names
|
|
57
57
|
return etags;
|
|
58
58
|
}
|
|
59
|
-
exports.readDirectory = readDirectory;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateGcpRegion =
|
|
3
|
+
exports.validateGcpRegion = validateGcpRegion;
|
|
4
4
|
const gcp_regions_1 = require("../pricing/gcp-regions");
|
|
5
5
|
function validateGcpRegion(region) {
|
|
6
6
|
if (!gcp_regions_1.GCP_REGIONS.includes(region)) {
|
|
7
7
|
throw new TypeError(`${region} is not a valid GCP region. Must be one of: ${gcp_regions_1.GCP_REGIONS.join(', ')}`);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
exports.validateGcpRegion = validateGcpRegion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validatePrivacy =
|
|
3
|
+
exports.validatePrivacy = validatePrivacy;
|
|
4
4
|
function validatePrivacy(privacy) {
|
|
5
5
|
if (typeof privacy !== 'string') {
|
|
6
6
|
throw new TypeError('Privacy must be a string');
|
|
@@ -9,4 +9,3 @@ function validatePrivacy(privacy) {
|
|
|
9
9
|
throw new TypeError('Privacy must be either "private" or "public"');
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
exports.validatePrivacy = validatePrivacy;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { GcpRegion } from '../pricing/gcp-regions';
|
|
2
|
+
export declare const validateRegion: (region: unknown) => GcpRegion;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateMaxRetries =
|
|
3
|
+
exports.validateMaxRetries = validateMaxRetries;
|
|
4
4
|
function validateMaxRetries(maxRetries) {
|
|
5
5
|
if (typeof maxRetries !== 'number') {
|
|
6
6
|
throw new TypeError('maxRetries must be a number, but is ' + JSON.stringify(maxRetries));
|
|
@@ -18,4 +18,3 @@ function validateMaxRetries(maxRetries) {
|
|
|
18
18
|
throw new TypeError(`maxRetries should be an integer, but is ${maxRetries}.`);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
exports.validateMaxRetries = validateMaxRetries;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cloudrun",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.214",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"@google-cloud/logging": "^11.1.0",
|
|
17
17
|
"google-auth-library": "^8.7.0",
|
|
18
18
|
"zod": "3.22.3",
|
|
19
|
-
"@remotion/bundler": "4.0.
|
|
20
|
-
"remotion": "4.0.
|
|
21
|
-
"@remotion/renderer": "4.0.
|
|
22
|
-
"
|
|
19
|
+
"@remotion/bundler": "4.0.214",
|
|
20
|
+
"@remotion/cli": "4.0.214",
|
|
21
|
+
"@remotion/renderer": "4.0.214",
|
|
22
|
+
"remotion": "4.0.214"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/minimist": "1.2.2",
|
|
26
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
26
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.214"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
"./package.json": "./package.json",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://www.remotion.dev/docs/cloudrun",
|
|
50
50
|
"scripts": {
|
|
51
|
-
"
|
|
51
|
+
"make": "bun build.ts",
|
|
52
52
|
"buildContainer": "bun src/admin/bundle-renderLogic.ts",
|
|
53
53
|
"tarInstaller": "bun src/admin/bundle-installer.ts",
|
|
54
54
|
"lint": "eslint src --ext ts,tsx",
|
package/.turbo/turbo-build.log
DELETED
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @remotion/cloudrun@4.0.211 lint /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
|
-
> eslint src --ext ts,tsx
|
|
4
|
-
|
|
5
|
-
[0m[0m
|
|
6
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/check-if-service-exists.ts[24m[0m
|
|
7
|
-
[0m [2m59:14[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
8
|
-
[0m[0m
|
|
9
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/get-sites.ts[24m[0m
|
|
10
|
-
[0m [2m60:24[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
11
|
-
[0m [2m64:40[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
12
|
-
[0m[0m
|
|
13
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-media-on-cloudrun.ts[24m[0m
|
|
14
|
-
[0m [2m205:3[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Add any sort of type safety' [2mno-warning-comments[22m[0m
|
|
15
|
-
[0m [2m214:17[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
16
|
-
[0m[0m
|
|
17
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/api/render-still-on-cloudrun.ts[24m[0m
|
|
18
|
-
[0m [2m160:17[22m [33mwarning[39m Unexpected any. Specify a different type [2m@typescript-eslint/no-explicit-any[22m[0m
|
|
19
|
-
[0m[0m
|
|
20
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/helpers/renderArgsCheck.ts[24m[0m
|
|
21
|
-
[0m [2m79:4[22m [33mwarning[39m Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' [2mno-warning-comments[22m[0m
|
|
22
|
-
[0m[0m
|
|
23
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/index.ts[24m[0m
|
|
24
|
-
[0m [2m180:2[22m [33mwarning[39m Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' [2mno-warning-comments[22m[0m
|
|
25
|
-
[0m[0m
|
|
26
|
-
[0m[4m/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/still.ts[24m[0m
|
|
27
|
-
[0m [2m162:2[22m [33mwarning[39m Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' [2mno-warning-comments[22m[0m
|
|
28
|
-
[0m[0m
|
|
29
|
-
[0m[33m[1m✖ 9 problems (0 errors, 9 warnings)[22m[39m[0m
|
|
30
|
-
[0m[33m[1m[22m[39m[0m
|