7z-iterator 1.0.2 → 1.1.1

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 (47) hide show
  1. package/dist/cjs/FileEntry.d.cts +4 -2
  2. package/dist/cjs/FileEntry.d.ts +4 -2
  3. package/dist/cjs/FileEntry.js +0 -1
  4. package/dist/cjs/FileEntry.js.map +1 -1
  5. package/dist/cjs/SevenZipIterator.js +0 -1
  6. package/dist/cjs/SevenZipIterator.js.map +1 -1
  7. package/dist/cjs/nextEntry.d.cts +2 -2
  8. package/dist/cjs/nextEntry.d.ts +2 -2
  9. package/dist/cjs/nextEntry.js.map +1 -1
  10. package/dist/cjs/sevenz/SevenZipParser.js +2 -8
  11. package/dist/cjs/sevenz/SevenZipParser.js.map +1 -1
  12. package/dist/cjs/sevenz/codecs/Lzma.d.cts +1 -4
  13. package/dist/cjs/sevenz/codecs/Lzma.d.ts +1 -4
  14. package/dist/cjs/sevenz/codecs/Lzma.js +2 -30
  15. package/dist/cjs/sevenz/codecs/Lzma.js.map +1 -1
  16. package/dist/cjs/sevenz/codecs/Lzma2.d.cts +0 -3
  17. package/dist/cjs/sevenz/codecs/Lzma2.d.ts +0 -3
  18. package/dist/cjs/sevenz/codecs/Lzma2.js +0 -10
  19. package/dist/cjs/sevenz/codecs/Lzma2.js.map +1 -1
  20. package/dist/cjs/types.d.cts +1 -1
  21. package/dist/cjs/types.d.ts +1 -1
  22. package/dist/cjs/types.js.map +1 -1
  23. package/dist/esm/FileEntry.d.ts +4 -2
  24. package/dist/esm/FileEntry.js +0 -1
  25. package/dist/esm/FileEntry.js.map +1 -1
  26. package/dist/esm/SevenZipIterator.js +0 -1
  27. package/dist/esm/SevenZipIterator.js.map +1 -1
  28. package/dist/esm/nextEntry.d.ts +2 -2
  29. package/dist/esm/nextEntry.js.map +1 -1
  30. package/dist/esm/sevenz/SevenZipParser.js +2 -8
  31. package/dist/esm/sevenz/SevenZipParser.js.map +1 -1
  32. package/dist/esm/sevenz/codecs/Lzma.d.ts +1 -4
  33. package/dist/esm/sevenz/codecs/Lzma.js +2 -33
  34. package/dist/esm/sevenz/codecs/Lzma.js.map +1 -1
  35. package/dist/esm/sevenz/codecs/Lzma2.d.ts +0 -3
  36. package/dist/esm/sevenz/codecs/Lzma2.js +1 -18
  37. package/dist/esm/sevenz/codecs/Lzma2.js.map +1 -1
  38. package/dist/esm/types.d.ts +1 -1
  39. package/dist/esm/types.js.map +1 -1
  40. package/package.json +3 -7
  41. package/dist/cjs/sevenz/codecs/lzmaCompat.d.cts +0 -41
  42. package/dist/cjs/sevenz/codecs/lzmaCompat.d.ts +0 -41
  43. package/dist/cjs/sevenz/codecs/lzmaCompat.js +0 -66
  44. package/dist/cjs/sevenz/codecs/lzmaCompat.js.map +0 -1
  45. package/dist/esm/sevenz/codecs/lzmaCompat.d.ts +0 -41
  46. package/dist/esm/sevenz/codecs/lzmaCompat.js +0 -65
  47. package/dist/esm/sevenz/codecs/lzmaCompat.js.map +0 -1
