@remotion/lambda 4.0.202 → 4.0.205

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.
Files changed (68) hide show
  1. package/dist/admin/make-layer-public.js +19 -5
  2. package/dist/api/create-function.d.ts +3 -1
  3. package/dist/api/create-function.js +7 -5
  4. package/dist/api/deploy-function.d.ts +3 -1
  5. package/dist/api/deploy-function.js +6 -4
  6. package/dist/cli/args.d.ts +2 -0
  7. package/dist/cli/commands/functions/deploy.js +3 -1
  8. package/dist/functions/helpers/cleanup-props.d.ts +1 -4
  9. package/dist/functions/helpers/expected-out-name.d.ts +1 -1
  10. package/dist/functions/helpers/get-browser-instance.d.ts +3 -2
  11. package/dist/functions/helpers/get-browser-instance.js +3 -4
  12. package/dist/functions/helpers/get-custom-out-name.d.ts +1 -1
  13. package/dist/functions/helpers/io.d.ts +3 -33
  14. package/dist/functions/helpers/io.js +3 -104
  15. package/dist/functions/helpers/print-cloudwatch-helper.d.ts +1 -1
  16. package/dist/functions/helpers/print-cloudwatch-helper.js +3 -3
  17. package/dist/functions/helpers/write-lambda-error.d.ts +2 -3
  18. package/dist/functions/helpers/write-lambda-error.js +3 -2
  19. package/dist/functions/provider-implementation.d.ts +0 -0
  20. package/dist/functions/provider-implementation.js +1 -0
  21. package/dist/shared/compress-props.d.ts +8 -6
  22. package/dist/shared/compress-props.js +11 -14
  23. package/dist/shared/get-layers.d.ts +11 -0
  24. package/dist/shared/get-layers.js +38 -0
  25. package/dist/shared/hosted-layers.d.ts +5 -4
  26. package/dist/shared/hosted-layers.js +588 -84
  27. package/package.json +11 -11
  28. package/remotionlambda-arm64.zip +0 -0
  29. package/dist/functions/helpers/check-if-render-exists.d.ts +0 -3
  30. package/dist/functions/helpers/check-if-render-exists.js +0 -15
  31. package/dist/functions/helpers/delete-chunks.d.ts +0 -9
  32. package/dist/functions/helpers/delete-chunks.js +0 -25
  33. package/dist/functions/helpers/get-cleanup-progress.d.ts +0 -10
  34. package/dist/functions/helpers/get-cleanup-progress.js +0 -35
  35. package/dist/functions/helpers/get-encoding-metadata.d.ts +0 -7
  36. package/dist/functions/helpers/get-encoding-metadata.js +0 -15
  37. package/dist/functions/helpers/get-encoding-progress-step-size.d.ts +0 -1
  38. package/dist/functions/helpers/get-encoding-progress-step-size.js +0 -7
  39. package/dist/functions/helpers/get-files-to-delete.d.ts +0 -10
  40. package/dist/functions/helpers/get-files-to-delete.js +0 -52
  41. package/dist/functions/helpers/get-final-encoding-status.d.ts +0 -6
  42. package/dist/functions/helpers/get-final-encoding-status.js +0 -18
  43. package/dist/functions/helpers/get-folder-size.d.ts +0 -1
  44. package/dist/functions/helpers/get-folder-size.js +0 -8
  45. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +0 -8
  46. package/dist/functions/helpers/get-lambdas-invoked-stats.js +0 -14
  47. package/dist/functions/helpers/get-post-render-data.d.ts +0 -8
  48. package/dist/functions/helpers/get-post-render-data.js +0 -22
  49. package/dist/functions/helpers/get-render-metadata.d.ts +0 -8
  50. package/dist/functions/helpers/get-render-metadata.js +0 -17
  51. package/dist/functions/helpers/get-rendered-frames-progress.d.ts +0 -8
  52. package/dist/functions/helpers/get-rendered-frames-progress.js +0 -37
  53. package/dist/functions/helpers/get-time-to-finish.d.ts +0 -5
  54. package/dist/functions/helpers/get-time-to-finish.js +0 -13
  55. package/dist/functions/helpers/streaming-payloads.d.ts +0 -19
  56. package/dist/functions/helpers/streaming-payloads.js +0 -25
  57. package/dist/functions/helpers/write-post-render-data.d.ts +0 -9
  58. package/dist/functions/helpers/write-post-render-data.js +0 -18
  59. package/dist/functions/merge.d.ts +0 -9
  60. package/dist/functions/merge.js +0 -61
  61. package/dist/shared/chunk-progress.d.ts +0 -9
  62. package/dist/shared/chunk-progress.js +0 -2034
  63. package/dist/shared/parse-chunk-key.d.ts +0 -5
  64. package/dist/shared/parse-chunk-key.js +0 -15
  65. package/dist/shared/parse-lambda-initialized-key.d.ts +0 -5
  66. package/dist/shared/parse-lambda-initialized-key.js +0 -15
  67. package/dist/shared/serialize-props.d.ts +0 -14
  68. package/dist/shared/serialize-props.js +0 -36
