tar-iterator 3.1.6 → 3.1.8

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.
@@ -146,4 +146,4 @@ var TarFileEntry = /*#__PURE__*/ function(FileEntry) {
146
146
  };
147
147
  return TarFileEntry;
148
148
  }(_extractbaseiterator.FileEntry);
149
- /* 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; }
149
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -145,4 +145,4 @@ var TarIterator = /*#__PURE__*/ function(BaseIterator) {
145
145
  };
146
146
  return TarIterator;
147
147
  }(_extractbaseiterator.default);
148
- /* 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; }
148
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
package/dist/cjs/index.js CHANGED
@@ -37,4 +37,4 @@ function _interop_require_default(obj) {
37
37
  default: obj
38
38
  };
39
39
  }
40
- /* 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; }
40
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -59,4 +59,4 @@ var Lock = /*#__PURE__*/ function() {
59
59
  };
60
60
  return Lock;
61
61
  }();
62
- /* 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; }
62
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -124,4 +124,4 @@ function nextEntry(next, iterator, callback) {
124
124
  extract.resume();
125
125
  }
126
126
  }
127
- /* 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; }
127
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -19,4 +19,4 @@ _export(exports, {
19
19
  }
20
20
  });
21
21
  var _extractbaseiterator = require("extract-base-iterator");
22
- /* 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; }
22
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -605,4 +605,4 @@ var TarExtract = /*#__PURE__*/ function(EventEmitter) {
605
605
  };
606
606
  return TarExtract;
607
607
  }(_events.EventEmitter);
608
- /* 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; }
608
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -285,4 +285,4 @@ var TYPE_GNU_MULTIVOL = 77; // 'M' - GNU multi-volume continuation
285
285
  var TYPE_GNU_VOLHDR = 86; // 'V' - GNU volume header
286
286
  var TYPE_PAX_HEADER = 120; // 'x' - PAX extended header for next entry
287
287
  var TYPE_PAX_GLOBAL = 103; // 'g' - PAX global extended header
288
- /* 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; }
288
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -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";
@@ -31,4 +31,4 @@ function createTarError(message, code) {
31
31
  err.code = code;
32
32
  return err;
33
33
  }
34
- /* 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; }
34
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -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"}
@@ -282,4 +282,4 @@ function overflow(size) {
282
282
  var remainder = size & 511; // size % 512
283
283
  return remainder ? 512 - remainder : 0;
284
284
  }
285
- /* 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; }
285
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -42,4 +42,4 @@ function _interop_require_default(obj) {
42
42
  default: obj
43
43
  };
44
44
  }
45
- /* 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; }
45
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -269,4 +269,4 @@ var SparseStream = /*#__PURE__*/ function(EntryStream) {
269
269
  };
270
270
  return SparseStream;
271
271
  }(_EntryStreamts.default);
272
- /* 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; }
272
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
package/dist/cjs/types.js CHANGED
@@ -29,4 +29,4 @@ function _interop_require_default(obj) {
29
29
  default: obj
30
30
  };
31
31
  }
32
- /* 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; }
32
+ /* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (let key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }
@@ -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.6",
3
+ "version": "3.1.8",
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.9",
65
+ "extract-base-iterator": "^2.4.12",
66
+ "on-one": "^1.0.9"
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.2",
74
+ "fs-stats-spys": "^1.2.8",
75
+ "mkdirp-classic": "^0.5.3",
76
+ "node-version-use": "^2.1.5",
77
+ "pinkie-promise": "^2.0.1",
78
+ "queue-cb": "^1.6.2",
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"