tar-iterator 2.2.6 → 2.2.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.
- package/dist/cjs/FileEntry.d.ts +2 -2
- package/dist/cjs/TarIterator.d.ts +2 -2
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/nextEntry.d.ts +2 -2
- package/dist/cjs/types.d.ts +2 -2
- package/dist/esm/FileEntry.d.ts +2 -2
- package/dist/esm/TarIterator.d.ts +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/nextEntry.d.ts +2 -2
- package/dist/esm/types.d.ts +2 -2
- package/package.json +2 -2
- package/dist/cjs/FileEntry.d.cts +0 -11
- package/dist/cjs/TarIterator.d.cts +0 -9
- package/dist/cjs/index.d.cts +0 -2
- package/dist/cjs/lib/Lock.d.cts +0 -9
- package/dist/cjs/nextEntry.d.cts +0 -5
- package/dist/cjs/types.d.cts +0 -5
package/dist/cjs/FileEntry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FileAttributes, FileEntry, type NoParamCallback } from 'extract-base-iterator';
|
|
2
|
-
import type Lock from './lib/Lock.
|
|
3
|
-
import type { ExtractOptions } from './types.
|
|
2
|
+
import type Lock from './lib/Lock.js';
|
|
3
|
+
import type { ExtractOptions } from './types.js';
|
|
4
4
|
export default class TarFileEntry extends FileEntry {
|
|
5
5
|
private lock;
|
|
6
6
|
private stream;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BaseIterator from 'extract-base-iterator';
|
|
2
|
-
import Lock from './lib/Lock.
|
|
3
|
-
import type { ExtractOptions } from './types.
|
|
2
|
+
import Lock from './lib/Lock.js';
|
|
3
|
+
import type { ExtractOptions } from './types.js';
|
|
4
4
|
export default class TarIterator extends BaseIterator {
|
|
5
5
|
lock: Lock;
|
|
6
6
|
extract: NodeJS.WritableStream;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './TarIterator.
|
|
2
|
-
export * from './types.
|
|
1
|
+
export { default } from './TarIterator.js';
|
|
2
|
+
export * from './types.js';
|
package/dist/cjs/nextEntry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Iterator from './TarIterator.
|
|
2
|
-
import type { Entry, EntryCallback } from './types.
|
|
1
|
+
import type Iterator from './TarIterator.js';
|
|
2
|
+
import type { Entry, EntryCallback } from './types.js';
|
|
3
3
|
export type TarNext = () => undefined;
|
|
4
4
|
export type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;
|
|
5
5
|
export default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined;
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DirectoryEntry, type Entry, type ExtractOptions, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';
|
|
2
|
-
export { default as FileEntry } from './FileEntry.
|
|
3
|
-
export type { default as Lock } from './lib/Lock.
|
|
2
|
+
export { default as FileEntry } from './FileEntry.js';
|
|
3
|
+
export type { default as Lock } from './lib/Lock.js';
|
|
4
4
|
import type { Entry } from 'extract-base-iterator';
|
|
5
5
|
export type EntryCallback = (error?: Error, result?: IteratorResult<Entry>) => undefined;
|
package/dist/esm/FileEntry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FileAttributes, FileEntry, type NoParamCallback } from 'extract-base-iterator';
|
|
2
|
-
import type Lock from './lib/Lock.
|
|
3
|
-
import type { ExtractOptions } from './types.
|
|
2
|
+
import type Lock from './lib/Lock.js';
|
|
3
|
+
import type { ExtractOptions } from './types.js';
|
|
4
4
|
export default class TarFileEntry extends FileEntry {
|
|
5
5
|
private lock;
|
|
6
6
|
private stream;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BaseIterator from 'extract-base-iterator';
|
|
2
|
-
import Lock from './lib/Lock.
|
|
3
|
-
import type { ExtractOptions } from './types.
|
|
2
|
+
import Lock from './lib/Lock.js';
|
|
3
|
+
import type { ExtractOptions } from './types.js';
|
|
4
4
|
export default class TarIterator extends BaseIterator {
|
|
5
5
|
lock: Lock;
|
|
6
6
|
extract: NodeJS.WritableStream;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './TarIterator.
|
|
2
|
-
export * from './types.
|
|
1
|
+
export { default } from './TarIterator.js';
|
|
2
|
+
export * from './types.js';
|
package/dist/esm/nextEntry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Iterator from './TarIterator.
|
|
2
|
-
import type { Entry, EntryCallback } from './types.
|
|
1
|
+
import type Iterator from './TarIterator.js';
|
|
2
|
+
import type { Entry, EntryCallback } from './types.js';
|
|
3
3
|
export type TarNext = () => undefined;
|
|
4
4
|
export type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;
|
|
5
5
|
export default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DirectoryEntry, type Entry, type ExtractOptions, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';
|
|
2
|
-
export { default as FileEntry } from './FileEntry.
|
|
3
|
-
export type { default as Lock } from './lib/Lock.
|
|
2
|
+
export { default as FileEntry } from './FileEntry.js';
|
|
3
|
+
export type { default as Lock } from './lib/Lock.js';
|
|
4
4
|
import type { Entry } from 'extract-base-iterator';
|
|
5
5
|
export type EntryCallback = (error?: Error, result?: IteratorResult<Entry>) => undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tar-iterator",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"./package.json": "./package.json"
|
|
48
48
|
},
|
|
49
49
|
"main": "dist/cjs/index.js",
|
|
50
|
-
"types": "dist/cjs/index.d.
|
|
50
|
+
"types": "dist/cjs/index.d.ts",
|
|
51
51
|
"files": [
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
package/dist/cjs/FileEntry.d.cts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type FileAttributes, FileEntry, type NoParamCallback } from 'extract-base-iterator';
|
|
2
|
-
import type Lock from './lib/Lock.ts';
|
|
3
|
-
import type { ExtractOptions } from './types.ts';
|
|
4
|
-
export default class TarFileEntry extends FileEntry {
|
|
5
|
-
private lock;
|
|
6
|
-
private stream;
|
|
7
|
-
constructor(attributes: FileAttributes, stream: NodeJS.ReadableStream, lock: Lock);
|
|
8
|
-
create(dest: string, options: ExtractOptions | NoParamCallback, callback: NoParamCallback): undefined | Promise<boolean>;
|
|
9
|
-
_writeFile(fullPath: string, _options: ExtractOptions, callback: NoParamCallback): undefined;
|
|
10
|
-
destroy(): void;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import BaseIterator from 'extract-base-iterator';
|
|
2
|
-
import Lock from './lib/Lock.ts';
|
|
3
|
-
import type { ExtractOptions } from './types.ts';
|
|
4
|
-
export default class TarIterator extends BaseIterator {
|
|
5
|
-
lock: Lock;
|
|
6
|
-
extract: NodeJS.WritableStream;
|
|
7
|
-
constructor(source: string | NodeJS.ReadableStream, options?: ExtractOptions);
|
|
8
|
-
end(err?: Error): void;
|
|
9
|
-
}
|
package/dist/cjs/index.d.cts
DELETED
package/dist/cjs/lib/Lock.d.cts
DELETED
package/dist/cjs/nextEntry.d.cts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type Iterator from './TarIterator.ts';
|
|
2
|
-
import type { Entry, EntryCallback } from './types.ts';
|
|
3
|
-
export type TarNext = () => undefined;
|
|
4
|
-
export type NextCallback = (error?: Error, entry?: Entry, next?: TarNext) => undefined;
|
|
5
|
-
export default function nextEntry(next: TarNext, iterator: Iterator, callback: EntryCallback): undefined;
|
package/dist/cjs/types.d.cts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DirectoryEntry, type Entry, type ExtractOptions, LinkEntry, SymbolicLinkEntry } from 'extract-base-iterator';
|
|
2
|
-
export { default as FileEntry } from './FileEntry.ts';
|
|
3
|
-
export type { default as Lock } from './lib/Lock.ts';
|
|
4
|
-
import type { Entry } from 'extract-base-iterator';
|
|
5
|
-
export type EntryCallback = (error?: Error, result?: IteratorResult<Entry>) => undefined;
|