log-update
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -6,2 +6,3 @@ import process from 'node:process'; | ||
import sliceAnsi from 'slice-ansi'; | ||
import stripAnsi from 'strip-ansi'; | ||
@@ -31,4 +32,4 @@ const defaultTerminalHeight = 24; | ||
text, | ||
lines.slice(0, toRemove).join('\n').length + 1, | ||
text.length); | ||
stripAnsi(lines.slice(0, toRemove).join('\n')).length + 1, | ||
); | ||
}; | ||
@@ -35,0 +36,0 @@ |
{ | ||
"name": "log-update", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.", | ||
@@ -47,11 +47,13 @@ "license": "MIT", | ||
"slice-ansi": "^5.0.0", | ||
"strip-ansi": "^7.0.1", | ||
"wrap-ansi": "^8.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.11.1", | ||
"ava": "^3.15.0", | ||
"@types/node": "^17.0.25", | ||
"ava": "^4.2.0", | ||
"terminal.js": "^1.0.11", | ||
"tsd": "^0.18.0", | ||
"xo": "^0.45.0" | ||
"tsd": "^0.20.0", | ||
"wcwidth": "^1.0.1", | ||
"xo": "^0.48.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8038
151
5
6
+ Addedstrip-ansi@^7.0.1