@jsenv/terminal-recorder 1.5.1 → 1.5.5

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.
@@ -463,7 +463,8 @@ function requireHe () {
463
463
  var freeExports = exports;
464
464
 
465
465
  // Detect free variable `module`.
466
- var freeModule = module.exports == freeExports && module;
466
+ var freeModule = module &&
467
+ module.exports == freeExports && module;
467
468
 
468
469
  // Detect free variable `globalThis`, from Node.js or Browserified code,
469
470
  // and use it as `root`.
@@ -1,4 +1,4 @@
1
- import { stripAnsi, ansiRegex, stringWidth, __jsenv_default_import__ } from "/js/vendors.js";
1
+ import { stripAnsi, ansiRegex, stringWidth, __jsenv_default_import__ } from "/client/jsenv_terminal_recorder_node_modules.js";
2
2
 
3
3
  // inspired by https://github.com/F1LT3R/parse-ansi/blob/master/index.js
4
4
 
@@ -106,7 +106,6 @@ const parseAnsi = (ansi) => {
106
106
  italic: false,
107
107
  underline: false,
108
108
  inverse: false,
109
- hidden: false,
110
109
  strikethrough: false,
111
110
  };
112
111
  const decoratorEffects = {
@@ -601,10 +600,8 @@ const renderTerminalSvg = (
601
600
  size: fontSize,
602
601
  width: 8.4013671875,
603
602
  height: 14,
604
- face: fontFace,
605
603
  family: fontFamily,
606
604
  lineHeight,
607
- emHeightAscent: 10.5546875,
608
605
  emHeightDescent: 3.4453125,
609
606
  };
610
607
 
@@ -1,4 +1,4 @@
1
- import "/js/vendors.js";
1
+ import "/jsenv_terminal_recorder_node_modules.js";
2
2
 
3
3
  const createLzwEncoder = ({ width, height, pixels, colorDepth }) => {
4
4
  var EOF = -1;
@@ -1501,16 +1501,14 @@ const drawRectangle = (
1501
1501
  { x, y, width, height, radius, fill, stroke, strokeWidth },
1502
1502
  ) => {
1503
1503
  context.beginPath();
1504
- if (radius) {
1504
+ {
1505
1505
  context.roundRect(x, y, width, height, [radius]);
1506
- } else {
1507
- context.rect(x, y, width, height);
1508
1506
  }
1509
- if (fill) {
1507
+ {
1510
1508
  context.fillStyle = fill;
1511
1509
  context.fill();
1512
1510
  }
1513
- if (stroke) {
1511
+ {
1514
1512
  context.strokeWidth = strokeWidth;
1515
1513
  context.strokeStyle = stroke;
1516
1514
  context.stroke();