extract-base-iterator 2.2.3 → 2.2.5
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/DirectoryEntry.d.ts +1 -1
- package/dist/cjs/FileEntry.d.ts +1 -1
- package/dist/cjs/LinkEntry.d.ts +1 -1
- package/dist/cjs/SymbolicLinkEntry.d.ts +1 -1
- package/dist/cjs/fs/chmod.d.ts +1 -1
- package/dist/cjs/fs/chown.d.ts +1 -1
- package/dist/cjs/fs/utimes.d.ts +1 -1
- package/dist/cjs/index.d.ts +8 -8
- package/dist/cjs/stripPath.d.ts +1 -1
- package/dist/cjs/types.d.ts +4 -4
- package/dist/cjs/waitForAccess.d.ts +1 -1
- package/dist/esm/DirectoryEntry.d.ts +1 -1
- package/dist/esm/FileEntry.d.ts +1 -1
- package/dist/esm/LinkEntry.d.ts +1 -1
- package/dist/esm/SymbolicLinkEntry.d.ts +1 -1
- package/dist/esm/fs/chmod.d.ts +1 -1
- package/dist/esm/fs/chown.d.ts +1 -1
- package/dist/esm/fs/utimes.d.ts +1 -1
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/stripPath.d.ts +1 -1
- package/dist/esm/types.d.ts +4 -4
- package/dist/esm/waitForAccess.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cjs/DirectoryEntry.d.cts +0 -12
- package/dist/cjs/FileEntry.d.cts +0 -12
- package/dist/cjs/LinkEntry.d.cts +0 -13
- package/dist/cjs/SymbolicLinkEntry.d.cts +0 -13
- package/dist/cjs/fs/chmod.d.cts +0 -3
- package/dist/cjs/fs/chown.d.cts +0 -3
- package/dist/cjs/fs/lstatReal.d.cts +0 -3
- package/dist/cjs/fs/symlinkWin32.d.cts +0 -2
- package/dist/cjs/fs/utimes.d.cts +0 -3
- package/dist/cjs/index.d.cts +0 -11
- package/dist/cjs/polyfills.d.cts +0 -1
- package/dist/cjs/stripPath.d.cts +0 -2
- package/dist/cjs/types.d.cts +0 -40
- package/dist/cjs/validateAttributes.d.cts +0 -1
- package/dist/cjs/waitForAccess.d.cts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mode } from 'fs';
|
|
2
|
-
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.
|
|
2
|
+
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.js';
|
|
3
3
|
export default class DirectoryEntry {
|
|
4
4
|
mode: Mode;
|
|
5
5
|
mtime: number;
|
package/dist/cjs/FileEntry.d.ts
CHANGED
package/dist/cjs/LinkEntry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mode } from 'fs';
|
|
2
|
-
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.
|
|
2
|
+
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';
|
|
3
3
|
export default class SymbolicLinkEntry {
|
|
4
4
|
mode: Mode;
|
|
5
5
|
mtime: number;
|
package/dist/cjs/fs/chmod.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NoParamCallback } from 'fs';
|
|
2
|
-
import type { AbstractEntry, ExtractOptions } from '../types.
|
|
2
|
+
import type { AbstractEntry, ExtractOptions } from '../types.js';
|
|
3
3
|
export default function chmodFn(fullPath: string, entry: AbstractEntry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/cjs/fs/chown.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NoParamCallback } from 'fs';
|
|
2
|
-
import type { AbstractEntry, ExtractOptions } from '../types.
|
|
2
|
+
import type { AbstractEntry, ExtractOptions } from '../types.js';
|
|
3
3
|
export default function chownFn(fullPath: string, entry: AbstractEntry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/cjs/fs/utimes.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NoParamCallback } from 'fs';
|
|
2
|
-
import type { AbstractEntry, ExtractOptions } from '../types.
|
|
2
|
+
import type { AbstractEntry, ExtractOptions } from '../types.js';
|
|
3
3
|
export default function utimes(fullPath: string, entry: AbstractEntry, options: ExtractOptions, callback: NoParamCallback): undefined;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import './polyfills.
|
|
1
|
+
import './polyfills.js';
|
|
2
2
|
import StackBaseIterator from 'stack-base-iterator';
|
|
3
|
-
import type { Entry } from './types.
|
|
3
|
+
import type { Entry } from './types.js';
|
|
4
4
|
export default class ExtractBaseIterator extends StackBaseIterator<Entry> {
|
|
5
5
|
}
|
|
6
|
-
export { default as DirectoryEntry } from './DirectoryEntry.
|
|
7
|
-
export { default as FileEntry } from './FileEntry.
|
|
8
|
-
export { default as LinkEntry } from './LinkEntry.
|
|
9
|
-
export { default as SymbolicLinkEntry } from './SymbolicLinkEntry.
|
|
10
|
-
export * from './types.
|
|
11
|
-
export { default as waitForAccess } from './waitForAccess.
|
|
6
|
+
export { default as DirectoryEntry } from './DirectoryEntry.js';
|
|
7
|
+
export { default as FileEntry } from './FileEntry.js';
|
|
8
|
+
export { default as LinkEntry } from './LinkEntry.js';
|
|
9
|
+
export { default as SymbolicLinkEntry } from './SymbolicLinkEntry.js';
|
|
10
|
+
export * from './types.js';
|
|
11
|
+
export { default as waitForAccess } from './waitForAccess.js';
|
package/dist/cjs/stripPath.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ExtractOptions } from './types.
|
|
1
|
+
import type { ExtractOptions } from './types.js';
|
|
2
2
|
export default function stripPath(relativePath: string, options: ExtractOptions): string;
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ export interface LinkAttributes {
|
|
|
23
23
|
path: string;
|
|
24
24
|
linkpath: string;
|
|
25
25
|
}
|
|
26
|
-
import type { default as DirectoryEntry } from './DirectoryEntry.
|
|
27
|
-
import type { default as FileEntry } from './FileEntry.
|
|
28
|
-
import type { default as LinkEntry } from './LinkEntry.
|
|
29
|
-
import type { default as SymbolicLinkEntry } from './SymbolicLinkEntry.
|
|
26
|
+
import type { default as DirectoryEntry } from './DirectoryEntry.js';
|
|
27
|
+
import type { default as FileEntry } from './FileEntry.js';
|
|
28
|
+
import type { default as LinkEntry } from './LinkEntry.js';
|
|
29
|
+
import type { default as SymbolicLinkEntry } from './SymbolicLinkEntry.js';
|
|
30
30
|
export type Entry = DirectoryEntry | FileEntry | LinkEntry | SymbolicLinkEntry;
|
|
31
31
|
export interface AbstractEntry {
|
|
32
32
|
mode: Mode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { NoParamCallback } from './types.
|
|
1
|
+
import type { NoParamCallback } from './types.js';
|
|
2
2
|
export default function waitForAccess(fullPath: string, callback: NoParamCallback): undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mode } from 'fs';
|
|
2
|
-
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.
|
|
2
|
+
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.js';
|
|
3
3
|
export default class DirectoryEntry {
|
|
4
4
|
mode: Mode;
|
|
5
5
|
mtime: number;
|
package/dist/esm/FileEntry.d.ts
CHANGED
package/dist/esm/LinkEntry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mode } from 'fs';
|
|
2
|
-
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.
|
|
2
|
+
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.js';
|
|
3
3
|
export default class SymbolicLinkEntry {
|
|
4
4
|
mode: Mode;
|
|
5
5
|
mtime: number;
|
package/dist/esm/fs/chmod.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NoParamCallback } from 'fs';
|
|
2
|
-
import type { AbstractEntry, ExtractOptions } from '../types.
|
|
2
|
+
import type { AbstractEntry, ExtractOptions } from '../types.js';
|
|
3
3
|
export default function chmodFn(fullPath: string, entry: AbstractEntry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/esm/fs/chown.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NoParamCallback } from 'fs';
|
|
2
|
-
import type { AbstractEntry, ExtractOptions } from '../types.
|
|
2
|
+
import type { AbstractEntry, ExtractOptions } from '../types.js';
|
|
3
3
|
export default function chownFn(fullPath: string, entry: AbstractEntry, _options: ExtractOptions, callback: NoParamCallback): void;
|
package/dist/esm/fs/utimes.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NoParamCallback } from 'fs';
|
|
2
|
-
import type { AbstractEntry, ExtractOptions } from '../types.
|
|
2
|
+
import type { AbstractEntry, ExtractOptions } from '../types.js';
|
|
3
3
|
export default function utimes(fullPath: string, entry: AbstractEntry, options: ExtractOptions, callback: NoParamCallback): undefined;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import './polyfills.
|
|
1
|
+
import './polyfills.js';
|
|
2
2
|
import StackBaseIterator from 'stack-base-iterator';
|
|
3
|
-
import type { Entry } from './types.
|
|
3
|
+
import type { Entry } from './types.js';
|
|
4
4
|
export default class ExtractBaseIterator extends StackBaseIterator<Entry> {
|
|
5
5
|
}
|
|
6
|
-
export { default as DirectoryEntry } from './DirectoryEntry.
|
|
7
|
-
export { default as FileEntry } from './FileEntry.
|
|
8
|
-
export { default as LinkEntry } from './LinkEntry.
|
|
9
|
-
export { default as SymbolicLinkEntry } from './SymbolicLinkEntry.
|
|
10
|
-
export * from './types.
|
|
11
|
-
export { default as waitForAccess } from './waitForAccess.
|
|
6
|
+
export { default as DirectoryEntry } from './DirectoryEntry.js';
|
|
7
|
+
export { default as FileEntry } from './FileEntry.js';
|
|
8
|
+
export { default as LinkEntry } from './LinkEntry.js';
|
|
9
|
+
export { default as SymbolicLinkEntry } from './SymbolicLinkEntry.js';
|
|
10
|
+
export * from './types.js';
|
|
11
|
+
export { default as waitForAccess } from './waitForAccess.js';
|
package/dist/esm/stripPath.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ExtractOptions } from './types.
|
|
1
|
+
import type { ExtractOptions } from './types.js';
|
|
2
2
|
export default function stripPath(relativePath: string, options: ExtractOptions): string;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ export interface LinkAttributes {
|
|
|
23
23
|
path: string;
|
|
24
24
|
linkpath: string;
|
|
25
25
|
}
|
|
26
|
-
import type { default as DirectoryEntry } from './DirectoryEntry.
|
|
27
|
-
import type { default as FileEntry } from './FileEntry.
|
|
28
|
-
import type { default as LinkEntry } from './LinkEntry.
|
|
29
|
-
import type { default as SymbolicLinkEntry } from './SymbolicLinkEntry.
|
|
26
|
+
import type { default as DirectoryEntry } from './DirectoryEntry.js';
|
|
27
|
+
import type { default as FileEntry } from './FileEntry.js';
|
|
28
|
+
import type { default as LinkEntry } from './LinkEntry.js';
|
|
29
|
+
import type { default as SymbolicLinkEntry } from './SymbolicLinkEntry.js';
|
|
30
30
|
export type Entry = DirectoryEntry | FileEntry | LinkEntry | SymbolicLinkEntry;
|
|
31
31
|
export interface AbstractEntry {
|
|
32
32
|
mode: Mode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { NoParamCallback } from './types.
|
|
1
|
+
import type { NoParamCallback } from './types.js';
|
|
2
2
|
export default function waitForAccess(fullPath: string, callback: NoParamCallback): undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extract-base-iterator",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Base iterator for extract iterators like tar-iterator and zip-iterator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"extract",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"main": "dist/cjs/index.js",
|
|
32
|
-
"types": "dist/cjs/index.d.
|
|
32
|
+
"types": "dist/cjs/index.d.ts",
|
|
33
33
|
"files": [
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Mode } from 'fs';
|
|
2
|
-
import type { DirectoryAttributes, ExtractOptions, NoParamCallback } from './types.ts';
|
|
3
|
-
export default class DirectoryEntry {
|
|
4
|
-
mode: Mode;
|
|
5
|
-
mtime: number;
|
|
6
|
-
path: string;
|
|
7
|
-
basename: string;
|
|
8
|
-
type: string;
|
|
9
|
-
constructor(attributes: DirectoryAttributes);
|
|
10
|
-
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
}
|
package/dist/cjs/FileEntry.d.cts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Mode } from 'fs';
|
|
2
|
-
import type { ExtractOptions, FileAttributes, NoParamCallback } from './types.ts';
|
|
3
|
-
export default class FileEntry {
|
|
4
|
-
mode: Mode;
|
|
5
|
-
mtime: number;
|
|
6
|
-
path: string;
|
|
7
|
-
basename: string;
|
|
8
|
-
type: string;
|
|
9
|
-
constructor(attributes: FileAttributes);
|
|
10
|
-
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
}
|
package/dist/cjs/LinkEntry.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Mode } from 'fs';
|
|
2
|
-
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.ts';
|
|
3
|
-
export default class LinkEntry {
|
|
4
|
-
mode: Mode;
|
|
5
|
-
mtime: number;
|
|
6
|
-
path: string;
|
|
7
|
-
linkpath: string;
|
|
8
|
-
basename: string;
|
|
9
|
-
type: string;
|
|
10
|
-
constructor(attributes: LinkAttributes);
|
|
11
|
-
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Mode } from 'fs';
|
|
2
|
-
import type { ExtractOptions, LinkAttributes, NoParamCallback } from './types.ts';
|
|
3
|
-
export default class SymbolicLinkEntry {
|
|
4
|
-
mode: Mode;
|
|
5
|
-
mtime: number;
|
|
6
|
-
path: string;
|
|
7
|
-
linkpath: string;
|
|
8
|
-
basename: string;
|
|
9
|
-
type: string;
|
|
10
|
-
constructor(attributes: LinkAttributes);
|
|
11
|
-
create(dest: string, options: ExtractOptions | NoParamCallback, callback?: NoParamCallback): undefined | Promise<boolean>;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
}
|
package/dist/cjs/fs/chmod.d.cts
DELETED
package/dist/cjs/fs/chown.d.cts
DELETED
package/dist/cjs/fs/utimes.d.cts
DELETED
package/dist/cjs/index.d.cts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './polyfills.ts';
|
|
2
|
-
import StackBaseIterator from 'stack-base-iterator';
|
|
3
|
-
import type { Entry } from './types.ts';
|
|
4
|
-
export default class ExtractBaseIterator extends StackBaseIterator<Entry> {
|
|
5
|
-
}
|
|
6
|
-
export { default as DirectoryEntry } from './DirectoryEntry.ts';
|
|
7
|
-
export { default as FileEntry } from './FileEntry.ts';
|
|
8
|
-
export { default as LinkEntry } from './LinkEntry.ts';
|
|
9
|
-
export { default as SymbolicLinkEntry } from './SymbolicLinkEntry.ts';
|
|
10
|
-
export * from './types.ts';
|
|
11
|
-
export { default as waitForAccess } from './waitForAccess.ts';
|
package/dist/cjs/polyfills.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/cjs/stripPath.d.cts
DELETED
package/dist/cjs/types.d.cts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Mode } from 'fs';
|
|
2
|
-
import type { StackOptions } from 'stack-base-iterator';
|
|
3
|
-
export interface ExtractOptions extends StackOptions {
|
|
4
|
-
force?: boolean;
|
|
5
|
-
strip?: number;
|
|
6
|
-
now?: Date;
|
|
7
|
-
}
|
|
8
|
-
export type NoParamCallback = (error?: Error) => void;
|
|
9
|
-
export type WriteFileFn = (path: string, options: object, callback: NoParamCallback) => void;
|
|
10
|
-
export interface FileAttributes {
|
|
11
|
-
mode: Mode;
|
|
12
|
-
mtime: number;
|
|
13
|
-
path: string;
|
|
14
|
-
}
|
|
15
|
-
export interface DirectoryAttributes {
|
|
16
|
-
mode: Mode;
|
|
17
|
-
mtime: number | Date;
|
|
18
|
-
path: string;
|
|
19
|
-
}
|
|
20
|
-
export interface LinkAttributes {
|
|
21
|
-
mode: Mode;
|
|
22
|
-
mtime: number;
|
|
23
|
-
path: string;
|
|
24
|
-
linkpath: string;
|
|
25
|
-
}
|
|
26
|
-
import type { default as DirectoryEntry } from './DirectoryEntry.ts';
|
|
27
|
-
import type { default as FileEntry } from './FileEntry.ts';
|
|
28
|
-
import type { default as LinkEntry } from './LinkEntry.ts';
|
|
29
|
-
import type { default as SymbolicLinkEntry } from './SymbolicLinkEntry.ts';
|
|
30
|
-
export type Entry = DirectoryEntry | FileEntry | LinkEntry | SymbolicLinkEntry;
|
|
31
|
-
export interface AbstractEntry {
|
|
32
|
-
mode: Mode;
|
|
33
|
-
mtime: number;
|
|
34
|
-
path: string;
|
|
35
|
-
basename: string;
|
|
36
|
-
type: string;
|
|
37
|
-
linkpath?: string;
|
|
38
|
-
uid?: number;
|
|
39
|
-
gid?: number;
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function validateAttributes(attributes: object, keys: string[]): undefined;
|