compress-commons
Advanced tools
Comparing version 5.0.1 to 5.0.3
## 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 @@ |
@@ -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", |
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
38654
1069