@remotion/cli 3.0.0-lambda.424 → 3.0.0-lambda.437
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.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-lint.log +0 -0
- package/dist/code-frame.d.ts +3 -0
- package/dist/code-frame.d.ts.map +1 -0
- package/dist/code-frame.js +68 -0
- package/dist/code-frame.js.map +1 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +0 -2
- package/dist/preview.js.map +1 -1
- package/dist/print-error.d.ts +2 -0
- package/dist/print-error.d.ts.map +1 -0
- package/dist/print-error.js +22 -0
- package/dist/print-error.js.map +1 -0
- package/package.json +7 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[32m@remotion/cli:build: [0mcache hit, replaying output [
|
|
1
|
+
[32m@remotion/cli:build: [0mcache hit, replaying output [2m88209f8ae7950c33[0m
|
|
2
2
|
[32m@remotion/cli:build: [0m
|
|
3
|
-
[32m@remotion/cli:build: [0m> @remotion/cli@2.6.
|
|
3
|
+
[32m@remotion/cli:build: [0m> @remotion/cli@2.6.13 build /Users/jonathanburger/remotion/packages/cli
|
|
4
4
|
[32m@remotion/cli:build: [0m> tsc -d
|
|
5
5
|
[32m@remotion/cli:build: [0m
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-frame.d.ts","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAyB,MAAM,oBAAoB,CAAC;AAkD/E,eAAO,MAAM,sBAAsB,QAAS,mBAAmB,SAmC9D,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.printCodeFrameAndStack = void 0;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const remotion_1 = require("remotion");
|
|
9
|
+
const log_1 = require("./log");
|
|
10
|
+
const makeFileName = (firstFrame) => {
|
|
11
|
+
return [
|
|
12
|
+
firstFrame.originalFileName,
|
|
13
|
+
firstFrame.originalLineNumber,
|
|
14
|
+
firstFrame.originalColumnNumber === 0
|
|
15
|
+
? null
|
|
16
|
+
: firstFrame.originalColumnNumber,
|
|
17
|
+
]
|
|
18
|
+
.filter(remotion_1.Internals.truthy)
|
|
19
|
+
.join(':');
|
|
20
|
+
};
|
|
21
|
+
const printCodeFrame = (frame) => {
|
|
22
|
+
if (!frame.originalScriptCode) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
log_1.Log.info();
|
|
26
|
+
const longestLineNumber = Math.max(...frame.originalScriptCode.map((script) => script.lineNumber)).toString().length;
|
|
27
|
+
log_1.Log.info('at', chalk_1.default.underline(makeFileName(frame)));
|
|
28
|
+
log_1.Log.info(`${frame.originalScriptCode
|
|
29
|
+
.map((c) => {
|
|
30
|
+
const content = `${String(c.lineNumber).padStart(longestLineNumber + 1, ' ')} | ${c.content}`;
|
|
31
|
+
return c.highlight ? content : chalk_1.default.gray(content);
|
|
32
|
+
})
|
|
33
|
+
.join('\n')}`);
|
|
34
|
+
};
|
|
35
|
+
const logLine = (frame) => {
|
|
36
|
+
log_1.Log.info(chalk_1.default.gray(`at ${frame.originalFunctionName} ${chalk_1.default.blueBright(`(${makeFileName(frame)})`)}`));
|
|
37
|
+
};
|
|
38
|
+
const printCodeFrameAndStack = (err) => {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
const firstFrame = err.stackFrames[0];
|
|
41
|
+
log_1.Log.error(chalk_1.default.bgRed(chalk_1.default.white(` ${err.errorType} `.toUpperCase())), err.message);
|
|
42
|
+
printCodeFrame(firstFrame);
|
|
43
|
+
log_1.Log.info();
|
|
44
|
+
for (const frame of err.stackFrames) {
|
|
45
|
+
if (frame === firstFrame) {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
logLine(frame);
|
|
49
|
+
}
|
|
50
|
+
if (err.delayRenderCall) {
|
|
51
|
+
log_1.Log.error();
|
|
52
|
+
log_1.Log.error('The delayRender() call is located at:');
|
|
53
|
+
for (const frame of err.delayRenderCall) {
|
|
54
|
+
const showCodeFrame = (!((_a = frame.originalFileName) === null || _a === void 0 ? void 0 : _a.includes('node_modules')) &&
|
|
55
|
+
!((_b = frame.originalFileName) === null || _b === void 0 ? void 0 : _b.startsWith('webpack/'))) ||
|
|
56
|
+
frame === err.delayRenderCall[0] ||
|
|
57
|
+
((_c = frame.originalScriptCode) === null || _c === void 0 ? void 0 : _c.map((c) => c.content).join('').includes('delayRender'));
|
|
58
|
+
if (showCodeFrame) {
|
|
59
|
+
printCodeFrame(frame);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
logLine(frame);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.printCodeFrameAndStack = printCodeFrameAndStack;
|
|
68
|
+
//# sourceMappingURL=code-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-frame.js","sourceRoot":"","sources":["../src/code-frame.ts"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAC1B,uCAAmC;AACnC,+BAA0B;AAE1B,MAAM,YAAY,GAAG,CAAC,UAAkC,EAAE,EAAE;IAC3D,OAAO;QACN,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,oBAAoB,KAAK,CAAC;YACpC,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,UAAU,CAAC,oBAAoB;KAClC;SACC,MAAM,CAAC,oBAAS,CAAC,MAAM,CAAC;SACxB,IAAI,CAAC,GAAG,CAAC,CAAC;AACb,CAAC,CA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 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../src/preview.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../src/preview.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc,qBAkC1B,CAAC"}
|
package/dist/preview.js
CHANGED
|
@@ -4,8 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.previewCommand = void 0;
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
|
8
|
-
// @ts-ignore
|
|
9
7
|
const bundler_1 = require("@remotion/bundler");
|
|
10
8
|
const better_opn_1 = __importDefault(require("better-opn"));
|
|
11
9
|
const path_1 = __importDefault(require("path"));
|
package/dist/preview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../src/preview.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../src/preview.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAmD;AACnD,4DAAmC;AACnC,gDAAwB;AACxB,uCAAmC;AACnC,uCAAkD;AAClD,uDAAgD;AAChD,mEAA4D;AAC5D,+BAA0B;AAC1B,6DAA+C;AAE/C,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAEtB,MAAM,cAAc,GAAG,KAAK,IAAI,EAAE;IACxC,MAAM,IAAI,GAAG,8BAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE5B,IAAI,CAAC,IAAI,EAAE;QACV,SAAG,CAAC,KAAK,CACR,sEAAsE,CACtE,CAAC;QACF,SAAG,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAClD,SAAG,CAAC,KAAK,CACR,uEAAuE,CACvE,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAChB;IAED,MAAM,EAAC,IAAI,EAAE,WAAW,EAAC,GAAG,8BAAS,CAAC;IACtC,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;IAEhD,MAAM,IAAA,2CAAmB,EAAC,SAAS,CAAC,CAAC;IAErC,MAAM,UAAU,GAAG,IAAA,+BAAa,GAAE,CAAC;IACnC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAuB,GAAE,CAAC;IAErD,MAAM,IAAI,GAAG,MAAM,0BAAgB,CAAC,WAAW,CAC9C,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,EAC1C,QAAQ,EACR;QACC,UAAU;QACV,YAAY;QACZ,IAAI,EAAE,WAAW;QACjB,iBAAiB,EAAE,oBAAS,CAAC,oBAAoB,EAAE;KACnD,CACD,CAAC;IACF,IAAA,oBAAS,EAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IACtC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC,CAAC;AAlCW,QAAA,cAAc,kBAkCzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-error.d.ts","sourceRoot":"","sources":["../src/print-error.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,QAAS,KAAK,SAcpC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printError = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const code_frame_1 = require("./code-frame");
|
|
6
|
+
const log_1 = require("./log");
|
|
7
|
+
const printError = (err) => {
|
|
8
|
+
if (err instanceof renderer_1.ErrorWithStackFrame) {
|
|
9
|
+
if (err.frame !== null) {
|
|
10
|
+
log_1.Log.error(`An error occurred while rendering frame ${err.frame}:`);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
log_1.Log.error('An error occurred:');
|
|
14
|
+
}
|
|
15
|
+
(0, code_frame_1.printCodeFrameAndStack)(err);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
log_1.Log.error('An error occurred:');
|
|
19
|
+
log_1.Log.error(err.stack);
|
|
20
|
+
};
|
|
21
|
+
exports.printError = printError;
|
|
22
|
+
//# sourceMappingURL=print-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-error.js","sourceRoot":"","sources":["../src/print-error.ts"],"names":[],"mappings":";;;AAAA,iDAAuD;AACvD,6CAAoD;AACpD,+BAA0B;AAEnB,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,EAAE;IACxC,IAAI,GAAG,YAAY,8BAAmB,EAAE;QACvC,IAAI,GAAG,CAAC,KAAK,KAAK,IAAI,EAAE;YACvB,SAAG,CAAC,KAAK,CAAC,2CAA2C,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;SACnE;aAAM;YACN,SAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;SAChC;QAED,IAAA,mCAAsB,EAAC,GAAG,CAAC,CAAC;QAC5B,OAAO;KACP;IAED,SAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAChC,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACtB,CAAC,CAAC;AAdW,QAAA,UAAU,cAcrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.437+143873cfa",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/bundler": "3.0.0-lambda.
|
|
27
|
-
"@remotion/media-utils": "3.0.0-lambda.
|
|
28
|
-
"@remotion/player": "3.0.0-lambda.
|
|
29
|
-
"@remotion/renderer": "3.0.0-lambda.
|
|
26
|
+
"@remotion/bundler": "3.0.0-lambda.437+143873cfa",
|
|
27
|
+
"@remotion/media-utils": "3.0.0-lambda.437+143873cfa",
|
|
28
|
+
"@remotion/player": "3.0.0-lambda.437+143873cfa",
|
|
29
|
+
"@remotion/renderer": "3.0.0-lambda.437+143873cfa",
|
|
30
30
|
"better-opn": "2.1.1",
|
|
31
31
|
"chalk": "4.1.2",
|
|
32
32
|
"dotenv": "9.0.2",
|
|
33
33
|
"execa": "5.1.1",
|
|
34
34
|
"minimist": "1.2.6",
|
|
35
|
-
"remotion": "3.0.0-lambda.
|
|
35
|
+
"remotion": "3.0.0-lambda.437+143873cfa",
|
|
36
36
|
"semver": "7.3.5",
|
|
37
37
|
"webpack": "5.60.0"
|
|
38
38
|
},
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "143873cfa990b7851e4264e183797c4fbbbd2314"
|
|
71
71
|
}
|