@remotion/lambda 4.0.0-newpaths.13 → 4.0.0-newpaths.25

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,12 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.sitesCreateSubcommand = exports.SITES_CREATE_SUBCOMMAND = void 0;
7
4
  const cli_1 = require("@remotion/cli");
8
- const fs_1 = require("fs");
9
- const path_1 = __importDefault(require("path"));
10
5
  const remotion_1 = require("remotion");
11
6
  const deploy_site_1 = require("../../../api/deploy-site");
12
7
  const get_or_create_bucket_1 = require("../../../api/get-or-create-bucket");
@@ -30,15 +25,6 @@ const sitesCreateSubcommand = async (args, remotionRoot) => {
30
25
  return;
31
26
  }
32
27
  log_1.Log.verbose('Entry point:', file, 'Reason:', reason);
33
- const absoluteFile = path_1.default.join(process.cwd(), file);
34
- if (!(0, fs_1.existsSync)(absoluteFile)) {
35
- log_1.Log.error(`No file exists at ${absoluteFile}. Make sure the path exists and try again.`);
36
- (0, quit_1.quit)(1);
37
- }
38
- if ((0, fs_1.lstatSync)(absoluteFile).isDirectory()) {
39
- log_1.Log.error(`You passed a path ${absoluteFile} but it is a directory. Pass a file instead.`);
40
- (0, quit_1.quit)(1);
41
- }
42
28
  const desiredSiteName = (_a = args_1.parsedLambdaCli['site-name']) !== null && _a !== void 0 ? _a : undefined;
43
29
  if (desiredSiteName !== undefined) {
44
30
  (0, validate_site_name_1.validateSiteName)(desiredSiteName);
@@ -80,7 +66,7 @@ const sitesCreateSubcommand = async (args, remotionRoot) => {
80
66
  const bundleStart = Date.now();
81
67
  const uploadStart = Date.now();
82
68
  const { serveUrl, siteName, stats } = await (0, deploy_site_1.deploySite)({
83
- entryPoint: absoluteFile,
69
+ entryPoint: file,
84
70
  siteName: desiredSiteName,
85
71
  bucketName,
86
72
  options: {
@@ -3,8 +3,5 @@ export declare const planFrameRanges: ({ framesPerLambda, frameRange, everyNthFr
3
3
  frameRange: [number, number];
4
4
  everyNthFrame: number;
5
5
  }) => {
6
- chunks: [
7
- number,
8
- number
9
- ][];
6
+ chunks: [number, number][];
10
7
  };
@@ -1 +1 @@
1
- export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "sa-east-1" | "eu-south-1" | "af-south-1" | "ap-east-1" | "me-south-1";
1
+ export declare const getCurrentRegionInFunction: () => "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-south-1" | "eu-north-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-south-1" | "ap-east-1" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ca-central-1" | "me-south-1" | "sa-east-1";
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import http from 'http';
2
4
  import https from 'https';
3
5
  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": "4.0.0-newpaths.13+40cc970bd",
3
+ "version": "4.0.0-newpaths.25+652382cb8",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -33,17 +33,17 @@
33
33
  "@aws-sdk/credential-providers": "3.215.0",
34
34
  "@aws-sdk/lib-storage": "3.215.0",
35
35
  "@aws-sdk/s3-request-presigner": "3.215.0",
36
- "@remotion/bundler": "4.0.0-newpaths.13+40cc970bd",
37
- "@remotion/cli": "4.0.0-newpaths.13+40cc970bd",
38
- "@remotion/renderer": "4.0.0-newpaths.13+40cc970bd",
36
+ "@remotion/bundler": "4.0.0-newpaths.25+652382cb8",
37
+ "@remotion/cli": "4.0.0-newpaths.25+652382cb8",
38
+ "@remotion/renderer": "4.0.0-newpaths.25+652382cb8",
39
39
  "aws-policies": "^1.0.1",
40
40
  "mime-types": "2.1.34",
41
- "remotion": "4.0.0-newpaths.13+40cc970bd"
41
+ "remotion": "4.0.0-newpaths.25+652382cb8"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jonny/eslint-config": "3.0.266",
45
- "@remotion/compositor-linux-arm64-musl": "4.0.0-newpaths.13+40cc970bd",
46
- "@remotion/compositor-linux-x64-musl": "4.0.0-newpaths.13+40cc970bd",
45
+ "@remotion/compositor-linux-arm64-musl": "4.0.0-newpaths.25+652382cb8",
46
+ "@remotion/compositor-linux-x64-musl": "4.0.0-newpaths.25+652382cb8",
47
47
  "@types/mime-types": "2.1.1",
48
48
  "@types/minimist": "1.2.2",
49
49
  "@types/node": "^14.14.14",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "40cc970bd20f2c9fde0c1644f1c9f33cd47f3dc7"
62
+ "gitHead": "652382cb821441de375de786a83bf9ca1d35e8ee"
63
63
  }
Binary file
Binary file