@jsenv/terminal-recorder 1.0.3 → 1.1.0
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 +2 -2
- package/src/svg/parse_ansi.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/terminal-recorder",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Record terminal output as .svg, .gif, .webm, .mp4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"he": "1.2.0",
|
|
39
39
|
"playwright": "1.45.0",
|
|
40
40
|
"strip-ansi": "7.1.0",
|
|
41
|
-
"string-width": "
|
|
41
|
+
"string-width": "5.1.2",
|
|
42
42
|
"webm-to-mp4": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
package/src/svg/parse_ansi.js
CHANGED
|
@@ -220,7 +220,6 @@ export const parseAnsi = (ansi) => {
|
|
|
220
220
|
if (word === "\n") {
|
|
221
221
|
const chunk = bundle("newline", "\n");
|
|
222
222
|
result.chunks.push(chunk);
|
|
223
|
-
|
|
224
223
|
x = 0;
|
|
225
224
|
y += 1;
|
|
226
225
|
nAnsi += 1;
|
|
@@ -231,9 +230,7 @@ export const parseAnsi = (ansi) => {
|
|
|
231
230
|
if (delimiters.includes(word) === false) {
|
|
232
231
|
const chunk = bundle("text", word);
|
|
233
232
|
result.chunks.push(chunk);
|
|
234
|
-
|
|
235
233
|
const width = stringWidth(word);
|
|
236
|
-
|
|
237
234
|
x += width;
|
|
238
235
|
nAnsi += width;
|
|
239
236
|
nPlain += width;
|
|
@@ -254,7 +251,6 @@ export const parseAnsi = (ansi) => {
|
|
|
254
251
|
decorator,
|
|
255
252
|
});
|
|
256
253
|
result.chunks.push(chunk);
|
|
257
|
-
|
|
258
254
|
nAnsi += word.length;
|
|
259
255
|
}
|
|
260
256
|
|