Comparing version 2.0.1 to 2.0.2
11
index.js
@@ -274,10 +274,11 @@ var fs = require("fs"); | ||
}; | ||
var FILE_DESCRIPTOR_SIZE = 12 | ||
var FILE_DESCRIPTOR_SIZE = 16 | ||
Entry.prototype.getFileDescriptor = function() { | ||
var buffer = new Buffer(FILE_DESCRIPTOR_SIZE); | ||
buffer.writeUInt32LE(this.crc32, 0); // crc-32 4 bytes | ||
buffer.writeUInt32LE(this.compressedSize, 4); // compressed size 4 bytes | ||
buffer.writeUInt32LE(this.uncompressedSize, 8); // uncompressed size 4 bytes | ||
buffer.writeUInt32LE(0x08074b50, 0); // optional signature (required according to Archive Utility) | ||
buffer.writeUInt32LE(this.crc32, 4); // crc-32 4 bytes | ||
buffer.writeUInt32LE(this.compressedSize, 8); // compressed size 4 bytes | ||
buffer.writeUInt32LE(this.uncompressedSize, 12); // uncompressed size 4 bytes | ||
return buffer; | ||
} | ||
}; | ||
var CENTRAL_DIRECTORY_RECORD_FIXED_SIZE = 46; | ||
@@ -284,0 +285,0 @@ Entry.prototype.getCentralDirectoryRecord = function() { |
{ | ||
"name": "yazl", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "yet another zip library for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -197,2 +197,4 @@ # yazl | ||
none of this paragraph will matter anyway. | ||
Even so, Mac's Archive Utility requires File Descriptors to include the optional signature, | ||
so yazl includes the optional file descriptor signature. | ||
@@ -199,0 +201,0 @@ All other bits are unset. |
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
26349
331
222