Socket
Socket
Sign inDemoInstall

compress-commons

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compress-commons - npm Package Compare versions

Comparing version 5.0.1 to 5.0.3

2

CHANGELOG.md
## Changelog
**5.0.2** — <small>_February 26, 2024_</small> — [Diff](https://github.com/archiverjs/node-compress-commons/compare/5.0.1...5.0.2)
**5.0.1** — <small>_September 3, 2023_</small> — [Diff](https://github.com/archiverjs/node-compress-commons/compare/5.0.0...5.0.1)

@@ -4,0 +6,0 @@

13

lib/archivers/zip/zip-archive-output-stream.js

@@ -266,3 +266,3 @@ /**

var method = ae.getMethod();
var offsets = ae._offsets;
var fileOffset = ae._offsets.file;

@@ -272,5 +272,6 @@ var size = ae.getSize();

if (ae.isZip64() || offsets.file > constants.ZIP64_MAGIC) {
if (ae.isZip64() || fileOffset > constants.ZIP64_MAGIC) {
size = constants.ZIP64_MAGIC;
compressedSize = constants.ZIP64_MAGIC;
fileOffset = constants.ZIP64_MAGIC;

@@ -284,3 +285,3 @@ ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);

zipUtil.getEightBytes(ae.getCompressedSize()),
zipUtil.getEightBytes(offsets.file)
zipUtil.getEightBytes(ae._offsets.file)
], 28);

@@ -342,7 +343,3 @@

// relative offset of LFH
if (offsets.file > constants.ZIP64_MAGIC) {
this.write(zipUtil.getLongBytes(constants.ZIP64_MAGIC));
} else {
this.write(zipUtil.getLongBytes(offsets.file));
}
this.write(zipUtil.getLongBytes(fileOffset));

@@ -349,0 +346,0 @@ // name

{
"name": "compress-commons",
"version": "5.0.1",
"version": "5.0.3",
"description": "a library that defines a common interface for working with archive formats within node",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/archiverjs/node-compress-commons",

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