@jsenv/terminal-recorder 1.3.1 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/terminal-recorder",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Record terminal output as .svg, .gif, .webm, .mp4",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,12 +31,12 @@
31
31
  "prepublishOnly": "npm run build"
32
32
  },
33
33
  "dependencies": {
34
- "@jsenv/humanize": "1.2.4",
35
- "@jsenv/server": "15.2.13",
36
- "@playwright/browser-chromium": "1.45.2",
34
+ "@jsenv/humanize": "1.2.5",
35
+ "@jsenv/server": "15.2.14",
36
+ "@playwright/browser-chromium": "1.45.3",
37
37
  "ansi-regex": "6.0.1",
38
38
  "he": "1.2.0",
39
- "playwright": "1.45.2",
39
+ "playwright": "1.45.3",
40
40
  "string-width": "5.1.2",
41
41
  "strip-ansi": "7.1.0",
42
42
  "webm-to-mp4": "1.0.0"
@@ -2,8 +2,8 @@
2
2
  // https://github.com/jnordberg/gif.js
3
3
  // https://github.com/jnordberg/gif.js/blob/master/src/GIFEncoder.js
4
4
 
5
- import { createNeuQuant } from "./neuquant.js";
6
5
  import { createLzwEncoder } from "./lzw_encoder.js";
6
+ import { createNeuQuant } from "./neuquant.js";
7
7
 
8
8
  export const createGifEncoder = ({
9
9
  width,
@@ -12,9 +12,9 @@ https://webglfundamentals.org/webgl/lessons/webgl-tips.html
12
12
  https://github.com/xtermjs/xterm.js/blob/master/typings/xterm.d.ts
13
13
  */
14
14
 
15
+ import "@xterm/addon-serialize?as_js_module";
15
16
  import "xterm";
16
17
  import "xterm-addon-webgl";
17
- import "@xterm/addon-serialize?as_js_module";
18
18
  import { createGifEncoder } from "./gif_encoder.js";
19
19
 
20
20
  const { Terminal } = window;
@@ -1,5 +1,5 @@
1
+ import { ANSI, UNICODE } from "@jsenv/humanize";
1
2
  import { spawn } from "node:child_process";
2
- import { UNICODE, ANSI } from "@jsenv/humanize";
3
3
 
4
4
  import { startTerminalRecording } from "./terminal_recording.js";
5
5
 
package/src/main.js CHANGED
@@ -1,5 +1,7 @@
1
- export { startTerminalRecording } from "./terminal_recording.js";
1
+ // tslint:disable:ordered-imports
2
+
2
3
  export { recordCommandToSvg } from "./command_recording.js";
4
+ export { startTerminalRecording } from "./terminal_recording.js";
3
5
 
4
6
  export { renderTerminalSvg } from "./svg/render_terminal_svg.js";
5
7
  // not yet available
@@ -118,7 +118,7 @@ export const renderTerminalSvg = (
118
118
  "font-size": font.size,
119
119
  "width": computedWidth,
120
120
  "height": computedHeight,
121
- backgroundColor,
121
+ "background-color": backgroundColor,
122
122
  });
123
123
 
124
124
  render_background: {