@remotion/lambda 3.3.58 → 3.3.59

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deploySite = void 0;
4
+ const fs_1 = require("fs");
4
5
  const io_1 = require("../functions/helpers/io");
5
6
  const bundle_site_1 = require("../shared/bundle-site");
6
7
  const constants_1 = require("../shared/constants");
@@ -82,6 +83,9 @@ const deploySite = async ({ bucketName, entryPoint, siteName, options, region, }
82
83
  });
83
84
  })),
84
85
  ]);
86
+ if (!process.env.VITEST) {
87
+ (0, fs_1.rmdirSync)(bundled, { recursive: true });
88
+ }
85
89
  return {
86
90
  serveUrl: (0, make_s3_url_1.makeS3ServeUrl)({ bucketName, subFolder, region }),
87
91
  siteName: siteId,
@@ -3,5 +3,8 @@ export declare const planFrameRanges: ({ framesPerLambda, frameRange, everyNthFr
3
3
  frameRange: [number, number];
4
4
  everyNthFrame: number;
5
5
  }) => {
6
- chunks: [number, number][];
6
+ chunks: [
7
+ number,
8
+ number
9
+ ][];
7
10
  };
@@ -50,6 +50,7 @@ const compositionsHandler = async (lambdaParams, options) => {
50
50
  port: null,
51
51
  downloadMap,
52
52
  });
53
+ renderer_1.RenderInternals.cleanDownloadMap(downloadMap);
53
54
  return Promise.resolve({
54
55
  compositions,
55
56
  });
@@ -471,6 +471,7 @@ const innerLaunchHandler = async (params, options) => {
471
471
  region: (0, get_current_region_1.getCurrentRegionInFunction)(),
472
472
  customCredentials: null,
473
473
  });
474
+ renderer_1.RenderInternals.cleanDownloadMap(downloadMap);
474
475
  await Promise.all([cleanupChunksProm, fs_1.default.promises.rm(outfile)]);
475
476
  clearTimeout(webhookDueToTimeout);
476
477
  if (params.webhook && !webhookInvoked) {
@@ -143,7 +143,9 @@ const renderHandler = async (params, options, logs) => {
143
143
  port: null,
144
144
  everyNthFrame: params.everyNthFrame,
145
145
  numberOfGifLoops: null,
146
- downloadMap,
146
+ internal: {
147
+ downloadMap,
148
+ },
147
149
  muted: params.muted,
148
150
  enforceAudioTrack: true,
149
151
  audioBitrate: params.audioBitrate,
@@ -201,6 +203,7 @@ const renderHandler = async (params, options, logs) => {
201
203
  downloadBehavior: null,
202
204
  customCredentials: null,
203
205
  }),
206
+ renderer_1.RenderInternals.cleanDownloadMap(downloadMap),
204
207
  ]);
205
208
  };
206
209
  const rendererHandler = async (params, options) => {
@@ -166,6 +166,7 @@ const innerStillHandler = async (lambdaParams, renderId, options) => {
166
166
  // overestimate the price, but will only have a miniscule effect (~0.2%)
167
167
  diskSizeInMb: constants_1.MAX_EPHEMERAL_STORAGE_IN_MB,
168
168
  });
169
+ renderer_1.RenderInternals.cleanDownloadMap(downloadMap);
169
170
  return {
170
171
  output: (0, get_output_url_from_metadata_1.getOutputUrlFromMetadata)(renderMetadata, bucketName, customCredentials),
171
172
  size,
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import http from 'http';
4
2
  import https from 'https';
5
3
  import type { EnhancedErrorInfo } from '../functions/helpers/write-lambda-error';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.3.58",
3
+ "version": "3.3.59",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -33,18 +33,18 @@
33
33
  "@aws-sdk/credential-providers": "3.272.0",
34
34
  "@aws-sdk/lib-storage": "3.272.0",
35
35
  "@aws-sdk/s3-request-presigner": "3.272.0",
36
- "@remotion/bundler": "3.3.58",
37
- "@remotion/cli": "3.3.58",
38
- "@remotion/renderer": "3.3.58",
36
+ "@remotion/bundler": "3.3.59",
37
+ "@remotion/cli": "3.3.59",
38
+ "@remotion/renderer": "3.3.59",
39
39
  "aws-policies": "^1.0.1",
40
40
  "mime-types": "2.1.34",
41
- "remotion": "3.3.58"
41
+ "remotion": "3.3.59"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jonny/eslint-config": "3.0.266",
45
- "@remotion/bundler": "3.3.44",
46
- "@remotion/compositor-linux-arm64-musl": "3.3.58",
47
- "@remotion/compositor-linux-x64-musl": "3.3.58",
45
+ "@remotion/bundler": "3.3.58",
46
+ "@remotion/compositor-linux-arm64-musl": "3.3.59",
47
+ "@remotion/compositor-linux-x64-musl": "3.3.59",
48
48
  "@types/mime-types": "2.1.1",
49
49
  "@types/minimist": "1.2.2",
50
50
  "@types/node": "^14.14.14",
@@ -58,7 +58,7 @@
58
58
  "zip-lib": "^0.7.2"
59
59
  },
60
60
  "peerDependencies": {
61
- "@remotion/bundler": "3.3.44"
61
+ "@remotion/bundler": "3.3.58"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -87,5 +87,5 @@
87
87
  ]
88
88
  }
89
89
  },
90
- "gitHead": "13dc20d2ef36d2db62b64318687cce80ee0cc31b"
90
+ "gitHead": "4ee88b056704d7224838a8fbc32d2d3522c5afbe"
91
91
  }
Binary file
Binary file