@zip.js/zip.js 2.6.67 → 2.6.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zip-fs-full.js +8 -8
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +8 -8
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +5 -5
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker-inflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +5 -5
- package/dist/zip.min.js +1 -1
- package/index.cjs +8 -8
- package/lib/core/io.js +5 -5
- package/lib/core/zip-fs-core.js +3 -3
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -7849,8 +7849,8 @@
|
|
|
7849
7849
|
}
|
|
7850
7850
|
|
|
7851
7851
|
async init() {
|
|
7852
|
-
super.init();
|
|
7853
7852
|
await initHttpReader(this, sendFetchRequest, getFetchRequestData);
|
|
7853
|
+
super.init();
|
|
7854
7854
|
}
|
|
7855
7855
|
|
|
7856
7856
|
readUint8Array(index, length) {
|
|
@@ -7866,8 +7866,8 @@
|
|
|
7866
7866
|
}
|
|
7867
7867
|
|
|
7868
7868
|
async init() {
|
|
7869
|
-
super.init();
|
|
7870
7869
|
await initHttpReader(this, sendXMLHttpRequest, getXMLHttpRequestData);
|
|
7870
|
+
super.init();
|
|
7871
7871
|
}
|
|
7872
7872
|
|
|
7873
7873
|
readUint8Array(index, length) {
|
|
@@ -8054,8 +8054,8 @@
|
|
|
8054
8054
|
}
|
|
8055
8055
|
|
|
8056
8056
|
async init() {
|
|
8057
|
-
super.init();
|
|
8058
8057
|
await this.reader.init();
|
|
8058
|
+
super.init();
|
|
8059
8059
|
}
|
|
8060
8060
|
|
|
8061
8061
|
readUint8Array(index, length) {
|
|
@@ -8090,11 +8090,11 @@
|
|
|
8090
8090
|
class Uint8ArrayWriter extends Writer {
|
|
8091
8091
|
|
|
8092
8092
|
init(initSize = 0) {
|
|
8093
|
-
super.init();
|
|
8094
8093
|
Object.assign(this, {
|
|
8095
8094
|
offset: 0,
|
|
8096
8095
|
array: new Uint8Array(initSize)
|
|
8097
8096
|
});
|
|
8097
|
+
super.init();
|
|
8098
8098
|
}
|
|
8099
8099
|
|
|
8100
8100
|
writeUint8Array(array) {
|
|
@@ -8121,7 +8121,6 @@
|
|
|
8121
8121
|
}
|
|
8122
8122
|
|
|
8123
8123
|
async init() {
|
|
8124
|
-
super.init();
|
|
8125
8124
|
const reader = this;
|
|
8126
8125
|
const { readers } = reader;
|
|
8127
8126
|
reader.lastDiskNumber = 0;
|
|
@@ -8129,6 +8128,7 @@
|
|
|
8129
8128
|
await diskReader.init();
|
|
8130
8129
|
reader.size += diskReader.size;
|
|
8131
8130
|
}));
|
|
8131
|
+
super.init();
|
|
8132
8132
|
}
|
|
8133
8133
|
|
|
8134
8134
|
async readUint8Array(offset, length, diskNumber = 0) {
|
|
@@ -10540,12 +10540,12 @@
|
|
|
10540
10540
|
}
|
|
10541
10541
|
|
|
10542
10542
|
async init() {
|
|
10543
|
-
super.init();
|
|
10544
10543
|
const zipBlobReader = this;
|
|
10545
10544
|
zipBlobReader.size = zipBlobReader.entry.uncompressedSize;
|
|
10546
10545
|
const data = await zipBlobReader.entry.getData(new BlobWriter(), Object.assign({}, zipBlobReader.options, options));
|
|
10547
10546
|
zipBlobReader.data = data;
|
|
10548
10547
|
zipBlobReader.blobReader = new BlobReader(data);
|
|
10548
|
+
super.init();
|
|
10549
10549
|
}
|
|
10550
10550
|
|
|
10551
10551
|
readUint8Array(index, length) {
|
|
@@ -10556,7 +10556,7 @@
|
|
|
10556
10556
|
|
|
10557
10557
|
async function initReaders(entry) {
|
|
10558
10558
|
if (entry.children.length) {
|
|
10559
|
-
|
|
10559
|
+
await Promise.all(entry.children.map(async child => {
|
|
10560
10560
|
if (child.directory) {
|
|
10561
10561
|
await initReaders(child);
|
|
10562
10562
|
} else {
|
|
@@ -10564,7 +10564,7 @@
|
|
|
10564
10564
|
await initStream(reader);
|
|
10565
10565
|
child.uncompressedSize = reader.size;
|
|
10566
10566
|
}
|
|
10567
|
-
}
|
|
10567
|
+
}));
|
|
10568
10568
|
}
|
|
10569
10569
|
}
|
|
10570
10570
|
|