Comparing version 1.0.0 to 2.0.0
@@ -95,3 +95,3 @@ 'use strict'; | ||
// 'soft' allows long words to expand past the column length. | ||
module.exports = function (str, cols, opts) { | ||
function exec(str, cols, opts) { | ||
var options = opts || {}; | ||
@@ -156,2 +156,9 @@ | ||
return ret; | ||
} | ||
// for each line break, invoke the method separately. | ||
module.exports = function (str, cols, opts) { | ||
return String(str).split('\n').map(function (substr) { | ||
return exec(substr, cols, opts); | ||
}).join('\n'); | ||
}; |
{ | ||
"name": "wrap-ansi", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Wordwrap a string with ANSI escape codes", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7218
134