@zip.js/zip.js 2.7.60 → 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 +11 -11
- package/index.min.js +1 -1
- package/lib/core/zip-writer.js +1 -2
- package/package.json +5 -5
package/dist/zip-full.js
CHANGED
|
@@ -4512,10 +4512,8 @@
|
|
|
4512
4512
|
}
|
|
4513
4513
|
|
|
4514
4514
|
function objectHasOwn(object, propertyName) {
|
|
4515
|
-
// deno-lint-ignore valid-typeof
|
|
4516
4515
|
return typeof Object.hasOwn === FUNCTION_TYPE ?
|
|
4517
4516
|
Object.hasOwn(object, propertyName) :
|
|
4518
|
-
// deno-lint-ignore no-prototype-builtins
|
|
4519
4517
|
object.hasOwnProperty(propertyName);
|
|
4520
4518
|
}
|
|
4521
4519
|
|
|
@@ -4523,7 +4521,6 @@
|
|
|
4523
4521
|
return class {
|
|
4524
4522
|
|
|
4525
4523
|
constructor(options) {
|
|
4526
|
-
// deno-lint-ignore no-this-alias
|
|
4527
4524
|
const codecAdapter = this;
|
|
4528
4525
|
const onData = data => {
|
|
4529
4526
|
if (codecAdapter.pendingData) {
|
|
@@ -4704,7 +4701,6 @@
|
|
|
4704
4701
|
|
|
4705
4702
|
|
|
4706
4703
|
function encodeText(value) {
|
|
4707
|
-
// deno-lint-ignore valid-typeof
|
|
4708
4704
|
if (typeof TextEncoder == UNDEFINED_TYPE) {
|
|
4709
4705
|
value = unescape(encodeURIComponent(value));
|
|
4710
4706
|
const result = new Uint8Array(value.length);
|
|
@@ -5621,7 +5617,6 @@
|
|
|
5621
5617
|
const KEY_LENGTH = [16, 24, 32];
|
|
5622
5618
|
const SIGNATURE_LENGTH = 10;
|
|
5623
5619
|
const COUNTER_DEFAULT_VALUE = [0, 0, 0, 0];
|
|
5624
|
-
// deno-lint-ignore valid-typeof
|
|
5625
5620
|
const CRYPTO_API_SUPPORTED = typeof crypto != UNDEFINED_TYPE;
|
|
5626
5621
|
const subtle = CRYPTO_API_SUPPORTED && crypto.subtle;
|
|
5627
5622
|
const SUBTLE_API_SUPPORTED = CRYPTO_API_SUPPORTED && typeof subtle != UNDEFINED_TYPE;
|
|
@@ -6328,7 +6323,6 @@
|
|
|
6328
6323
|
*/
|
|
6329
6324
|
|
|
6330
6325
|
|
|
6331
|
-
// deno-lint-ignore valid-typeof
|
|
6332
6326
|
let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
|
|
6333
6327
|
|
|
6334
6328
|
class CodecWorker {
|
|
@@ -6522,7 +6516,6 @@
|
|
|
6522
6516
|
function getWebWorker(url, baseURL, workerData) {
|
|
6523
6517
|
const workerOptions = { type: "module" };
|
|
6524
6518
|
let scriptUrl, worker;
|
|
6525
|
-
// deno-lint-ignore valid-typeof
|
|
6526
6519
|
if (typeof url == FUNCTION_TYPE) {
|
|
6527
6520
|
url = url();
|
|
6528
6521
|
}
|
|
@@ -8472,7 +8465,7 @@
|
|
|
8472
8465
|
if (msDosCompatible) {
|
|
8473
8466
|
externalFileAttributes = FILE_ATTR_MSDOS_DIR_MASK;
|
|
8474
8467
|
} else {
|
|
8475
|
-
externalFileAttributes =
|
|
8468
|
+
externalFileAttributes = (FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16;
|
|
8476
8469
|
}
|
|
8477
8470
|
}
|
|
8478
8471
|
} else if (!msDosCompatible && externalFileAttributes === 0) {
|