@@ -1,41 +0,0 @@
1
- /**
2
- * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs
3
- *
4
- * lzma-native provides native liblzma bindings with rawDecoder support.
5
- * This gives significant performance improvements on Node.js 8+ while
6
- * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.
7
- *
8
- * The native decoder uses Node.js streams which integrate naturally with
9
- * the callback-based async pattern used throughout the iterator libraries.
10
- */
11
- import type { Transform } from 'readable-stream';
12
- export declare const hasNativeLzma: boolean;
13
- /**
14
- * Create a native LZMA2 decoder stream
15
- * Returns a Transform stream that decodes LZMA2 data
16
- *
17
- * Note: Native LZMA2 decoder disabled due to LZMA_DATA_ERROR issues with
18
- * lzma-native's rawDecoder for LZMA2. The native decoder fails partway through
19
- * decompression on certain archives (e.g., Node.js Windows releases), reporting
20
- * "Data is corrupt" even when the data is valid. Falls back to lzma-purejs
21
- * which handles all LZMA2 streams correctly.
22
- *
23
- * @param _dictSize - Dictionary size (unused, native disabled)
24
- * @returns null - always falls back to pure JS decoder
25
- */
26
- export declare function createNativeLzma2Decoder(_dictSize?: number): Transform | null;
27
- /**
28
- * Create a native LZMA1 decoder stream
29
- * Returns a Transform stream that decodes LZMA1 data
30
- *
31
- * Note: Native LZMA1 decoder disabled due to LZMA_BUF_ERROR issues with
32
- * lzma-native's rawDecoder for LZMA1. Falls back to lzma-purejs which
33
- * handles 7z's LZMA1 format correctly. LZMA2 native works fine.
34
- *
35
- * @param _lc - Literal context bits (0-8)
36
- * @param _lp - Literal position bits (0-4)
37
- * @param _pb - Position bits (0-4)
38
- * @param _dictSize - Dictionary size
39
- * @returns null - always falls back to pure JS decoder
40
- */
41
- export declare function createNativeLzma1Decoder(_lc: number, _lp: number, _pb: number, _dictSize: number): Transform | null;
@@ -1,41 +0,0 @@
1
- /**
2
- * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs
3
- *
4
- * lzma-native provides native liblzma bindings with rawDecoder support.
5
- * This gives significant performance improvements on Node.js 8+ while
6
- * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.
7
- *
8
- * The native decoder uses Node.js streams which integrate naturally with
9
- * the callback-based async pattern used throughout the iterator libraries.
10
- */
11
- import type { Transform } from 'readable-stream';
12
- export declare const hasNativeLzma: boolean;
13
- /**
14
- * Create a native LZMA2 decoder stream
15
- * Returns a Transform stream that decodes LZMA2 data
16
- *
17
- * Note: Native LZMA2 decoder disabled due to LZMA_DATA_ERROR issues with
18
- * lzma-native's rawDecoder for LZMA2. The native decoder fails partway through
19
- * decompression on certain archives (e.g., Node.js Windows releases), reporting
20
- * "Data is corrupt" even when the data is valid. Falls back to lzma-purejs
21
- * which handles all LZMA2 streams correctly.
22
- *
23
- * @param _dictSize - Dictionary size (unused, native disabled)
24
- * @returns null - always falls back to pure JS decoder
25
- */
26
- export declare function createNativeLzma2Decoder(_dictSize?: number): Transform | null;
27
- /**
28
- * Create a native LZMA1 decoder stream
29
- * Returns a Transform stream that decodes LZMA1 data
30
- *
31
- * Note: Native LZMA1 decoder disabled due to LZMA_BUF_ERROR issues with
32
- * lzma-native's rawDecoder for LZMA1. Falls back to lzma-purejs which
33
- * handles 7z's LZMA1 format correctly. LZMA2 native works fine.
34
- *
35
- * @param _lc - Literal context bits (0-8)
36
- * @param _lp - Literal position bits (0-4)
37
- * @param _pb - Position bits (0-4)
38
- * @param _dictSize - Dictionary size
39
- * @returns null - always falls back to pure JS decoder
40
- */
41
- export declare function createNativeLzma1Decoder(_lc: number, _lp: number, _pb: number, _dictSize: number): Transform | null;
@@ -1,66 +0,0 @@
1
- /**
2
- * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs
3
- *
4
- * lzma-native provides native liblzma bindings with rawDecoder support.
5
- * This gives significant performance improvements on Node.js 8+ while
6
- * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.
7
- *
8
- * The native decoder uses Node.js streams which integrate naturally with
9
- * the callback-based async pattern used throughout the iterator libraries.
10
- */ "use strict";
11
- Object.defineProperty(exports, "__esModule", {
12
- value: true
13
- });
14
- function _export(target, all) {
15
- for(var name in all)Object.defineProperty(target, name, {
16
- enumerable: true,
17
- get: Object.getOwnPropertyDescriptor(all, name).get
18
- });
19
- }
20
- _export(exports, {
21
- get createNativeLzma1Decoder () {
22
- return createNativeLzma1Decoder;
23
- },
24
- get createNativeLzma2Decoder () {
25
- return createNativeLzma2Decoder;
26
- },
27
- get hasNativeLzma () {
28
- return hasNativeLzma;
29
- }
30
- });
31
- var _module = /*#__PURE__*/ _interop_require_default(require("module"));
32
- function _interop_require_default(obj) {
33
- return obj && obj.__esModule ? obj : {
34
- default: obj
35
- };
36
- }
37
- var _require = typeof require === 'undefined' ? _module.default.createRequire(require("url").pathToFileURL(__filename).toString()) : require;
38
- // Try to load lzma-native (only on Node 10+ where ES6 class syntax is supported)
39
- // Note: We must check the version BEFORE requiring because syntax errors during
40
- // module parsing cannot be caught by try/catch
41
- var lzmaNative = null;
42
- var _hasNativeLzmaLib = false;
43
- var major = +process.versions.node.split('.')[0];
44
- if (major >= 10) {
45
- try {
46
- lzmaNative = _require('lzma-native');
47
- // Verify rawDecoder support
48
- _hasNativeLzmaLib = lzmaNative !== null && typeof lzmaNative.createStream === 'function';
49
- } catch (_e) {
50
- // lzma-native not available - will use lzma-purejs
51
- }
52
- }
53
- var hasNativeLzma = _hasNativeLzmaLib;
54
- function createNativeLzma2Decoder(_dictSize) {
55
- // Native LZMA2 disabled - lzma-native's rawDecoder has issues with certain
56
- // LZMA2 streams (LZMA_DATA_ERROR: Data is corrupt), even when data is valid.
57
- // The pure JS lzma-purejs implementation handles all streams correctly.
58
- return null;
59
- }
60
- function createNativeLzma1Decoder(_lc, _lp, _pb, _dictSize) {
61
- // Native LZMA1 disabled - lzma-native's rawDecoder has issues with 7z's LZMA1 format
62
- // (LZMA_BUF_ERROR: No progress is possible)
63
- // LZMA2 native works correctly and is more common in modern 7z files
64
- return null;
65
- }
66
- /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/7z-iterator/src/sevenz/codecs/lzmaCompat.ts"],"sourcesContent":["/**\n * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs\n *\n * lzma-native provides native liblzma bindings with rawDecoder support.\n * This gives significant performance improvements on Node.js 8+ while\n * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.\n *\n * The native decoder uses Node.js streams which integrate naturally with\n * the callback-based async pattern used throughout the iterator libraries.\n */\n\nimport Module from 'module';\nimport type { Transform } from 'readable-stream';\n\nconst _require = typeof require === 'undefined' ? Module.createRequire(import.meta.url) : require;\n\n// Try to load lzma-native (only on Node 10+ where ES6 class syntax is supported)\n// Note: We must check the version BEFORE requiring because syntax errors during\n// module parsing cannot be caught by try/catch\nlet lzmaNative: typeof import('lzma-native') | null = null;\nlet _hasNativeLzmaLib = false;\nconst major = +process.versions.node.split('.')[0];\n\nif (major >= 10) {\n try {\n lzmaNative = _require('lzma-native');\n // Verify rawDecoder support\n _hasNativeLzmaLib = lzmaNative !== null && typeof lzmaNative.createStream === 'function';\n } catch (_e) {\n // lzma-native not available - will use lzma-purejs\n }\n}\n\n// Export whether native lzma is available for streaming\nexport const hasNativeLzma = _hasNativeLzmaLib;\n\n/**\n * Create a native LZMA2 decoder stream\n * Returns a Transform stream that decodes LZMA2 data\n *\n * Note: Native LZMA2 decoder disabled due to LZMA_DATA_ERROR issues with\n * lzma-native's rawDecoder for LZMA2. The native decoder fails partway through\n * decompression on certain archives (e.g., Node.js Windows releases), reporting\n * \"Data is corrupt\" even when the data is valid. Falls back to lzma-purejs\n * which handles all LZMA2 streams correctly.\n *\n * @param _dictSize - Dictionary size (unused, native disabled)\n * @returns null - always falls back to pure JS decoder\n */\nexport function createNativeLzma2Decoder(_dictSize?: number): Transform | null {\n // Native LZMA2 disabled - lzma-native's rawDecoder has issues with certain\n // LZMA2 streams (LZMA_DATA_ERROR: Data is corrupt), even when data is valid.\n // The pure JS lzma-purejs implementation handles all streams correctly.\n return null;\n}\n\n/**\n * Create a native LZMA1 decoder stream\n * Returns a Transform stream that decodes LZMA1 data\n *\n * Note: Native LZMA1 decoder disabled due to LZMA_BUF_ERROR issues with\n * lzma-native's rawDecoder for LZMA1. Falls back to lzma-purejs which\n * handles 7z's LZMA1 format correctly. LZMA2 native works fine.\n *\n * @param _lc - Literal context bits (0-8)\n * @param _lp - Literal position bits (0-4)\n * @param _pb - Position bits (0-4)\n * @param _dictSize - Dictionary size\n * @returns null - always falls back to pure JS decoder\n */\nexport function createNativeLzma1Decoder(_lc: number, _lp: number, _pb: number, _dictSize: number): Transform | null {\n // Native LZMA1 disabled - lzma-native's rawDecoder has issues with 7z's LZMA1 format\n // (LZMA_BUF_ERROR: No progress is possible)\n // LZMA2 native works correctly and is more common in modern 7z files\n return null;\n}\n"],"names":["createNativeLzma1Decoder","createNativeLzma2Decoder","hasNativeLzma","_require","require","Module","createRequire","lzmaNative","_hasNativeLzmaLib","major","process","versions","node","split","createStream","_e","_dictSize","_lc","_lp","_pb"],"mappings":"AAAA;;;;;;;;;CASC;;;;;;;;;;;QA6DeA;eAAAA;;QArBAC;eAAAA;;QAfHC;eAAAA;;;6DAvBM;;;;;;AAGnB,IAAMC,WAAW,OAAOC,YAAY,cAAcC,eAAM,CAACC,aAAa,CAAC,uDAAmBF;AAE1F,iFAAiF;AACjF,gFAAgF;AAChF,+CAA+C;AAC/C,IAAIG,aAAkD;AACtD,IAAIC,oBAAoB;AACxB,IAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAElD,IAAIJ,SAAS,IAAI;IACf,IAAI;QACFF,aAAaJ,SAAS;QACtB,4BAA4B;QAC5BK,oBAAoBD,eAAe,QAAQ,OAAOA,WAAWO,YAAY,KAAK;IAChF,EAAE,OAAOC,IAAI;IACX,mDAAmD;IACrD;AACF;AAGO,IAAMb,gBAAgBM;AAetB,SAASP,yBAAyBe,SAAkB;IACzD,2EAA2E;IAC3E,6EAA6E;IAC7E,wEAAwE;IACxE,OAAO;AACT;AAgBO,SAAShB,yBAAyBiB,GAAW,EAAEC,GAAW,EAAEC,GAAW,EAAEH,SAAiB;IAC/F,qFAAqF;IACrF,4CAA4C;IAC5C,qEAAqE;IACrE,OAAO;AACT"}
@@ -1,41 +0,0 @@
1
- /**
2
- * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs
3
- *
4
- * lzma-native provides native liblzma bindings with rawDecoder support.
5
- * This gives significant performance improvements on Node.js 8+ while
6
- * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.
7
- *
8
- * The native decoder uses Node.js streams which integrate naturally with
9
- * the callback-based async pattern used throughout the iterator libraries.
10
- */
11
- import type { Transform } from 'readable-stream';
12
- export declare const hasNativeLzma: boolean;
13
- /**
14
- * Create a native LZMA2 decoder stream
15
- * Returns a Transform stream that decodes LZMA2 data
16
- *
17
- * Note: Native LZMA2 decoder disabled due to LZMA_DATA_ERROR issues with
18
- * lzma-native's rawDecoder for LZMA2. The native decoder fails partway through
19
- * decompression on certain archives (e.g., Node.js Windows releases), reporting
20
- * "Data is corrupt" even when the data is valid. Falls back to lzma-purejs
21
- * which handles all LZMA2 streams correctly.
22
- *
23
- * @param _dictSize - Dictionary size (unused, native disabled)
24
- * @returns null - always falls back to pure JS decoder
25
- */
26
- export declare function createNativeLzma2Decoder(_dictSize?: number): Transform | null;
27
- /**
28
- * Create a native LZMA1 decoder stream
29
- * Returns a Transform stream that decodes LZMA1 data
30
- *
31
- * Note: Native LZMA1 decoder disabled due to LZMA_BUF_ERROR issues with
32
- * lzma-native's rawDecoder for LZMA1. Falls back to lzma-purejs which
33
- * handles 7z's LZMA1 format correctly. LZMA2 native works fine.
34
- *
35
- * @param _lc - Literal context bits (0-8)
36
- * @param _lp - Literal position bits (0-4)
37
- * @param _pb - Position bits (0-4)
38
- * @param _dictSize - Dictionary size
39
- * @returns null - always falls back to pure JS decoder
40
- */
41
- export declare function createNativeLzma1Decoder(_lc: number, _lp: number, _pb: number, _dictSize: number): Transform | null;
@@ -1,65 +0,0 @@
1
- /**
2
- * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs
3
- *
4
- * lzma-native provides native liblzma bindings with rawDecoder support.
5
- * This gives significant performance improvements on Node.js 8+ while
6
- * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.
7
- *
8
- * The native decoder uses Node.js streams which integrate naturally with
9
- * the callback-based async pattern used throughout the iterator libraries.
10
- */ import Module from 'module';
11
- const _require = typeof require === 'undefined' ? Module.createRequire(import.meta.url) : require;
12
- // Try to load lzma-native (only on Node 10+ where ES6 class syntax is supported)
13
- // Note: We must check the version BEFORE requiring because syntax errors during
14
- // module parsing cannot be caught by try/catch
15
- let lzmaNative = null;
16
- let _hasNativeLzmaLib = false;
17
- const major = +process.versions.node.split('.')[0];
18
- if (major >= 10) {
19
- try {
20
- lzmaNative = _require('lzma-native');
21
- // Verify rawDecoder support
22
- _hasNativeLzmaLib = lzmaNative !== null && typeof lzmaNative.createStream === 'function';
23
- } catch (_e) {
24
- // lzma-native not available - will use lzma-purejs
25
- }
26
- }
27
- // Export whether native lzma is available for streaming
28
- export const hasNativeLzma = _hasNativeLzmaLib;
29
- /**
30
- * Create a native LZMA2 decoder stream
31
- * Returns a Transform stream that decodes LZMA2 data
32
- *
33
- * Note: Native LZMA2 decoder disabled due to LZMA_DATA_ERROR issues with
34
- * lzma-native's rawDecoder for LZMA2. The native decoder fails partway through
35
- * decompression on certain archives (e.g., Node.js Windows releases), reporting
36
- * "Data is corrupt" even when the data is valid. Falls back to lzma-purejs
37
- * which handles all LZMA2 streams correctly.
38
- *
39
- * @param _dictSize - Dictionary size (unused, native disabled)
40
- * @returns null - always falls back to pure JS decoder
41
- */ export function createNativeLzma2Decoder(_dictSize) {
42
- // Native LZMA2 disabled - lzma-native's rawDecoder has issues with certain
43
- // LZMA2 streams (LZMA_DATA_ERROR: Data is corrupt), even when data is valid.
44
- // The pure JS lzma-purejs implementation handles all streams correctly.
45
- return null;
46
- }
47
- /**
48
- * Create a native LZMA1 decoder stream
49
- * Returns a Transform stream that decodes LZMA1 data
50
- *
51
- * Note: Native LZMA1 decoder disabled due to LZMA_BUF_ERROR issues with
52
- * lzma-native's rawDecoder for LZMA1. Falls back to lzma-purejs which
53
- * handles 7z's LZMA1 format correctly. LZMA2 native works fine.
54
- *
55
- * @param _lc - Literal context bits (0-8)
56
- * @param _lp - Literal position bits (0-4)
57
- * @param _pb - Position bits (0-4)
58
- * @param _dictSize - Dictionary size
59
- * @returns null - always falls back to pure JS decoder
60
- */ export function createNativeLzma1Decoder(_lc, _lp, _pb, _dictSize) {
61
- // Native LZMA1 disabled - lzma-native's rawDecoder has issues with 7z's LZMA1 format
62
- // (LZMA_BUF_ERROR: No progress is possible)
63
- // LZMA2 native works correctly and is more common in modern 7z files
64
- return null;
65
- }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/7z-iterator/src/sevenz/codecs/lzmaCompat.ts"],"sourcesContent":["/**\n * LZMA compatibility layer - uses native lzma when available, falls back to lzma-purejs\n *\n * lzma-native provides native liblzma bindings with rawDecoder support.\n * This gives significant performance improvements on Node.js 8+ while\n * maintaining compatibility with Node.js 0.8+ via lzma-purejs fallback.\n *\n * The native decoder uses Node.js streams which integrate naturally with\n * the callback-based async pattern used throughout the iterator libraries.\n */\n\nimport Module from 'module';\nimport type { Transform } from 'readable-stream';\n\nconst _require = typeof require === 'undefined' ? Module.createRequire(import.meta.url) : require;\n\n// Try to load lzma-native (only on Node 10+ where ES6 class syntax is supported)\n// Note: We must check the version BEFORE requiring because syntax errors during\n// module parsing cannot be caught by try/catch\nlet lzmaNative: typeof import('lzma-native') | null = null;\nlet _hasNativeLzmaLib = false;\nconst major = +process.versions.node.split('.')[0];\n\nif (major >= 10) {\n try {\n lzmaNative = _require('lzma-native');\n // Verify rawDecoder support\n _hasNativeLzmaLib = lzmaNative !== null && typeof lzmaNative.createStream === 'function';\n } catch (_e) {\n // lzma-native not available - will use lzma-purejs\n }\n}\n\n// Export whether native lzma is available for streaming\nexport const hasNativeLzma = _hasNativeLzmaLib;\n\n/**\n * Create a native LZMA2 decoder stream\n * Returns a Transform stream that decodes LZMA2 data\n *\n * Note: Native LZMA2 decoder disabled due to LZMA_DATA_ERROR issues with\n * lzma-native's rawDecoder for LZMA2. The native decoder fails partway through\n * decompression on certain archives (e.g., Node.js Windows releases), reporting\n * \"Data is corrupt\" even when the data is valid. Falls back to lzma-purejs\n * which handles all LZMA2 streams correctly.\n *\n * @param _dictSize - Dictionary size (unused, native disabled)\n * @returns null - always falls back to pure JS decoder\n */\nexport function createNativeLzma2Decoder(_dictSize?: number): Transform | null {\n // Native LZMA2 disabled - lzma-native's rawDecoder has issues with certain\n // LZMA2 streams (LZMA_DATA_ERROR: Data is corrupt), even when data is valid.\n // The pure JS lzma-purejs implementation handles all streams correctly.\n return null;\n}\n\n/**\n * Create a native LZMA1 decoder stream\n * Returns a Transform stream that decodes LZMA1 data\n *\n * Note: Native LZMA1 decoder disabled due to LZMA_BUF_ERROR issues with\n * lzma-native's rawDecoder for LZMA1. Falls back to lzma-purejs which\n * handles 7z's LZMA1 format correctly. LZMA2 native works fine.\n *\n * @param _lc - Literal context bits (0-8)\n * @param _lp - Literal position bits (0-4)\n * @param _pb - Position bits (0-4)\n * @param _dictSize - Dictionary size\n * @returns null - always falls back to pure JS decoder\n */\nexport function createNativeLzma1Decoder(_lc: number, _lp: number, _pb: number, _dictSize: number): Transform | null {\n // Native LZMA1 disabled - lzma-native's rawDecoder has issues with 7z's LZMA1 format\n // (LZMA_BUF_ERROR: No progress is possible)\n // LZMA2 native works correctly and is more common in modern 7z files\n return null;\n}\n"],"names":["Module","_require","require","createRequire","url","lzmaNative","_hasNativeLzmaLib","major","process","versions","node","split","createStream","_e","hasNativeLzma","createNativeLzma2Decoder","_dictSize","createNativeLzma1Decoder","_lc","_lp","_pb"],"mappings":"AAAA;;;;;;;;;CASC,GAED,OAAOA,YAAY,SAAS;AAG5B,MAAMC,WAAW,OAAOC,YAAY,cAAcF,OAAOG,aAAa,CAAC,YAAYC,GAAG,IAAIF;AAE1F,iFAAiF;AACjF,gFAAgF;AAChF,+CAA+C;AAC/C,IAAIG,aAAkD;AACtD,IAAIC,oBAAoB;AACxB,MAAMC,QAAQ,CAACC,QAAQC,QAAQ,CAACC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC,EAAE;AAElD,IAAIJ,SAAS,IAAI;IACf,IAAI;QACFF,aAAaJ,SAAS;QACtB,4BAA4B;QAC5BK,oBAAoBD,eAAe,QAAQ,OAAOA,WAAWO,YAAY,KAAK;IAChF,EAAE,OAAOC,IAAI;IACX,mDAAmD;IACrD;AACF;AAEA,wDAAwD;AACxD,OAAO,MAAMC,gBAAgBR,kBAAkB;AAE/C;;;;;;;;;;;;CAYC,GACD,OAAO,SAASS,yBAAyBC,SAAkB;IACzD,2EAA2E;IAC3E,6EAA6E;IAC7E,wEAAwE;IACxE,OAAO;AACT;AAEA;;;;;;;;;;;;;CAaC,GACD,OAAO,SAASC,yBAAyBC,GAAW,EAAEC,GAAW,EAAEC,GAAW,EAAEJ,SAAiB;IAC/F,qFAAqF;IACrF,4CAA4C;IAC5C,qEAAqE;IACrE,OAAO;AACT"}