@zip.js/zip.js 2.7.59 → 2.7.61
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/deno.json +1 -1
- package/dist/zip-fs-full.js +1 -8
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +1 -8
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +1 -8
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +1 -8
- package/dist/zip.min.js +1 -1
- package/index.cjs +1 -8
- package/index.d.ts +207 -42
- package/index.min.js +1 -1
- package/lib/core/codec-worker.js +0 -2
- package/lib/core/streams/aes-crypto-stream.js +0 -1
- package/lib/core/util/encode-text.js +0 -1
- package/lib/core/util/stream-codec-shim.js +0 -3
- package/lib/core/zip-writer.js +1 -2
- package/package.json +5 -15
- package/index-legacy-5.6.d.ts +0 -2108
package/dist/zip-fs.js
CHANGED
|
@@ -297,10 +297,8 @@
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
function objectHasOwn(object, propertyName) {
|
|
300
|
-
// deno-lint-ignore valid-typeof
|
|
301
300
|
return typeof Object.hasOwn === FUNCTION_TYPE ?
|
|
302
301
|
Object.hasOwn(object, propertyName) :
|
|
303
|
-
// deno-lint-ignore no-prototype-builtins
|
|
304
302
|
object.hasOwnProperty(propertyName);
|
|
305
303
|
}
|
|
306
304
|
|
|
@@ -308,7 +306,6 @@
|
|
|
308
306
|
return class {
|
|
309
307
|
|
|
310
308
|
constructor(options) {
|
|
311
|
-
// deno-lint-ignore no-this-alias
|
|
312
309
|
const codecAdapter = this;
|
|
313
310
|
const onData = data => {
|
|
314
311
|
if (codecAdapter.pendingData) {
|
|
@@ -489,7 +486,6 @@
|
|
|
489
486
|
|
|
490
487
|
|
|
491
488
|
function encodeText(value) {
|
|
492
|
-
// deno-lint-ignore valid-typeof
|
|
493
489
|
if (typeof TextEncoder == UNDEFINED_TYPE) {
|
|
494
490
|
value = unescape(encodeURIComponent(value));
|
|
495
491
|
const result = new Uint8Array(value.length);
|
|
@@ -1406,7 +1402,6 @@
|
|
|
1406
1402
|
const KEY_LENGTH = [16, 24, 32];
|
|
1407
1403
|
const SIGNATURE_LENGTH = 10;
|
|
1408
1404
|
const COUNTER_DEFAULT_VALUE = [0, 0, 0, 0];
|
|
1409
|
-
// deno-lint-ignore valid-typeof
|
|
1410
1405
|
const CRYPTO_API_SUPPORTED = typeof crypto != UNDEFINED_TYPE;
|
|
1411
1406
|
const subtle = CRYPTO_API_SUPPORTED && crypto.subtle;
|
|
1412
1407
|
const SUBTLE_API_SUPPORTED = CRYPTO_API_SUPPORTED && typeof subtle != UNDEFINED_TYPE;
|
|
@@ -2113,7 +2108,6 @@
|
|
|
2113
2108
|
*/
|
|
2114
2109
|
|
|
2115
2110
|
|
|
2116
|
-
// deno-lint-ignore valid-typeof
|
|
2117
2111
|
let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
|
|
2118
2112
|
|
|
2119
2113
|
class CodecWorker {
|
|
@@ -2307,7 +2301,6 @@
|
|
|
2307
2301
|
function getWebWorker(url, baseURL, workerData) {
|
|
2308
2302
|
const workerOptions = { type: "module" };
|
|
2309
2303
|
let scriptUrl, worker;
|
|
2310
|
-
// deno-lint-ignore valid-typeof
|
|
2311
2304
|
if (typeof url == FUNCTION_TYPE) {
|
|
2312
2305
|
url = url();
|
|
2313
2306
|
}
|
|
@@ -4257,7 +4250,7 @@
|
|
|
4257
4250
|
if (msDosCompatible) {
|
|
4258
4251
|
externalFileAttributes = FILE_ATTR_MSDOS_DIR_MASK;
|
|
4259
4252
|
} else {
|
|
4260
|
-
externalFileAttributes =
|
|
4253
|
+
externalFileAttributes = (FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16;
|
|
4261
4254
|
}
|
|
4262
4255
|
}
|
|
4263
4256
|
} else if (!msDosCompatible && externalFileAttributes === 0) {
|