@@ -1,5 +0,0 @@
1
- export declare const parseLambdaChunkKey: (key: string) => {
2
- renderId: string;
3
- chunk: number;
4
- type: string;
5
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseLambdaChunkKey = void 0;
4
- const parseLambdaChunkKey = (key) => {
5
- const match = key.match(/^renders\/(.*)\/chunks\/chunk:([0-9]+):(video|audio)$/);
6
- if (!match) {
7
- throw new Error(`Cannot parse filename ${key} into timing information. Malformed data.`);
8
- }
9
- return {
10
- renderId: match[1],
11
- chunk: Number(match[2]),
12
- type: match[3],
13
- };
14
- };
15
- exports.parseLambdaChunkKey = parseLambdaChunkKey;
@@ -1,5 +0,0 @@
1
- export declare const parseLambdaInitializedKey: (key: string) => {
2
- renderId: string;
3
- chunk: number;
4
- attempt: number;
5
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseLambdaInitializedKey = void 0;
4
- const parseLambdaInitializedKey = (key) => {
5
- const match = key.match(/^renders\/(.*)\/lambda-initialized-chunk:([0-9]+)-attempt:([0-9]+).txt$/);
6
- if (!match) {
7
- throw new Error(`Cannot parse filename ${key} into timing information. Malformed data.`);
8
- }
9
- return {
10
- renderId: match[1],
11
- chunk: Number(match[2]),
12
- attempt: Number(match[3]),
13
- };
14
- };
15
- exports.parseLambdaInitializedKey = parseLambdaInitializedKey;
@@ -1,14 +0,0 @@
1
- type SerializedJSONWithCustomFields = {
2
- serializedString: string;
3
- customDateUsed: boolean;
4
- customFileUsed: boolean;
5
- mapUsed: boolean;
6
- setUsed: boolean;
7
- };
8
- export declare const FILE_TOKEN = "remotion-file:";
9
- export declare const serializeJSONWithDate: ({ data, indent, staticBase, }: {
10
- data: Record<string, unknown>;
11
- indent: number | undefined;
12
- staticBase: string | null;
13
- }) => SerializedJSONWithCustomFields;
14
- export {};
@@ -1,36 +0,0 @@
1
- "use strict";
2
- // Must keep this file in sync with the one in packages/core/src/input-props-serialization.ts!
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serializeJSONWithDate = exports.FILE_TOKEN = void 0;
5
- const DATE_TOKEN = 'remotion-date:';
6
- exports.FILE_TOKEN = 'remotion-file:';
7
- const serializeJSONWithDate = ({ data, indent, staticBase, }) => {
8
- let customDateUsed = false;
9
- let customFileUsed = false;
10
- let mapUsed = false;
11
- let setUsed = false;
12
- const serializedString = JSON.stringify(data, function (key, value) {
13
- const item = this[key];
14
- if (item instanceof Date) {
15
- customDateUsed = true;
16
- return `${DATE_TOKEN}${item.toISOString()}`;
17
- }
18
- if (item instanceof Map) {
19
- mapUsed = true;
20
- return value;
21
- }
22
- if (item instanceof Set) {
23
- setUsed = true;
24
- return value;
25
- }
26
- if (typeof item === 'string' &&
27
- staticBase !== null &&
28
- item.startsWith(staticBase)) {
29
- customFileUsed = true;
30
- return `${exports.FILE_TOKEN}${item.replace(staticBase + '/', '')}`;
31
- }
32
- return value;
33
- }, indent);
34
- return { serializedString, customDateUsed, customFileUsed, mapUsed, setUsed };
35
- };
36
- exports.serializeJSONWithDate = serializeJSONWithDate;