@paperclipai/adapter-utils 2026.824.0 → 2026.824.1
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.
|
@@ -78,7 +78,7 @@ interface Writable<M extends WritableEvents = WritableEvents> extends Stream<M>
|
|
|
78
78
|
_writev(batch: unknown[], cb: StreamCallback): void
|
|
79
79
|
_final(cb: StreamCallback): void
|
|
80
80
|
|
|
81
|
-
write(data: unknown):
|
|
81
|
+
write(data: unknown): boolean
|
|
82
82
|
|
|
83
83
|
end(data: unknown): this
|
|
84
84
|
|
|
@@ -119,7 +119,7 @@ interface Readable<M extends ReadableEvents = ReadableEvents>
|
|
|
119
119
|
resume(): this
|
|
120
120
|
pause(): this
|
|
121
121
|
|
|
122
|
-
pipe<S
|
|
122
|
+
pipe<S>(dest: S, cb?: StreamCallback): S
|
|
123
123
|
|
|
124
124
|
setEncoding(encoding: BufferEncoding): this
|
|
125
125
|
}
|
|
@@ -40,16 +40,16 @@ interface EventEmitter<in out M extends EventMap = EventMap> {
|
|
|
40
40
|
|
|
41
41
|
emit<E extends keyof M>(name: E, ...args: M[E]): boolean
|
|
42
42
|
|
|
43
|
-
listeners<E extends keyof M, R>(name: E): EventHandler<M[E], R>
|
|
43
|
+
listeners<E extends keyof M, R>(name: E): EventHandler<M[E], R>[]
|
|
44
44
|
|
|
45
45
|
rawListeners<E extends keyof M, R>(name: E): EventHandler<M[E], R>[]
|
|
46
46
|
|
|
47
|
-
eventNames(): (
|
|
47
|
+
eventNames(): (string | symbol)[]
|
|
48
48
|
|
|
49
49
|
listenerCount<E extends keyof M>(name: E): number
|
|
50
50
|
|
|
51
51
|
getMaxListeners(): number
|
|
52
|
-
setMaxListeners(n: number):
|
|
52
|
+
setMaxListeners(n: number): this
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export { BufferEncoding, EventMap, EventEmitter }
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Readable,
|
|
3
|
+
Writable,
|
|
4
|
+
type ReadableOptions,
|
|
5
|
+
type WritableEvents,
|
|
6
|
+
type WritableOptions
|
|
7
|
+
} from 'streamx'
|
|
8
|
+
|
|
9
|
+
interface Header {
|
|
10
|
+
name: string
|
|
11
|
+
size: number
|
|
12
|
+
mode: number
|
|
13
|
+
mtime: Date
|
|
14
|
+
type:
|
|
15
|
+
| 'file'
|
|
16
|
+
| 'link'
|
|
17
|
+
| 'symlink'
|
|
18
|
+
| 'directory'
|
|
19
|
+
| 'block-device'
|
|
20
|
+
| 'character-device'
|
|
21
|
+
| 'fifo'
|
|
22
|
+
| 'contiguous-file'
|
|
23
|
+
linkname: string
|
|
24
|
+
uid: number
|
|
25
|
+
gid: number
|
|
26
|
+
uname: string
|
|
27
|
+
gname: string
|
|
28
|
+
devmajor: number
|
|
29
|
+
devminor: number
|
|
30
|
+
pax?: unknown | null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type HeaderArgument = Partial<Header> & Pick<Header, 'name'>
|
|
34
|
+
|
|
35
|
+
interface Sink extends Writable {}
|
|
36
|
+
|
|
37
|
+
interface Pack extends Readable {
|
|
38
|
+
entry(header: HeaderArgument, callback?: (err?: Error | null) => void): Sink
|
|
39
|
+
entry(header: HeaderArgument, buffer: string | Uint8Array, callback?: (err?: Error | null) => void): Sink
|
|
40
|
+
|
|
41
|
+
finalize(): void
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare function pack(opts?: ReadableOptions): Pack
|
|
45
|
+
|
|
46
|
+
interface Source extends Readable {
|
|
47
|
+
header: Header
|
|
48
|
+
offset: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface ExtractEvents extends WritableEvents {
|
|
52
|
+
entry: [header: Header, stream: Source, next: (err?: Error | null) => void]
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface Extract<M extends ExtractEvents = ExtractEvents>
|
|
56
|
+
extends Writable<M>, AsyncIterable<Source> {}
|
|
57
|
+
|
|
58
|
+
declare function extract(opts?: WritableOptions): Extract
|
|
59
|
+
|
|
60
|
+
export { pack, type Header, type Pack, extract, type Extract, type ExtractEvents }
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tar-stream",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"default": "./index.js"
|
|
10
|
+
},
|
|
11
|
+
"./package": "./package.json"
|
|
12
|
+
},
|
|
6
13
|
"files": [
|
|
7
|
-
"*.js"
|
|
14
|
+
"*.js",
|
|
15
|
+
"index.d.ts"
|
|
8
16
|
],
|
|
9
17
|
"browser": {
|
|
10
18
|
"fs": false
|