Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yazl

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yazl - npm Package Compare versions

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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc