Comparing version 2.0.0 to 2.0.1
@@ -323,3 +323,8 @@ var fs = require("fs"); | ||
} else { | ||
return cp437_to_utf8.convert(buffer.slice(start, end)).toString("utf8"); | ||
var slice = buffer.slice(start, end); | ||
if (slice.length === 0) { | ||
return ""; | ||
} else { | ||
return cp437_to_utf8.convert(slice).toString("utf8"); | ||
} | ||
} | ||
@@ -326,0 +331,0 @@ } |
{ | ||
"name": "yauzl", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "yet another unzip library for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
24459
337
1