Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Nov 16, 2023
1 parent 5890f47 commit e0a277f
Show file tree
Hide file tree
Showing 14 changed files with 145 additions and 68 deletions.
8 changes: 6 additions & 2 deletions dist/zip-fs-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -9224,10 +9224,14 @@
}
directoryDataOffset -= directoryDataLength;
}
if (directoryDataOffset >= reader.size) {
prependedDataLength = reader.size - directoryDataOffset - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
directoryDataOffset = reader.size - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
}
if (expectedLastDiskNumber != lastDiskNumber) {
throw new Error(ERR_SPLIT_ZIP_FILE);
}
if (directoryDataOffset < 0 || directoryDataOffset >= reader.size) {
if (directoryDataOffset < 0) {
throw new Error(ERR_BAD_FORMAT);
}
let offset = 0;
Expand All @@ -9238,7 +9242,7 @@
if (getUint32(directoryView, offset) != CENTRAL_FILE_HEADER_SIGNATURE && directoryDataOffset != expectedDirectoryDataOffset) {
const originalDirectoryDataOffset = directoryDataOffset;
directoryDataOffset = expectedDirectoryDataOffset;
prependedDataLength = directoryDataOffset - originalDirectoryDataOffset;
prependedDataLength += directoryDataOffset - originalDirectoryDataOffset;
directoryArray = await readUint8Array(reader, directoryDataOffset, directoryDataLength, diskNumber);
directoryView = getDataView$1(directoryArray);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/zip-fs-full.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions dist/zip-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3370,10 +3370,14 @@
}
directoryDataOffset -= directoryDataLength;
}
if (directoryDataOffset >= reader.size) {
prependedDataLength = reader.size - directoryDataOffset - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
directoryDataOffset = reader.size - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
}
if (expectedLastDiskNumber != lastDiskNumber) {
throw new Error(ERR_SPLIT_ZIP_FILE);
}
if (directoryDataOffset < 0 || directoryDataOffset >= reader.size) {
if (directoryDataOffset < 0) {
throw new Error(ERR_BAD_FORMAT);
}
let offset = 0;
Expand All @@ -3384,7 +3388,7 @@
if (getUint32(directoryView, offset) != CENTRAL_FILE_HEADER_SIGNATURE && directoryDataOffset != expectedDirectoryDataOffset) {
const originalDirectoryDataOffset = directoryDataOffset;
directoryDataOffset = expectedDirectoryDataOffset;
prependedDataLength = directoryDataOffset - originalDirectoryDataOffset;
prependedDataLength += directoryDataOffset - originalDirectoryDataOffset;
directoryArray = await readUint8Array(reader, directoryDataOffset, directoryDataLength, diskNumber);
directoryView = getDataView$1(directoryArray);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/zip-fs.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions dist/zip-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -7593,10 +7593,14 @@
}
directoryDataOffset -= directoryDataLength;
}
if (directoryDataOffset >= reader.size) {
prependedDataLength = reader.size - directoryDataOffset - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
directoryDataOffset = reader.size - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
}
if (expectedLastDiskNumber != lastDiskNumber) {
throw new Error(ERR_SPLIT_ZIP_FILE);
}
if (directoryDataOffset < 0 || directoryDataOffset >= reader.size) {
if (directoryDataOffset < 0) {
throw new Error(ERR_BAD_FORMAT);
}
let offset = 0;
Expand All @@ -7607,7 +7611,7 @@
if (getUint32(directoryView, offset) != CENTRAL_FILE_HEADER_SIGNATURE && directoryDataOffset != expectedDirectoryDataOffset) {
const originalDirectoryDataOffset = directoryDataOffset;
directoryDataOffset = expectedDirectoryDataOffset;
prependedDataLength = directoryDataOffset - originalDirectoryDataOffset;
prependedDataLength += directoryDataOffset - originalDirectoryDataOffset;
directoryArray = await readUint8Array(reader, directoryDataOffset, directoryDataLength, diskNumber);
directoryView = getDataView$1(directoryArray);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/zip-full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/zip-no-worker-inflate.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/zip-no-worker.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions dist/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -3370,10 +3370,14 @@
}
directoryDataOffset -= directoryDataLength;
}
if (directoryDataOffset >= reader.size) {
prependedDataLength = reader.size - directoryDataOffset - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
directoryDataOffset = reader.size - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
}
if (expectedLastDiskNumber != lastDiskNumber) {
throw new Error(ERR_SPLIT_ZIP_FILE);
}
if (directoryDataOffset < 0 || directoryDataOffset >= reader.size) {
if (directoryDataOffset < 0) {
throw new Error(ERR_BAD_FORMAT);
}
let offset = 0;
Expand All @@ -3384,7 +3388,7 @@
if (getUint32(directoryView, offset) != CENTRAL_FILE_HEADER_SIGNATURE && directoryDataOffset != expectedDirectoryDataOffset) {
const originalDirectoryDataOffset = directoryDataOffset;
directoryDataOffset = expectedDirectoryDataOffset;
prependedDataLength = directoryDataOffset - originalDirectoryDataOffset;
prependedDataLength += directoryDataOffset - originalDirectoryDataOffset;
directoryArray = await readUint8Array(reader, directoryDataOffset, directoryDataLength, diskNumber);
directoryView = getDataView$1(directoryArray);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/zip.min.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9220,10 +9220,14 @@ class ZipReader {
}
directoryDataOffset -= directoryDataLength;
}
if (directoryDataOffset >= reader.size) {
prependedDataLength = reader.size - directoryDataOffset - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
directoryDataOffset = reader.size - directoryDataLength - END_OF_CENTRAL_DIR_LENGTH;
}
if (expectedLastDiskNumber != lastDiskNumber) {
throw new Error(ERR_SPLIT_ZIP_FILE);
}
if (directoryDataOffset < 0 || directoryDataOffset >= reader.size) {
if (directoryDataOffset < 0) {
throw new Error(ERR_BAD_FORMAT);
}
let offset = 0;
Expand All @@ -9234,7 +9238,7 @@ class ZipReader {
if (getUint32(directoryView, offset) != CENTRAL_FILE_HEADER_SIGNATURE && directoryDataOffset != expectedDirectoryDataOffset) {
const originalDirectoryDataOffset = directoryDataOffset;
directoryDataOffset = expectedDirectoryDataOffset;
prependedDataLength = directoryDataOffset - originalDirectoryDataOffset;
prependedDataLength += directoryDataOffset - originalDirectoryDataOffset;
directoryArray = await readUint8Array(reader, directoryDataOffset, directoryDataLength, diskNumber);
directoryView = getDataView$1(directoryArray);
}
Expand Down
2 changes: 1 addition & 1 deletion index.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit e0a277f

Please sign in to comment.