@remotion/lambda 4.0.451 → 4.0.452

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.
@@ -34,6 +34,34 @@ const layerInfo = {
34
34
  const getBucketName = (region) => {
35
35
  return `remotionlambda-binaries-${region}`;
36
36
  };
37
+ const parseRegionFlag = () => {
38
+ var _a;
39
+ const arg = process.argv
40
+ .slice(2)
41
+ .find((a) => a.startsWith('--region=') || a === '--region');
42
+ if (!arg)
43
+ return null;
44
+ if (arg === '--region') {
45
+ const idx = process.argv.indexOf('--region');
46
+ return ((_a = process.argv[idx + 1]) !== null && _a !== void 0 ? _a : null);
47
+ }
48
+ return arg.split('=')[1];
49
+ };
50
+ const parseSkipFlag = () => {
51
+ var _a;
52
+ const arg = process.argv
53
+ .slice(2)
54
+ .find((a) => a.startsWith('--skip=') || a === '--skip');
55
+ if (!arg)
56
+ return [];
57
+ const value = arg === '--skip'
58
+ ? ((_a = process.argv[process.argv.indexOf('--skip') + 1]) !== null && _a !== void 0 ? _a : '')
59
+ : arg.split('=')[1];
60
+ return value
61
+ .split(',')
62
+ .map((s) => s.trim())
63
+ .filter(Boolean);
64
+ };
37
65
  const makeLayerPublic = async () => {
38
66
  const runtimes = ['nodejs24.x'];
39
67
  const layers = [
@@ -43,17 +71,28 @@ const makeLayerPublic = async () => {
43
71
  'emoji-google',
44
72
  'cjk',
45
73
  ];
46
- for (const region of (0, get_regions_1.getRegions)()) {
74
+ const onlyRegion = parseRegionFlag();
75
+ const skipRegions = parseSkipFlag();
76
+ const regions = onlyRegion
77
+ ? [onlyRegion]
78
+ : (0, get_regions_1.getRegions)().filter((r) => !skipRegions.includes(r));
79
+ if (onlyRegion) {
80
+ console.log(`Filtering to region: ${onlyRegion}`);
81
+ }
82
+ if (skipRegions.length > 0) {
83
+ console.log(`Skipping regions: ${skipRegions.join(', ')}`);
84
+ }
85
+ for (const region of regions) {
47
86
  for (const layer of layers) {
48
87
  const layerName = `remotion-binaries-${layer}-arm64`;
49
88
  const { Version, LayerArn } = await lambda_client_1.LambdaClientInternals.getLambdaClient(region, undefined, null).send(new client_lambda_1.PublishLayerVersionCommand({
50
89
  Content: {
51
90
  S3Bucket: getBucketName(region),
52
- S3Key: `remotion-layer-${layer}-v16-arm64.zip`,
91
+ S3Key: `remotion-layer-${layer}-v18-arm64.zip`,
53
92
  },
54
93
  LayerName: layerName,
55
94
  LicenseInfo: layer === 'chromium'
56
- ? 'Chromium 144.0.7559.20, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
95
+ ? 'Chromium 149.0.7790.0, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
57
96
  : layer === 'emoji-apple'
58
97
  ? 'Apple Emojis (https://github.com/samuelngs/apple-emoji-linux). For educational purposes only - Apple is a trademark of Apple Inc., registered in the U.S. and other countries.'
59
98
  : layer === 'emoji-google'