@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.
@@ -43,7 +43,6 @@ import {
43
43
  MESSAGE_CLOSE
44
44
  } from "./streams/codec-stream.js";
45
45
 
46
- // deno-lint-ignore valid-typeof
47
46
  let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
48
47
 
49
48
  export {
@@ -241,7 +240,6 @@ let transferStreamsSupported = true;
241
240
  function getWebWorker(url, baseURL, workerData) {
242
241
  const workerOptions = { type: "module" };
243
242
  let scriptUrl, worker;
244
- // deno-lint-ignore valid-typeof
245
243
  if (typeof url == FUNCTION_TYPE) {
246
244
  url = url();
247
245
  }
@@ -56,7 +56,6 @@ const SALT_LENGTH = [8, 12, 16];
56
56
  const KEY_LENGTH = [16, 24, 32];
57
57
  const SIGNATURE_LENGTH = 10;
58
58
  const COUNTER_DEFAULT_VALUE = [0, 0, 0, 0];
59
- // deno-lint-ignore valid-typeof
60
59
  const CRYPTO_API_SUPPORTED = typeof crypto != UNDEFINED_TYPE;
61
60
  const subtle = CRYPTO_API_SUPPORTED && crypto.subtle;
62
61
  const SUBTLE_API_SUPPORTED = CRYPTO_API_SUPPORTED && typeof subtle != UNDEFINED_TYPE;
@@ -35,7 +35,6 @@ export {
35
35
  };
36
36
 
37
37
  function encodeText(value) {
38
- // deno-lint-ignore valid-typeof
39
38
  if (typeof TextEncoder == UNDEFINED_TYPE) {
40
39
  value = unescape(encodeURIComponent(value));
41
40
  const result = new Uint8Array(value.length);
@@ -42,10 +42,8 @@ function initShimAsyncCodec(library, options = {}, registerDataHandler) {
42
42
  }
43
43
 
44
44
  function objectHasOwn(object, propertyName) {
45
- // deno-lint-ignore valid-typeof
46
45
  return typeof Object.hasOwn === FUNCTION_TYPE ?
47
46
  Object.hasOwn(object, propertyName) :
48
- // deno-lint-ignore no-prototype-builtins
49
47
  object.hasOwnProperty(propertyName);
50
48
  }
51
49
 
@@ -53,7 +51,6 @@ function createCodecClass(constructor, constructorOptions, registerDataHandler)
53
51
  return class {
54
52
 
55
53
  constructor(options) {
56
- // deno-lint-ignore no-this-alias
57
54
  const codecAdapter = this;
58
55
  const onData = data => {
59
56
  if (codecAdapter.pendingData) {
@@ -56,7 +56,6 @@ import {
56
56
  BITFLAG_DATA_DESCRIPTOR,
57
57
  BITFLAG_LANG_ENCODING_FLAG,
58
58
  FILE_ATTR_MSDOS_DIR_MASK,
59
- FILE_ATTR_UNIX_DIR_MASK,
60
59
  FILE_ATTR_UNIX_EXECUTABLE_MASK,
61
60
  FILE_ATTR_UNIX_DEFAULT_MASK,
62
61
  VERSION_DEFLATE,
@@ -254,7 +253,7 @@ async function addFile(zipWriter, name, reader, options) {
254
253
  if (msDosCompatible) {
255
254
  externalFileAttributes = FILE_ATTR_MSDOS_DIR_MASK;
256
255
  } else {
257
- externalFileAttributes = FILE_ATTR_UNIX_DIR_MASK << 16;
256
+ externalFileAttributes = (FILE_ATTR_UNIX_EXECUTABLE_MASK | FILE_ATTR_UNIX_DEFAULT_MASK) << 16;
258
257
  }
259
258
  }
260
259
  } else if (!msDosCompatible && externalFileAttributes === 0) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "2.7.59",
6
+ "version": "2.7.61",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",
@@ -59,16 +59,6 @@
59
59
  "default": "./index.cjs"
60
60
  }
61
61
  },
62
- "./legacy-5.6": {
63
- "import": {
64
- "types": "./index-legacy-5.6.d.ts",
65
- "default": "./index.js"
66
- },
67
- "require": {
68
- "types": "./index-legacy-5.6.d.ts",
69
- "default": "./index.cjs"
70
- }
71
- },
72
62
  "./index.min.js": {
73
63
  "import": {
74
64
  "types": "./index.d.ts",
@@ -130,10 +120,10 @@
130
120
  "@rollup/plugin-node-resolve": "^16.0.1",
131
121
  "@rollup/plugin-replace": "^6.0.2",
132
122
  "@rollup/plugin-terser": "^0.4.4",
133
- "eslint": "^9.23.0",
123
+ "eslint": "^9.26.0",
134
124
  "http-server": "^14.1.1",
135
- "rollup": "^4.38.0",
136
- "typedoc": "^0.28.1",
137
- "typedoc-plugin-markdown": "^4.6.0"
125
+ "rollup": "^4.40.2",
126
+ "typedoc": "^0.28.4",
127
+ "typedoc-plugin-markdown": "^4.6.3"
138
128
  }
139
129
  }