@zip.js/zip.js 2.8.43 → 2.8.45

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.
Files changed (56) hide show
  1. package/README.md +0 -37
  2. package/deno.json +21 -1
  3. package/dist/zip-core-external.js +194 -159
  4. package/dist/zip-core-external.min.js +1 -1
  5. package/dist/zip-core.js +194 -131
  6. package/dist/zip-core.min.js +1 -1
  7. package/dist/zip-fs-core-external.js +246 -167
  8. package/dist/zip-fs-core-external.min.js +1 -1
  9. package/dist/zip-fs-core.js +244 -139
  10. package/dist/zip-fs-core.min.js +1 -1
  11. package/dist/zip-fs-external.js +267 -1761
  12. package/dist/zip-fs-external.min.js +1 -1
  13. package/dist/zip-fs-native.js +269 -1735
  14. package/dist/zip-fs-native.min.js +1 -1
  15. package/dist/zip-fs.js +268 -1734
  16. package/dist/zip-fs.min.js +1 -1
  17. package/dist/zip-legacy.js +196 -133
  18. package/dist/zip-legacy.min.js +1 -1
  19. package/dist/zip-native.js +196 -133
  20. package/dist/zip-native.min.js +1 -1
  21. package/dist/zip-web-worker-native.js +1 -1
  22. package/dist/zip-web-worker.js +1 -1
  23. package/dist/zip.js +195 -132
  24. package/dist/zip.min.js +1 -1
  25. package/eslint.config.mjs +31 -2
  26. package/index-native.cjs +269 -1735
  27. package/index-native.min.js +1 -1
  28. package/index.cjs +268 -1734
  29. package/index.d.cts +129 -8
  30. package/index.d.ts +129 -8
  31. package/index.min.js +1 -1
  32. package/lib/core/codec-pool.js +6 -2
  33. package/lib/core/codec-worker.js +2 -2
  34. package/lib/core/constants.js +4 -0
  35. package/lib/core/options.js +6 -0
  36. package/lib/core/streams/aes-crypto-stream.js +18 -21
  37. package/lib/core/streams/codec-stream.js +6 -2
  38. package/lib/core/streams/common-crypto.js +2 -0
  39. package/lib/core/streams/zip-entry-stream.js +16 -17
  40. package/lib/core/util/mime-type-data.js +3 -0
  41. package/lib/core/util/mime-type.js +23 -1596
  42. package/lib/core/web-worker-base.js +2 -2
  43. package/lib/core/web-worker-inline-native.js +1 -1
  44. package/lib/core/web-worker-inline-wasm.js +1 -1
  45. package/lib/core/web-worker-wasm.js +4 -8
  46. package/lib/core/zip-entry.js +11 -1
  47. package/lib/core/zip-fs.js +62 -5
  48. package/lib/core/zip-reader.js +80 -43
  49. package/lib/core/zip-writer.js +68 -45
  50. package/lib/zip-core-external.js +2 -0
  51. package/lib/zip-core-reader.js +2 -0
  52. package/lib/zip-fs-core-external.js +2 -0
  53. package/lib/zip-fs-external.js +2 -0
  54. package/lib/zip-mime-types.js +2 -0
  55. package/package.json +9 -3
  56. package/worker-message-property-names.js +1 -1
package/eslint.config.mjs CHANGED
@@ -10,7 +10,8 @@ export default [
10
10
  "lib/core/web-worker-inline-native.js",
11
11
  "lib/core/web-worker-inline-wasm.js",
12
12
  "lib/core/streams/zlib-js/zlib-streams.min.js",
13
- "tests/vendor/*.js",
13
+ "tests/vendor/",
14
+ "tests/corpus/",
14
15
  "index.cjs",
15
16
  "index.min.js",
16
17
  "index-native.cjs",
@@ -50,5 +51,33 @@ export default [
50
51
  "warn"
51
52
  ]
52
53
  }
54
+ },
55
+ {
56
+ files: ["benchmarks/**/*.js", "benchmarks/**/*.mjs", "tests/browser-runner.js", "tests/fidelity/**/*.js"],
57
+ languageOptions: {
58
+ ecmaVersion: "latest",
59
+ globals: {
60
+ AbortSignal: "readonly",
61
+ Blob: "readonly",
62
+ Buffer: "readonly",
63
+ clearTimeout: "readonly",
64
+ CompressionStream: "readonly",
65
+ crypto: "readonly",
66
+ Deno: "readonly",
67
+ fetch: "readonly",
68
+ performance: "readonly",
69
+ process: "readonly",
70
+ ReadableStream: "readonly",
71
+ setTimeout: "readonly",
72
+ TextDecoder: "readonly",
73
+ TextEncoder: "readonly",
74
+ TransformStream: "readonly",
75
+ URL: "readonly",
76
+ Worker: "readonly"
77
+ }
78
+ },
79
+ rules: {
80
+ "no-console": "off"
81
+ }
53
82
  }
54
- ];
83
+ ];