tar-iterator 3.1.6 → 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.
- package/dist/cjs/tar/errors.d.cts +2 -2
- package/dist/cjs/tar/errors.d.ts +2 -2
- package/dist/cjs/tar/errors.js +1 -1
- package/dist/cjs/tar/errors.js.map +1 -1
- package/dist/esm/tar/errors.d.ts +2 -2
- package/dist/esm/tar/errors.js +3 -3
- package/dist/esm/tar/errors.js.map +1 -1
- package/package.json +18 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TAR Error Codes for programmatic error handling
|
|
3
3
|
*
|
|
4
|
-
* Node 0.8 compatible - uses
|
|
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
|
|
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 */
|
package/dist/cjs/tar/errors.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TAR Error Codes for programmatic error handling
|
|
3
3
|
*
|
|
4
|
-
* Node 0.8 compatible - uses
|
|
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
|
|
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 */
|
package/dist/cjs/tar/errors.js
CHANGED
|
@@ -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
|
|
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"}
|
package/dist/esm/tar/errors.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TAR Error Codes for programmatic error handling
|
|
3
3
|
*
|
|
4
|
-
* Node 0.8 compatible - uses
|
|
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
|
|
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 */
|
package/dist/esm/tar/errors.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TAR Error Codes for programmatic error handling
|
|
3
3
|
*
|
|
4
|
-
* Node 0.8 compatible - uses
|
|
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
|
|
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
|
-
|
|
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
|
|
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.
|
|
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"
|