@remotion/lambda 3.3.6 → 3.3.8

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 (64) hide show
  1. package/dist/admin/generate-etag-list.d.ts +1 -0
  2. package/dist/admin/generate-etag-list.js +14 -0
  3. package/dist/admin/make-layer-public.js +23 -1
  4. package/dist/api/deploy-site.d.ts +5 -0
  5. package/dist/api/deploy-site.js +39 -16
  6. package/dist/api/get-aws-client.d.ts +2 -0
  7. package/dist/api/get-aws-client.js +2 -0
  8. package/dist/api/iam-validation/simulate-rule.js +0 -22
  9. package/dist/api/iam-validation/simulate.js +17 -5
  10. package/dist/api/iam-validation/user-permissions.js +0 -6
  11. package/dist/api/upload-dir.d.ts +4 -3
  12. package/dist/api/upload-dir.js +33 -19
  13. package/dist/cli/commands/render/progress.d.ts +6 -3
  14. package/dist/cli/commands/render/progress.js +49 -39
  15. package/dist/cli/commands/render/render.js +16 -1
  16. package/dist/cli/commands/sites/create.js +12 -2
  17. package/dist/cli/helpers/progress-bar.d.ts +8 -1
  18. package/dist/cli/helpers/progress-bar.js +17 -1
  19. package/dist/cli/index.js +6 -1
  20. package/dist/functions/helpers/concat-videos.d.ts +10 -6
  21. package/dist/functions/helpers/concat-videos.js +5 -21
  22. package/dist/functions/helpers/create-post-render-data.js +0 -12
  23. package/dist/functions/helpers/get-chromium-executable-path.js +2 -1
  24. package/dist/functions/helpers/get-chunk-progress.d.ts +0 -0
  25. package/dist/functions/helpers/get-chunk-progress.js +1 -0
  26. package/dist/functions/helpers/get-current-region.d.ts +1 -1
  27. package/dist/functions/helpers/get-encoding-metadata.d.ts +4 -8
  28. package/dist/functions/helpers/get-encoding-metadata.js +4 -18
  29. package/dist/functions/helpers/get-final-encoding-status.d.ts +2 -4
  30. package/dist/functions/helpers/get-final-encoding-status.js +1 -4
  31. package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts +1 -5
  32. package/dist/functions/helpers/get-lambdas-invoked-stats.js +1 -9
  33. package/dist/functions/helpers/get-overall-progress.d.ts +2 -1
  34. package/dist/functions/helpers/get-overall-progress.js +7 -5
  35. package/dist/functions/helpers/get-progress.js +37 -25
  36. package/dist/functions/helpers/get-rendered-frames-progress.d.ts +8 -0
  37. package/dist/functions/helpers/get-rendered-frames-progress.js +37 -0
  38. package/dist/functions/launch.js +48 -37
  39. package/dist/functions/renderer.js +15 -22
  40. package/dist/functions/still.js +2 -0
  41. package/dist/pricing/aws-regions.d.ts +1 -1
  42. package/dist/pricing/aws-regions.js +11 -0
  43. package/dist/pricing/price-per-1-s.js +413 -39
  44. package/dist/shared/aws-clients.d.ts +3 -0
  45. package/dist/shared/aws-clients.js +9 -1
  46. package/dist/shared/chunk-progress.d.ts +9 -0
  47. package/dist/shared/chunk-progress.js +2034 -0
  48. package/dist/shared/constants.d.ts +4 -5
  49. package/dist/shared/get-account-id.js +4 -6
  50. package/dist/shared/get-chunk-progress.d.ts +0 -0
  51. package/dist/shared/get-chunk-progress.js +1 -0
  52. package/dist/shared/get-etag.d.ts +1 -0
  53. package/dist/shared/get-etag.js +24 -0
  54. package/dist/shared/get-s3-operations.d.ts +10 -0
  55. package/dist/shared/get-s3-operations.js +36 -0
  56. package/dist/shared/hosted-layers.js +368 -60
  57. package/dist/shared/parse-chunk-key.d.ts +4 -0
  58. package/dist/shared/parse-chunk-key.js +14 -0
  59. package/dist/shared/read-dir.d.ts +9 -0
  60. package/dist/shared/read-dir.js +57 -0
  61. package/package.json +7 -6
  62. package/remotionlambda.zip +0 -0
  63. package/dist/shared/get-cloudwatch-stream-url.d.ts +0 -8
  64. package/dist/shared/get-cloudwatch-stream-url.js +0 -7
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.readDirectory = void 0;
27
+ const fs = __importStar(require("fs"));
28
+ const path = __importStar(require("path"));
29
+ const get_etag_1 = require("./get-etag");
30
+ // Function to recursively read a directory and return a list of files
31
+ // with their etags and file names
32
+ async function readDirectory({ dir, etags, originalDir, }) {
33
+ const files = fs.readdirSync(dir);
34
+ for (const file of files) {
35
+ if (file.startsWith('.DS_Store'))
36
+ continue;
37
+ const filePath = path.join(dir, file);
38
+ if (fs.lstatSync(filePath).isDirectory()) {
39
+ etags = {
40
+ ...etags,
41
+ ...(await readDirectory({ dir: filePath, etags, originalDir })),
42
+ };
43
+ continue;
44
+ }
45
+ // eslint-disable-next-line no-lonely-if
46
+ if (fs.lstatSync(filePath).isSymbolicLink()) {
47
+ const realPath = fs.realpathSync(filePath);
48
+ etags[path.relative(originalDir, filePath)] = await (0, get_etag_1.getEtagOfFile)(realPath);
49
+ }
50
+ else {
51
+ etags[path.relative(originalDir, filePath)] = await (0, get_etag_1.getEtagOfFile)(filePath);
52
+ }
53
+ }
54
+ // Return the list of files with their etags and file names
55
+ return etags;
56
+ }
57
+ exports.readDirectory = readDirectory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -29,14 +29,15 @@
29
29
  "@aws-sdk/client-lambda": "3.215.0",
