@remotion/cli 4.0.471 → 4.0.473

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 (2) hide show
  1. package/dist/code-frame.js +8 -31
  2. package/package.json +14 -14
@@ -1,47 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.printCodeFrameAndStack = void 0;
4
+ const renderer_1 = require("@remotion/renderer");
4
5
  const chalk_1 = require("./chalk");
5
6
  const log_1 = require("./log");
6
- const truthy_1 = require("./truthy");
7
- const makeFileName = (firstFrame) => {
8
- return [
9
- firstFrame.originalFileName,
10
- firstFrame.originalLineNumber,
11
- firstFrame.originalColumnNumber === 0
12
- ? null
13
- : firstFrame.originalColumnNumber,
14
- ]
15
- .filter(truthy_1.truthy)
16
- .join(':');
17
- };
18
7
  const printCodeFrame = (frame, logLevel) => {
19
- if (!frame.originalScriptCode) {
8
+ const codeFrame = renderer_1.RenderInternals.formatStackFrameCodeFrame(frame);
9
+ if (codeFrame === null) {
20
10
  return;
21
11
  }
22
12
  log_1.Log.info({ indent: false, logLevel });
23
- const longestLineNumber = Math.max(...frame.originalScriptCode.map((script) => script.lineNumber)).toString().length;
24
- log_1.Log.info({ indent: false, logLevel }, 'at', chalk_1.chalk.underline(makeFileName(frame)));
25
- const alignLeftAmount = Math.min(...frame.originalScriptCode.map((c) => c.content.length - c.content.trimStart().length));
26
- log_1.Log.info({ indent: false, logLevel }, `${frame.originalScriptCode
27
- .map((c) => {
28
- const left = String(c.lineNumber).padStart(longestLineNumber, ' ');
29
- const right = c.content.substring(alignLeftAmount);
30
- if (c.highlight) {
31
- return `${left} │ ${right}`;
32
- }
33
- return `${chalk_1.chalk.gray(left)} │ ${chalk_1.chalk.gray(right)}`;
34
- })
35
- .join('\n')}`);
13
+ log_1.Log.info({ indent: false, logLevel }, 'at', chalk_1.chalk.underline(renderer_1.RenderInternals.makeStackFrameFileName(frame)));
14
+ log_1.Log.info({ indent: false, logLevel }, codeFrame);
36
15
  };
37
16
  const logLine = (frame, logLevel) => {
38
- const fileName = makeFileName(frame);
39
- if (!fileName) {
17
+ const line = renderer_1.RenderInternals.formatStackFrameLocationLine(frame);
18
+ if (line === null) {
40
19
  return;
41
20
  }
42
- log_1.Log.info({ indent: false, logLevel }, chalk_1.chalk.gray(['at', frame.originalFunctionName, `${chalk_1.chalk.blueBright(`(${fileName})`)}`]
43
- .filter(truthy_1.truthy)
44
- .join(' ')));
21
+ log_1.Log.info({ indent: false, logLevel }, line);
45
22
  };
46
23
  const printCodeFrameAndStack = ({ symbolicated, logLevel, }) => {
47
24
  var _a, _b, _c, _d, _e;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
4
4
  },
5
5
  "name": "@remotion/cli",
6
- "version": "4.0.471",
6
+ "version": "4.0.473",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "bin": {
@@ -36,17 +36,17 @@
36
36
  "author": "Jonny Burger <jonny@remotion.dev>",
37
37
  "license": "SEE LICENSE IN LICENSE.md",
38
38
  "dependencies": {
39
- "@remotion/bundler": "4.0.471",
40
- "@remotion/media-utils": "4.0.471",
41
- "@remotion/player": "4.0.471",
42
- "@remotion/renderer": "4.0.471",
43
- "@remotion/studio-shared": "4.0.471",
44
- "@remotion/studio-server": "4.0.471",
45
- "@remotion/studio": "4.0.471",
39
+ "@remotion/bundler": "4.0.473",
40
+ "@remotion/media-utils": "4.0.473",
41
+ "@remotion/player": "4.0.473",
42
+ "@remotion/renderer": "4.0.473",
43
+ "@remotion/studio-shared": "4.0.473",
44
+ "@remotion/studio-server": "4.0.473",
45
+ "@remotion/studio": "4.0.473",
46
46
  "dotenv": "17.3.1",
47
47
  "minimist": "1.2.6",
48
48
  "prompts": "2.4.2",
49
- "remotion": "4.0.471"
49
+ "remotion": "4.0.473"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=16.8.0",
@@ -57,14 +57,14 @@
57
57
  "@types/prompts": "2.4.9",
58
58
  "@types/prettier": "2.7.2",
59
59
  "@types/node": "20.12.14",
60
- "@remotion/zod-types": "4.0.471",
61
- "@remotion/tailwind-v4": "4.0.471",
62
- "@remotion/enable-scss": "4.0.471",
63
- "@remotion/skia": "4.0.471",
60
+ "@remotion/zod-types": "4.0.473",
61
+ "@remotion/tailwind-v4": "4.0.473",
62
+ "@remotion/enable-scss": "4.0.473",
63
+ "@remotion/skia": "4.0.473",
64
64
  "react": "19.2.3",
65
65
  "react-dom": "19.2.3",
66
66
  "zod": "4.3.6",
67
- "@remotion/eslint-config-internal": "4.0.471",
67
+ "@remotion/eslint-config-internal": "4.0.473",
68
68
  "eslint": "9.19.0",
69
69
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
70
70
  },