tar-iterator 3.1.5 → 3.1.7

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.
@@ -77,8 +77,13 @@ function nextEntry(next, iterator, callback) {
77
77
  });
78
78
  });
79
79
  });
80
- var onError = callback;
81
- var onEnd = callback.bind(null, null);
80
+ // Use nextCallback for all events to ensure once() wrapper is respected
81
+ var onError = function(err) {
82
+ return nextCallback(err);
83
+ };
84
+ var onEnd = function() {
85
+ return nextCallback();
86
+ };
82
87
  var onEntry = function onEntry(header, stream, next) {
83
88
  // Guard: skip if iterator already ended (stale lock)
84
89
  if (!iterator.lock || iterator.isDone()) {
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/nextEntry.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport { DirectoryEntry, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';\nimport path from 'path';\nimport FileEntry from './FileEntry.ts';\nimport type Iterator from './TarIterator.ts';\n\nimport type { Entry, EntryCallback } from './types.ts';\n\n// Node 0.8 compatible setImmediate (setImmediate was added in Node 0.10)\nconst _setImmediate =\n typeof setImmediate === 'function'\n ? setImmediate\n : typeof process !== 'undefined' && typeof process.nextTick === 'function'\n ? process.nextTick\n : function setImmediateFallback(fn: () => void) {\n setTimeout(fn, 0);\n };\n\nexport type TarNext = () => undefined;\nexport type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;\n\nexport default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined {\n // Guard: bail early if iterator already ended\n if (!iterator.lock || iterator.isDone()) {\n return callback(null, { done: true, value: null });\n }\n\n const extract = iterator.extract;\n if (!extract) return callback(new Error('Extract missing'));\n\n const nextCallback = once((err?: Error, entry?: Entry, next?: TarNext) => {\n extract.removeListener('entry', onEntry);\n extract.removeListener('error', onError);\n extract.removeListener('finish', onEnd);\n\n // keep processing\n if (entry) iterator.push(nextEntry.bind(null, next));\n\n // Use setImmediate to defer the callback invocation\n // This ensures proper async behavior with the BaseIterator\n _setImmediate(() => {\n err ? callback(err) : callback(null, entry ? { done: false, value: entry } : { done: true, value: null });\n });\n }) as NextCallback;\n\n const onError = callback;\n const onEnd = callback.bind(null, null);\n const onEntry = function onEntry(header, stream, next: TarNext) {\n // Guard: skip if iterator already ended (stale lock)\n if (!iterator.lock || iterator.isDone()) {\n stream.resume(); // drain stream\n return nextCallback(null, null, next);\n }\n\n const attributes = { ...header };\n attributes.path = header.name.split(path.sep).filter(Boolean).join(path.sep);\n attributes.mtime = new Date(attributes.mtime);\n\n switch (attributes.type) {\n case 'directory':\n stream.resume(); // drain stream\n return nextCallback(null, new DirectoryEntry(attributes), next);\n case 'symlink':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new SymbolicLinkEntry(attributes), next);\n case 'link':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new LinkEntry(attributes), next);\n case 'file':\n return nextCallback(null, new FileEntry(attributes, stream, iterator.lock), next);\n }\n\n stream.resume(); // drain stream\n return nextCallback(new Error(`Unrecognized entry type: ${attributes.type}`), null, next);\n };\n\n extract.on('entry', onEntry);\n extract.on('error', onError);\n extract.on('finish', onEnd);\n\n // Resume parsing to emit any pending entry\n // For first call (next is null), this triggers the first entry emission\n // For subsequent calls, next() unlocks the parser which then processes the next header\n if (next) {\n next();\n } else {\n // First call - resume to emit any pending entry\n extract.resume();\n }\n}\n"],"names":["nextEntry","_setImmediate","setImmediate","process","nextTick","setImmediateFallback","fn","setTimeout","next","iterator","callback","lock","isDone","done","value","extract","Error","nextCallback","once","err","entry","removeListener","onEntry","onError","onEnd","push","bind","header","stream","resume","attributes","path","name","split","sep","filter","Boolean","join","mtime","Date","type","DirectoryEntry","linkpath","linkname","SymbolicLinkEntry","LinkEntry","FileEntry","on"],"mappings":";;;;+BAqBA;;;eAAwBA;;;iEArBP;mCAC4C;2DAC5C;kEACK;;;;;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;QACxBG,WAAWC,IAAI,GAAGJ,OAAOK,IAAI,CAACC,KAAK,CAACF,aAAI,CAACG,GAAG,EAAEC,MAAM,CAACC,SAASC,IAAI,CAACN,aAAI,CAACG,GAAG;QAC3EJ,WAAWQ,KAAK,GAAG,IAAIC,KAAKT,WAAWQ,KAAK;QAE5C,OAAQR,WAAWU,IAAI;YACrB,KAAK;gBACHZ,OAAOC,MAAM,IAAI,eAAe;gBAChC,OAAOZ,aAAa,MAAM,IAAIwB,mCAAc,CAACX,aAAatB;YAC5D,KAAK;gBACHoB,OAAOC,MAAM,IAAI,eAAe;gBAChCC,WAAWY,QAAQ,GAAGf,OAAOgB,QAAQ;gBACrC,OAAO1B,aAAa,MAAM,IAAI2B,sCAAiB,CAACd,aAAatB;YAC/D,KAAK;gBACHoB,OAAOC,MAAM,IAAI,eAAe;gBAChCC,WAAWY,QAAQ,GAAGf,OAAOgB,QAAQ;gBACrC,OAAO1B,aAAa,MAAM,IAAI4B,8BAAS,CAACf,aAAatB;YACvD,KAAK;gBACH,OAAOS,aAAa,MAAM,IAAI6B,oBAAS,CAAChB,YAAYF,QAAQnB,SAASE,IAAI,GAAGH;QAChF;QAEAoB,OAAOC,MAAM,IAAI,eAAe;QAChC,OAAOZ,aAAa,IAAID,MAAM,AAAC,4BAA2C,OAAhBc,WAAWU,IAAI,IAAK,MAAMhC;IACtF;IAEAO,QAAQgC,EAAE,CAAC,SAASzB;IACpBP,QAAQgC,EAAE,CAAC,SAASxB;IACpBR,QAAQgC,EAAE,CAAC,UAAUvB;IAErB,2CAA2C;IAC3C,wEAAwE;IACxE,uFAAuF;IACvF,IAAIhB,MAAM;QACRA;IACF,OAAO;QACL,gDAAgD;QAChDO,QAAQc,MAAM;IAChB;AACF"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/nextEntry.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport { DirectoryEntry, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';\nimport path from 'path';\nimport FileEntry from './FileEntry.ts';\nimport type Iterator from './TarIterator.ts';\n\nimport type { Entry, EntryCallback } from './types.ts';\n\n// Node 0.8 compatible setImmediate (setImmediate was added in Node 0.10)\nconst _setImmediate =\n typeof setImmediate === 'function'\n ? setImmediate\n : typeof process !== 'undefined' && typeof process.nextTick === 'function'\n ? process.nextTick\n : function setImmediateFallback(fn: () => void) {\n setTimeout(fn, 0);\n };\n\nexport type TarNext = () => undefined;\nexport type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;\n\nexport default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined {\n // Guard: bail early if iterator already ended\n if (!iterator.lock || iterator.isDone()) {\n return callback(null, { done: true, value: null });\n }\n\n const extract = iterator.extract;\n if (!extract) return callback(new Error('Extract missing'));\n\n const nextCallback = once((err?: Error, entry?: Entry, next?: TarNext) => {\n extract.removeListener('entry', onEntry);\n extract.removeListener('error', onError);\n extract.removeListener('finish', onEnd);\n\n // keep processing\n if (entry) iterator.push(nextEntry.bind(null, next));\n\n // Use setImmediate to defer the callback invocation\n // This ensures proper async behavior with the BaseIterator\n _setImmediate(() => {\n err ? callback(err) : callback(null, entry ? { done: false, value: entry } : { done: true, value: null });\n });\n }) as NextCallback;\n\n // Use nextCallback for all events to ensure once() wrapper is respected\n const onError = (err: Error) => nextCallback(err);\n const onEnd = () => nextCallback();\n const onEntry = function onEntry(header, stream, next: TarNext) {\n // Guard: skip if iterator already ended (stale lock)\n if (!iterator.lock || iterator.isDone()) {\n stream.resume(); // drain stream\n return nextCallback(null, null, next);\n }\n\n const attributes = { ...header };\n attributes.path = header.name.split(path.sep).filter(Boolean).join(path.sep);\n attributes.mtime = new Date(attributes.mtime);\n\n switch (attributes.type) {\n case 'directory':\n stream.resume(); // drain stream\n return nextCallback(null, new DirectoryEntry(attributes), next);\n case 'symlink':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new SymbolicLinkEntry(attributes), next);\n case 'link':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new LinkEntry(attributes), next);\n case 'file':\n return nextCallback(null, new FileEntry(attributes, stream, iterator.lock), next);\n }\n\n stream.resume(); // drain stream\n return nextCallback(new Error(`Unrecognized entry type: ${attributes.type}`), null, next);\n };\n\n extract.on('entry', onEntry);\n extract.on('error', onError);\n extract.on('finish', onEnd);\n\n // Resume parsing to emit any pending entry\n // For first call (next is null), this triggers the first entry emission\n // For subsequent calls, next() unlocks the parser which then processes the next header\n if (next) {\n next();\n } else {\n // First call - resume to emit any pending entry\n extract.resume();\n }\n}\n"],"names":["nextEntry","_setImmediate","setImmediate","process","nextTick","setImmediateFallback","fn","setTimeout","next","iterator","callback","lock","isDone","done","value","extract","Error","nextCallback","once","err","entry","removeListener","onEntry","onError","onEnd","push","bind","header","stream","resume","attributes","path","name","split","sep","filter","Boolean","join","mtime","Date","type","DirectoryEntry","linkpath","linkname","SymbolicLinkEntry","LinkEntry","FileEntry","on"],"mappings":";;;;+BAqBA;;;eAAwBA;;;iEArBP;mCAC4C;2DAC5C;kEACK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKtB,yEAAyE;AACzE,IAAMC,gBACJ,OAAOC,iBAAiB,aACpBA,eACA,OAAOC,YAAY,eAAe,OAAOA,QAAQC,QAAQ,KAAK,aAC5DD,QAAQC,QAAQ,GAChB,SAASC,qBAAqBC,EAAc;IAC1CC,WAAWD,IAAI;AACjB;AAKO,SAASN,UAAUQ,IAAa,EAAEC,QAAkB,EAAEC,QAAuB;IAC1F,8CAA8C;IAC9C,IAAI,CAACD,SAASE,IAAI,IAAIF,SAASG,MAAM,IAAI;QACvC,OAAOF,SAAS,MAAM;YAAEG,MAAM;YAAMC,OAAO;QAAK;IAClD;IAEA,IAAMC,UAAUN,SAASM,OAAO;IAChC,IAAI,CAACA,SAAS,OAAOL,SAAS,IAAIM,MAAM;IAExC,IAAMC,eAAeC,IAAAA,mBAAI,EAAC,S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gBAChCC,WAAWY,QAAQ,GAAGf,OAAOgB,QAAQ;gBACrC,OAAO1B,aAAa,MAAM,IAAI4B,8BAAS,CAACf,aAAatB;YACvD,KAAK;gBACH,OAAOS,aAAa,MAAM,IAAI6B,oBAAS,CAAChB,YAAYF,QAAQnB,SAASE,IAAI,GAAGH;QAChF;QAEAoB,OAAOC,MAAM,IAAI,eAAe;QAChC,OAAOZ,aAAa,IAAID,MAAM,AAAC,4BAA2C,OAAhBc,WAAWU,IAAI,IAAK,MAAMhC;IACtF;IAEAO,QAAQgC,EAAE,CAAC,SAASzB;IACpBP,QAAQgC,EAAE,CAAC,SAASxB;IACpBR,QAAQgC,EAAE,CAAC,UAAUvB;IAErB,2CAA2C;IAC3C,wEAAwE;IACxE,uFAAuF;IACvF,IAAIhB,MAAM;QACRA;IACF,OAAO;QACL,gDAAgD;QAChDO,QAAQc,MAAM;IAChB;AACF"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * TAR Error Codes for programmatic error handling
3
3
  *
4
- * Node 0.8 compatible - uses var and object literals.
4
+ * Node 0.8 compatible - uses let and object literals.
5
5
  */
6
6
  /**
7
7
  * Error with a code property for programmatic handling
@@ -12,7 +12,7 @@ export interface TarCodedError extends Error {
12
12
  /**
13
13
  * TAR-specific error codes for user-facing errors
14
14
  */
15
- export declare var TarErrorCode: {
15
+ export declare const TarErrorCode: {
16
16
  /** Invalid tar header checksum - archive may be corrupted or needs decompression */
17
17
  INVALID_CHECKSUM: string;
18
18
  /** Unknown tar format - not USTAR, GNU, or V7 */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * TAR Error Codes for programmatic error handling
3
3
  *
4
- * Node 0.8 compatible - uses var and object literals.
4
+ * Node 0.8 compatible - uses let and object literals.
5
5
  */
6
6
  /**
7
7
  * Error with a code property for programmatic handling
@@ -12,7 +12,7 @@ export interface TarCodedError extends Error {
12
12
  /**
13
13
  * TAR-specific error codes for user-facing errors
14
14
  */
15
- export declare var TarErrorCode: {
15
+ export declare const TarErrorCode: {
16
16
  /** Invalid tar header checksum - archive may be corrupted or needs decompression */
17
17
  INVALID_CHECKSUM: string;
18
18
  /** Unknown tar format - not USTAR, GNU, or V7 */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * TAR Error Codes for programmatic error handling
3
3
  *
4
- * Node 0.8 compatible - uses var and object literals.
4
+ * Node 0.8 compatible - uses let and object literals.
5
5
  */ /**
6
6
  * Error with a code property for programmatic handling
7
7
  */ "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/tar/errors.ts"],"sourcesContent":["/**\n * TAR Error Codes for programmatic error handling\n *\n * Node 0.8 compatible - uses var and object literals.\n */\n\n/**\n * Error with a code property for programmatic handling\n */\nexport interface TarCodedError extends Error {\n code: string;\n}\n\n/**\n * TAR-specific error codes for user-facing errors\n */\nexport var TarErrorCode = {\n /** Invalid tar header checksum - archive may be corrupted or needs decompression */\n INVALID_CHECKSUM: 'TAR_INVALID_CHECKSUM',\n /** Unknown tar format - not USTAR, GNU, or V7 */\n INVALID_FORMAT: 'TAR_INVALID_FORMAT',\n};\n\n/**\n * Create an error with a code property\n *\n * @param message - Human-readable error message\n * @param code - Error code from TarErrorCode\n * @returns Error with code property\n */\nexport function createTarError(message: string, code: string): TarCodedError {\n var err = new Error(message) as TarCodedError;\n err.code = code;\n return err;\n}\n"],"names":["TarErrorCode","createTarError","INVALID_CHECKSUM","INVALID_FORMAT","message","code","err","Error"],"mappings":"AAAA;;;;CAIC,GAED;;CAEC;;;;;;;;;;;QAQUA;eAAAA;;QAcKC;eAAAA;;;AAdT,IAAID,eAAe;IACxB,kFAAkF,GAClFE,kBAAkB;IAClB,+CAA+C,GAC/CC,gBAAgB;AAClB;AASO,SAASF,eAAeG,OAAe,EAAEC,IAAY;IAC1D,IAAIC,MAAM,IAAIC,MAAMH;IACpBE,IAAID,IAAI,GAAGA;IACX,OAAOC;AACT"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/tar/errors.ts"],"sourcesContent":["/**\n * TAR Error Codes for programmatic error handling\n *\n * Node 0.8 compatible - uses let and object literals.\n */\n\n/**\n * Error with a code property for programmatic handling\n */\nexport interface TarCodedError extends Error {\n code: string;\n}\n\n/**\n * TAR-specific error codes for user-facing errors\n */\nexport const TarErrorCode = {\n /** Invalid tar header checksum - archive may be corrupted or needs decompression */\n INVALID_CHECKSUM: 'TAR_INVALID_CHECKSUM',\n /** Unknown tar format - not USTAR, GNU, or V7 */\n INVALID_FORMAT: 'TAR_INVALID_FORMAT',\n};\n\n/**\n * Create an error with a code property\n *\n * @param message - Human-readable error message\n * @param code - Error code from TarErrorCode\n * @returns Error with code property\n */\nexport function createTarError(message: string, code: string): TarCodedError {\n const err = new Error(message) as TarCodedError;\n err.code = code;\n return err;\n}\n"],"names":["TarErrorCode","createTarError","INVALID_CHECKSUM","INVALID_FORMAT","message","code","err","Error"],"mappings":"AAAA;;;;CAIC,GAED;;CAEC;;;;;;;;;;;QAQYA;eAAAA;;QAcGC;eAAAA;;;AAdT,IAAMD,eAAe;IAC1B,kFAAkF,GAClFE,kBAAkB;IAClB,+CAA+C,GAC/CC,gBAAgB;AAClB;AASO,SAASF,eAAeG,OAAe,EAAEC,IAAY;IAC1D,IAAMC,MAAM,IAAIC,MAAMH;IACtBE,IAAID,IAAI,GAAGA;IACX,OAAOC;AACT"}
@@ -34,8 +34,9 @@ export default function nextEntry(next, iterator, callback) {
34
34
  });
35
35
  });
36
36
  });
37
- const onError = callback;
38
- const onEnd = callback.bind(null, null);
37
+ // Use nextCallback for all events to ensure once() wrapper is respected
38
+ const onError = (err)=>nextCallback(err);
39
+ const onEnd = ()=>nextCallback();
39
40
  const onEntry = function onEntry(header, stream, next) {
40
41
  // Guard: skip if iterator already ended (stale lock)
41
42
  if (!iterator.lock || iterator.isDone()) {
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/nextEntry.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport { DirectoryEntry, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';\nimport path from 'path';\nimport FileEntry from './FileEntry.ts';\nimport type Iterator from './TarIterator.ts';\n\nimport type { Entry, EntryCallback } from './types.ts';\n\n// Node 0.8 compatible setImmediate (setImmediate was added in Node 0.10)\nconst _setImmediate =\n typeof setImmediate === 'function'\n ? setImmediate\n : typeof process !== 'undefined' && typeof process.nextTick === 'function'\n ? process.nextTick\n : function setImmediateFallback(fn: () => void) {\n setTimeout(fn, 0);\n };\n\nexport type TarNext = () => undefined;\nexport type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;\n\nexport default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined {\n // Guard: bail early if iterator already ended\n if (!iterator.lock || iterator.isDone()) {\n return callback(null, { done: true, value: null });\n }\n\n const extract = iterator.extract;\n if (!extract) return callback(new Error('Extract missing'));\n\n const nextCallback = once((err?: Error, entry?: Entry, next?: TarNext) => {\n extract.removeListener('entry', onEntry);\n extract.removeListener('error', onError);\n extract.removeListener('finish', onEnd);\n\n // keep processing\n if (entry) iterator.push(nextEntry.bind(null, next));\n\n // Use setImmediate to defer the callback invocation\n // This ensures proper async behavior with the BaseIterator\n _setImmediate(() => {\n err ? callback(err) : callback(null, entry ? { done: false, value: entry } : { done: true, value: null });\n });\n }) as NextCallback;\n\n const onError = callback;\n const onEnd = callback.bind(null, null);\n const onEntry = function onEntry(header, stream, next: TarNext) {\n // Guard: skip if iterator already ended (stale lock)\n if (!iterator.lock || iterator.isDone()) {\n stream.resume(); // drain stream\n return nextCallback(null, null, next);\n }\n\n const attributes = { ...header };\n attributes.path = header.name.split(path.sep).filter(Boolean).join(path.sep);\n attributes.mtime = new Date(attributes.mtime);\n\n switch (attributes.type) {\n case 'directory':\n stream.resume(); // drain stream\n return nextCallback(null, new DirectoryEntry(attributes), next);\n case 'symlink':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new SymbolicLinkEntry(attributes), next);\n case 'link':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new LinkEntry(attributes), next);\n case 'file':\n return nextCallback(null, new FileEntry(attributes, stream, iterator.lock), next);\n }\n\n stream.resume(); // drain stream\n return nextCallback(new Error(`Unrecognized entry type: ${attributes.type}`), null, next);\n };\n\n extract.on('entry', onEntry);\n extract.on('error', onError);\n extract.on('finish', onEnd);\n\n // Resume parsing to emit any pending entry\n // For first call (next is null), this triggers the first entry emission\n // For subsequent calls, next() unlocks the parser which then processes the next header\n if (next) {\n next();\n } else {\n // First call - resume to emit any pending entry\n extract.resume();\n }\n}\n"],"names":["once","DirectoryEntry","LinkEntry","SymbolicLinkEntry","path","FileEntry","_setImmediate","setImmediate","process","nextTick","setImmediateFallback","fn","setTimeout","nextEntry","next","iterator","callback","lock","isDone","done","value","extract","Error","nextCallback","err","entry","removeListener","onEntry","onError","onEnd","push","bind","header","stream","resume","attributes","name","split","sep","filter","Boolean","join","mtime","Date","type","linkpath","linkname","on"],"mappings":"AAAA,OAAOA,UAAU,eAAe;AAChC,SAASC,cAAc,EAAEC,SAAS,EAAEC,iBAAiB,QAAQ,wBAAwB;AACrF,OAAOC,UAAU,OAAO;AACxB,OAAOC,eAAe,iBAAiB;AAKvC,yEAAyE;AACzE,MAAMC,gBACJ,OAAOC,iBAAiB,aACpBA,eACA,OAAOC,YAAY,eAAe,OAAOA,QAAQC,QAAQ,KAAK,aAC5DD,QAAQC,QAAQ,GAChB,SAASC,qBAAqBC,EAAc;IAC1CC,WAAWD,IAAI;AACjB;AAKR,eAAe,SAASE,UAAUC,IAAa,EAAEC,QAAkB,EAAEC,QAAuB;IAC1F,8CAA8C;IAC9C,IAAI,CAACD,SAASE,IAAI,IAAIF,SAASG,MAAM,IAAI;QACvC,OAAOF,SAAS,MAAM;YAAEG,MAAM;YAAMC,OAAO;QAAK;IAClD;IAEA,MAAMC,UAAUN,SAASM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AkBgC,aAAarB;YAC/D,KAAK;gBACHmB,OAAOC,MAAM,IAAI,eAAe;gBAChCC,WAAWU,QAAQ,GAAGb,OAAOc,QAAQ;gBACrC,OAAOvB,aAAa,MAAM,IAAIrB,UAAUiC,aAAarB;YACvD,KAAK;gBACH,OAAOS,aAAa,MAAM,IAAIlB,UAAU8B,YAAYF,QAAQlB,SAASE,IAAI,GAAGH;QAChF;QAEAmB,OAAOC,MAAM,IAAI,eAAe;QAChC,OAAOX,aAAa,IAAID,MAAM,CAAC,yBAAyB,EAAEa,WAAWS,IAAI,EAAE,GAAG,MAAM9B;IACtF;IAEAO,QAAQ0B,EAAE,CAAC,SAASpB;IACpBN,QAAQ0B,EAAE,CAAC,SAASnB;IACpBP,QAAQ0B,EAAE,CAAC,UAAUlB;IAErB,2CAA2C;IAC3C,wEAAwE;IACxE,uFAAuF;IACvF,IAAIf,MAAM;QACRA;IACF,OAAO;QACL,gDAAgD;QAChDO,QAAQa,MAAM;IAChB;AACF"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/nextEntry.ts"],"sourcesContent":["import once from 'call-once-fn';\nimport { DirectoryEntry, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';\nimport path from 'path';\nimport FileEntry from './FileEntry.ts';\nimport type Iterator from './TarIterator.ts';\n\nimport type { Entry, EntryCallback } from './types.ts';\n\n// Node 0.8 compatible setImmediate (setImmediate was added in Node 0.10)\nconst _setImmediate =\n typeof setImmediate === 'function'\n ? setImmediate\n : typeof process !== 'undefined' && typeof process.nextTick === 'function'\n ? process.nextTick\n : function setImmediateFallback(fn: () => void) {\n setTimeout(fn, 0);\n };\n\nexport type TarNext = () => undefined;\nexport type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;\n\nexport default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined {\n // Guard: bail early if iterator already ended\n if (!iterator.lock || iterator.isDone()) {\n return callback(null, { done: true, value: null });\n }\n\n const extract = iterator.extract;\n if (!extract) return callback(new Error('Extract missing'));\n\n const nextCallback = once((err?: Error, entry?: Entry, next?: TarNext) => {\n extract.removeListener('entry', onEntry);\n extract.removeListener('error', onError);\n extract.removeListener('finish', onEnd);\n\n // keep processing\n if (entry) iterator.push(nextEntry.bind(null, next));\n\n // Use setImmediate to defer the callback invocation\n // This ensures proper async behavior with the BaseIterator\n _setImmediate(() => {\n err ? callback(err) : callback(null, entry ? { done: false, value: entry } : { done: true, value: null });\n });\n }) as NextCallback;\n\n // Use nextCallback for all events to ensure once() wrapper is respected\n const onError = (err: Error) => nextCallback(err);\n const onEnd = () => nextCallback();\n const onEntry = function onEntry(header, stream, next: TarNext) {\n // Guard: skip if iterator already ended (stale lock)\n if (!iterator.lock || iterator.isDone()) {\n stream.resume(); // drain stream\n return nextCallback(null, null, next);\n }\n\n const attributes = { ...header };\n attributes.path = header.name.split(path.sep).filter(Boolean).join(path.sep);\n attributes.mtime = new Date(attributes.mtime);\n\n switch (attributes.type) {\n case 'directory':\n stream.resume(); // drain stream\n return nextCallback(null, new DirectoryEntry(attributes), next);\n case 'symlink':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new SymbolicLinkEntry(attributes), next);\n case 'link':\n stream.resume(); // drain stream\n attributes.linkpath = header.linkname;\n return nextCallback(null, new LinkEntry(attributes), next);\n case 'file':\n return nextCallback(null, new FileEntry(attributes, stream, iterator.lock), next);\n }\n\n stream.resume(); // drain stream\n return nextCallback(new Error(`Unrecognized entry type: ${attributes.type}`), null, next);\n };\n\n extract.on('entry', onEntry);\n extract.on('error', onError);\n extract.on('finish', onEnd);\n\n // Resume parsing to emit any pending entry\n // For first call (next is null), this triggers the first entry emission\n // For subsequent calls, next() unlocks the parser which then processes the next header\n if (next) {\n next();\n } else {\n // First call - resume to emit any pending entry\n extract.resume();\n }\n}\n"],"names":["once","DirectoryEntry","LinkEntry","SymbolicLinkEntry","path","FileEntry","_setImmediate","setImmediate","process","nextTick","setImmediateFallback","fn","setTimeout","nextEntry","next","iterator","callback","lock","isDone","done","value","extract","Error","nextCallback","err","entry","removeListener","onEntry","onError","onEnd","push","bind","header","stream","resume","attributes","name","split","sep","filter","Boolean","join","mtime","Date","type","linkpath","linkname","on"],"mappings":"AAAA,OAAOA,UAAU,eAAe;AAChC,SAASC,cAAc,EAAEC,SAAS,EAAEC,iBAAiB,QAAQ,wBAAwB;AACrF,OAAOC,UAAU,OAAO;AACxB,OAAOC,eAAe,iBAAiB;AAKvC,yEAAyE;AACzE,MAAMC,gBACJ,OAAOC,iBAAiB,aACpBA,eACA,OAAOC,YAAY,eAAe,OAAOA,QAAQC,QAAQ,KAAK,aAC5DD,QAAQC,QAAQ,GAChB,SAASC,qBAAqBC,EAAc;IAC1CC,WAAWD,IAAI;AACjB;AAKR,eAAe,SAASE,UAAUC,IAAa,EAAEC,QAAkB,EAAEC,QAAuB;IAC1F,8CAA8C;IAC9C,IAAI,CAACD,SAASE,IAAI,IAAIF,SAASG,MAAM,IAAI;QACvC,OAAOF,SAAS,MAAM;YAAEG,MAAM;YAAMC,OAAO;QAAK;IAClD;IAEA,MAAMC,UAAUN,SAASM,OAAO;IAChC,IAAI,CAACA,SAAS,OAAOL,SAAS,IAAIM,MAAM;IAExC,MAAMC,eAAevB,KAAK,CAACwB,KAAaC,OAAeX;QACrDO,QAAQK,cAAc,CAAC,SAASC;QAChCN,QAAQK,cAAc,CAAC,SAASE;QAChCP,QAAQK,cAAc,CAAC,UAAUG;QAEjC,kBAAkB;QAClB,IAAIJ,OAAOV,SAASe,IAAI,CAACjB,UAAUkB,IAAI,CAAC,MAAMjB;QAE9C,oDAAoD;QACpD,2DAA2D;QAC3DR,cAAc;YACZkB,MAAMR,SAASQ,OAAOR,SAAS,MAAMS,QAAQ;gBAAEN,MAAM;gBAAOC,OAAOK;YAAM,IAAI;gBAAEN,MAAM;gBAAMC,OAAO;YAAK;QACzG;IACF;IAEA,wEAAwE;IACxE,MAAMQ,UAAU,CAACJ,M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A2C;IAC3C,wEAAwE;IACxE,uFAAuF;IACvF,IAAIf,MAAM;QACRA;IACF,OAAO;QACL,gDAAgD;QAChDO,QAAQa,MAAM;IAChB;AACF"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * TAR Error Codes for programmatic error handling
3
3
  *
4
- * Node 0.8 compatible - uses var and object literals.
4
+ * Node 0.8 compatible - uses let and object literals.
5
5
  */
6
6
  /**
7
7
  * Error with a code property for programmatic handling
@@ -12,7 +12,7 @@ export interface TarCodedError extends Error {
12
12
  /**
13
13
  * TAR-specific error codes for user-facing errors
14
14
  */
15
- export declare var TarErrorCode: {
15
+ export declare const TarErrorCode: {
16
16
  /** Invalid tar header checksum - archive may be corrupted or needs decompression */
17
17
  INVALID_CHECKSUM: string;
18
18
  /** Unknown tar format - not USTAR, GNU, or V7 */
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * TAR Error Codes for programmatic error handling
3
3
  *
4
- * Node 0.8 compatible - uses var and object literals.
4
+ * Node 0.8 compatible - uses let and object literals.
5
5
  */ /**
6
6
  * Error with a code property for programmatic handling
7
7
  */ /**
8
8
  * TAR-specific error codes for user-facing errors
9
- */ export var TarErrorCode = {
9
+ */ export const TarErrorCode = {
10
10
  /** Invalid tar header checksum - archive may be corrupted or needs decompression */ INVALID_CHECKSUM: 'TAR_INVALID_CHECKSUM',
11
11
  /** Unknown tar format - not USTAR, GNU, or V7 */ INVALID_FORMAT: 'TAR_INVALID_FORMAT'
12
12
  };
@@ -17,7 +17,7 @@
17
17
  * @param code - Error code from TarErrorCode
18
18
  * @returns Error with code property
19
19
  */ export function createTarError(message, code) {
20
- var err = new Error(message);
20
+ const err = new Error(message);
21
21
  err.code = code;
22
22
  return err;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/tar/errors.ts"],"sourcesContent":["/**\n * TAR Error Codes for programmatic error handling\n *\n * Node 0.8 compatible - uses var and object literals.\n */\n\n/**\n * Error with a code property for programmatic handling\n */\nexport interface TarCodedError extends Error {\n code: string;\n}\n\n/**\n * TAR-specific error codes for user-facing errors\n */\nexport var TarErrorCode = {\n /** Invalid tar header checksum - archive may be corrupted or needs decompression */\n INVALID_CHECKSUM: 'TAR_INVALID_CHECKSUM',\n /** Unknown tar format - not USTAR, GNU, or V7 */\n INVALID_FORMAT: 'TAR_INVALID_FORMAT',\n};\n\n/**\n * Create an error with a code property\n *\n * @param message - Human-readable error message\n * @param code - Error code from TarErrorCode\n * @returns Error with code property\n */\nexport function createTarError(message: string, code: string): TarCodedError {\n var err = new Error(message) as TarCodedError;\n err.code = code;\n return err;\n}\n"],"names":["TarErrorCode","INVALID_CHECKSUM","INVALID_FORMAT","createTarError","message","code","err","Error"],"mappings":"AAAA;;;;CAIC,GAED;;CAEC,GAKD;;CAEC,GACD,OAAO,IAAIA,eAAe;IACxB,kFAAkF,GAClFC,kBAAkB;IAClB,+CAA+C,GAC/CC,gBAAgB;AAClB,EAAE;AAEF;;;;;;CAMC,GACD,OAAO,SAASC,eAAeC,OAAe,EAAEC,IAAY;IAC1D,IAAIC,MAAM,IAAIC,MAAMH;IACpBE,IAAID,IAAI,GAAGA;IACX,OAAOC;AACT"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/tar-iterator/src/tar/errors.ts"],"sourcesContent":["/**\n * TAR Error Codes for programmatic error handling\n *\n * Node 0.8 compatible - uses let and object literals.\n */\n\n/**\n * Error with a code property for programmatic handling\n */\nexport interface TarCodedError extends Error {\n code: string;\n}\n\n/**\n * TAR-specific error codes for user-facing errors\n */\nexport const TarErrorCode = {\n /** Invalid tar header checksum - archive may be corrupted or needs decompression */\n INVALID_CHECKSUM: 'TAR_INVALID_CHECKSUM',\n /** Unknown tar format - not USTAR, GNU, or V7 */\n INVALID_FORMAT: 'TAR_INVALID_FORMAT',\n};\n\n/**\n * Create an error with a code property\n *\n * @param message - Human-readable error message\n * @param code - Error code from TarErrorCode\n * @returns Error with code property\n */\nexport function createTarError(message: string, code: string): TarCodedError {\n const err = new Error(message) as TarCodedError;\n err.code = code;\n return err;\n}\n"],"names":["TarErrorCode","INVALID_CHECKSUM","INVALID_FORMAT","createTarError","message","code","err","Error"],"mappings":"AAAA;;;;CAIC,GAED;;CAEC,GAKD;;CAEC,GACD,OAAO,MAAMA,eAAe;IAC1B,kFAAkF,GAClFC,kBAAkB;IAClB,+CAA+C,GAC/CC,gBAAgB;AAClB,EAAE;AAEF;;;;;;CAMC,GACD,OAAO,SAASC,eAAeC,OAAe,EAAEC,IAAY;IAC1D,MAAMC,MAAM,IAAIC,MAAMH;IACtBE,IAAID,IAAI,GAAGA;IACX,OAAOC;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tar-iterator",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "description": "Extract contents from tar archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms",
5
5
  "keywords": [
6
6
  "extract",
@@ -61,25 +61,25 @@
61
61
  "version": "tsds version"
62
62
  },
63
63
  "dependencies": {
64
- "call-once-fn": "*",
65
- "extract-base-iterator": "*",
66
- "on-one": "*"
64
+ "call-once-fn": "^1.1.8",
65
+ "extract-base-iterator": "^2.4.12",
66
+ "on-one": "^1.0.8"
67
67
  },
68
68
  "devDependencies": {
69
- "@types/mocha": "*",
70
- "@types/node": "*",
71
- "cr": "*",
72
- "fs-iterator": "*",
73
- "fs-remove-compat": "*",
74
- "fs-stats-spys": "*",
75
- "mkdirp-classic": "*",
76
- "node-version-use": "*",
77
- "pinkie-promise": "*",
78
- "queue-cb": "*",
79
- "through": "*",
80
- "ts-dev-stack": "*",
81
- "tsds-config": "*",
82
- "unbzip2-stream": "*"
69
+ "@types/mocha": "^10.0.10",
70
+ "@types/node": "^25.0.1",
71
+ "cr": "^0.1.0",
72
+ "fs-iterator": "^6.1.10",
73
+ "fs-remove-compat": "^0.2.1",
74
+ "fs-stats-spys": "^1.2.7",
75
+ "mkdirp-classic": "^0.5.3",
76
+ "node-version-use": "^2.1.5",
77
+ "pinkie-promise": "^2.0.1",
78
+ "queue-cb": "^1.6.1",
79
+ "through": "^2.3.8",
80
+ "ts-dev-stack": "^1.21.3",
81
+ "tsds-config": "^0.2.1",
82
+ "unbzip2-stream": "^1.4.3"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=0.8"