@zip.js/zip.js 2.5.15 → 2.5.16
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 +4 -3
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +4 -3
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +4 -3
- 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 +4 -3
- package/dist/zip.min.js +1 -1
- package/lib/core/codec-pool-worker.js +4 -3
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -7156,7 +7156,8 @@
|
|
|
7156
7156
|
result: new Promise((resolve, reject) => {
|
|
7157
7157
|
workerData.resolveResult = resolve;
|
|
7158
7158
|
workerData.rejectResult = reject;
|
|
7159
|
-
})
|
|
7159
|
+
}),
|
|
7160
|
+
aborted: false
|
|
7160
7161
|
});
|
|
7161
7162
|
if (!workerData.interface) {
|
|
7162
7163
|
if (!classicWorkersSupported) {
|
|
@@ -7172,7 +7173,7 @@
|
|
|
7172
7173
|
workerData.worker.addEventListener(MESSAGE_EVENT_TYPE, onMessage, false);
|
|
7173
7174
|
workerData.interface = {
|
|
7174
7175
|
abort() {
|
|
7175
|
-
workerData.
|
|
7176
|
+
workerData.aborted = true;
|
|
7176
7177
|
sendMessage({ type: MESSAGE_ABORT });
|
|
7177
7178
|
workerData.writer.releaseLock();
|
|
7178
7179
|
workerData.onTaskFinished();
|
|
@@ -7255,7 +7256,7 @@
|
|
|
7255
7256
|
}
|
|
7256
7257
|
|
|
7257
7258
|
function close(error, result) {
|
|
7258
|
-
if (error && !workerData.
|
|
7259
|
+
if (error && !workerData.aborted) {
|
|
7259
7260
|
rejectResult(error);
|
|
7260
7261
|
} else {
|
|
7261
7262
|
resolveResult(result);
|