30
30
  "@aws-sdk/client-s3": "3.215.0",
31
31
  "@aws-sdk/client-service-quotas": "3.215.0",
32
+ "@aws-sdk/client-sts": "3.215.0",
32
33
  "@aws-sdk/lib-storage": "3.215.0",
33
34
  "@aws-sdk/s3-request-presigner": "3.215.0",
34
- "@remotion/bundler": "3.3.6",
35
- "@remotion/cli": "3.3.6",
36
- "@remotion/renderer": "3.3.6",
35
+ "@remotion/bundler": "3.3.8",
36
+ "@remotion/cli": "3.3.8",
37
+ "@remotion/renderer": "3.3.8",
37
38
  "aws-policies": "^1.0.1",
38
39
  "mime-types": "2.1.34",
39
- "remotion": "3.3.6"
40
+ "remotion": "3.3.8"
40
41
  },
41
42
  "peerDependencies": {
42
43
  "react": ">=16.8.0",
@@ -59,5 +60,5 @@
59
60
  "publishConfig": {
60
61
  "access": "public"
61
62
  },
62
- "gitHead": "40198e5226bfa91a4df72159aec44d56e17fe8a1"
63
+ "gitHead": "4d4c78cf83b5fd085f24d5fd19f4507815e200a7"
63
64
  }
Binary file
@@ -1,8 +0,0 @@
1
- import type { AwsRegion } from '../client';
2
- import type { LambdaRoutines } from './constants';
3
- export declare const getCloudwatchStreamUrl: ({ region, functionName, method, renderId, }: {
4
- region: AwsRegion;
5
- functionName: string;
6
- method: LambdaRoutines;
7
- renderId: string;
8
- }) => string;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCloudwatchStreamUrl = void 0;
4
- const getCloudwatchStreamUrl = ({ region, functionName, method, renderId, }) => {
5
- return `https://${region}.console.aws.amazon.com/cloudwatch/home?region=${region}#logsV2:log-groups/log-group/$252Faws$252Flambda$252F${functionName}/log-events$3FfilterPattern$3D$2522method$253D${method}$252CrenderId$253D${renderId}$2522`;
6
- };
7
- exports.getCloudwatchStreamUrl = getCloudwatchStreamUrl;