@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zip-js/zip-js",
3
- "version": "2.7.59",
3
+ "version": "2.7.61",
4
4
  "exports": {
5
5
  ".": "./index.js",
6
6
  "./data-uri": "./lib/zip-data-uri.js"
@@ -6272,7 +6272,6 @@
6272
6272
 
6273
6273
 
6274
6274
  function encodeText(value) {
6275
- // deno-lint-ignore valid-typeof
6276
6275
  if (typeof TextEncoder == UNDEFINED_TYPE) {
6277
6276
  value = unescape(encodeURIComponent(value));
6278
6277
  const result = new Uint8Array(value.length);
@@ -7189,7 +7188,6 @@
7189
7188
  const KEY_LENGTH = [16, 24, 32];
7190
7189
  const SIGNATURE_LENGTH = 10;
7191
7190
  const COUNTER_DEFAULT_VALUE = [0, 0, 0, 0];
7192
- // deno-lint-ignore valid-typeof
7193
7191
  const CRYPTO_API_SUPPORTED = typeof crypto != UNDEFINED_TYPE;
7194
7192
  const subtle = CRYPTO_API_SUPPORTED && crypto.subtle;
7195
7193
  const SUBTLE_API_SUPPORTED = CRYPTO_API_SUPPORTED && typeof subtle != UNDEFINED_TYPE;
@@ -7896,7 +7894,6 @@
7896
7894
  */
7897
7895
 
7898
7896
 
7899
- // deno-lint-ignore valid-typeof
7900
7897
  let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
7901
7898
 
7902
7899
  class CodecWorker {
@@ -8090,7 +8087,6 @@
8090
8087
  function getWebWorker(url, baseURL, workerData) {
8091
8088
  const workerOptions = { type: "module" };
8092
8089
  let scriptUrl, worker;
8093
- // deno-lint-ignore valid-typeof
8094
8090
  if (typeof url == FUNCTION_TYPE) {
8095
8091
  url = url();
8096
8092
  }
@@ -8323,10 +8319,8 @@
8323
8319
  }
8324
8320
 
8325
8321
  function objectHasOwn(object, propertyName) {
8326
- // deno-lint-ignore valid-typeof
8327
8322
  return typeof Object.hasOwn === FUNCTION_TYPE ?
8328
8323
  Object.hasOwn(object, propertyName) :
8329
- // deno-lint-ignore no-prototype-builtins
8330
8324
  object.hasOwnProperty(propertyName);
8331
8325
  }
8332
8326
 
@@ -8334,7 +8328,6 @@
8334
8328
  return class {
8335
8329
 
8336
8330
  constructor(options) {
8337
- // deno-lint-ignore no-this-alias
8338
8331
  const codecAdapter = this;
8339
8332
  const onData = data => {
8340
8333
  if (codecAdapter.pendingData) {
@@ -10104,7 +10097,7 @@
10104
10097
  if (msDosCompatible) {
10105
10098
  externalFileAttributes = FILE_ATTR_MSDOS_DIR_MASK;
10106
10099
  } else {
10107
- externalFileAttributes = FILE_ATTR_UNIX_DIR_MASK << 16;
10100
+ externalFileAttributes = (FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16;
10108
10101
  }
10109
10102
  }
10110
10103
  } else if (!msDosCompatible && externalFileAttributes === 0) {