Comparing version 2.0.3 to 2.1.0
13
index.js
@@ -7,3 +7,2 @@ var fs = require("fs"); | ||
var PassThrough = require("stream").PassThrough; | ||
var Iconv = require("iconv").Iconv; | ||
@@ -333,3 +332,4 @@ exports.open = open; | ||
} | ||
var cp437_to_utf8 = new Iconv("cp437", "utf8"); | ||
var cp437 = '\u0000☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ '; | ||
function bufferToString(buffer, start, end, isUtf8) { | ||
@@ -339,8 +339,7 @@ if (isUtf8) { | ||
} else { | ||
var slice = buffer.slice(start, end); | ||
if (slice.length === 0) { | ||
return ""; | ||
} else { | ||
return cp437_to_utf8.convert(slice).toString("utf8"); | ||
var result = ""; | ||
for (var i = start; i < end; i++) { | ||
result += cp437[buffer[i]]; | ||
} | ||
return result; | ||
} | ||
@@ -347,0 +346,0 @@ } |
{ | ||
"name": "yauzl", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "yet another unzip library for node", | ||
@@ -28,5 +28,4 @@ "main": "index.js", | ||
"fd-slicer": "~0.2.1", | ||
"iconv": "~2.1.4", | ||
"pend": "~1.1.3" | ||
} | ||
} |
# yauzl | ||
yet another unzip library for node. | ||
yet another unzip library for node. For zipping, see | ||
[yazl](https://github.com/thejoshwolfe/yazl). | ||
@@ -5,0 +6,0 @@ Design principles: |
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
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
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
25754
2
277
2
- Removediconv@~2.1.4
- Removediconv@2.1.11(transitive)
- Removednan@2.0.9(transitive)