Comparing version 1.1.0 to 1.1.1
1.1.1 / 2018-01-08 | ||
================== | ||
* Better handling of ANSI escape codes | ||
1.1.0 / 2017-04-06 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -5,4 +5,8 @@ { | ||
"description": "Nice text table for the CLI", | ||
"keywords": ["table", "text", "cli"], | ||
"version": "1.1.0", | ||
"keywords": [ | ||
"table", | ||
"text", | ||
"cli" | ||
], | ||
"version": "1.1.1", | ||
"repository": { | ||
@@ -23,3 +27,6 @@ "type": "git", | ||
"wcwidth": ">=1.0.1" | ||
}, | ||
"dependencies": { | ||
"ansi-regex": "^3.0.0" | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
var ansiRegex = require('ansi-regex') | ||
var wcwidth | ||
@@ -52,3 +53,3 @@ | ||
function length(str) { | ||
var s = str.replace(/\u001b\[\d+m/g, '') | ||
var s = str.replace(ansiRegex(), '') | ||
return wcwidth == null ? s.length : wcwidth(s) | ||
@@ -55,0 +56,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17428
375
0
2
4
+ Addedansi-regex@^3.0.0
+ Addedansi-regex@3.0.1(transitive)