ccxt-ir 4.9.13 → 4.9.14
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/README.md +3 -3
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +229 -229
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/abantether.js +344 -344
- package/dist/cjs/src/abstract/bitbarg.js +1 -1
- package/dist/cjs/src/abstract/bydfi.js +1 -1
- package/dist/cjs/src/abstract/cafearz.js +1 -1
- package/dist/cjs/src/abstract/hamtapay.js +1 -1
- package/dist/cjs/src/abstract/kifpoolme.js +1 -1
- package/dist/cjs/src/abstract/mazdax.js +1 -1
- package/dist/cjs/src/abstract/pingi.js +1 -1
- package/dist/cjs/src/abstract/pooleno.js +1 -1
- package/dist/cjs/src/afratether.js +347 -347
- package/dist/cjs/src/arzplus.js +572 -572
- package/dist/cjs/src/bitbarg.js +303 -303
- package/dist/cjs/src/bydfi.js +425 -425
- package/dist/cjs/src/cafearz.js +337 -337
- package/dist/cjs/src/hamtapay.js +291 -291
- package/dist/cjs/src/kifpoolme.js +401 -401
- package/dist/cjs/src/mazdax.js +525 -526
- package/dist/cjs/src/pingi.js +437 -438
- package/dist/cjs/src/pooleno.js +338 -338
- package/dist/cjs/src/tetherland.js +358 -358
- package/dist/cjs/src/twox.js +362 -362
- package/js/ccxt.d.ts +673 -673
- package/js/ccxt.js +491 -491
- package/js/src/abantether.js +347 -347
- package/js/src/abstract/abantether.d.ts +8 -8
- package/js/src/abstract/arzplus.d.ts +11 -11
- package/js/src/abstract/bitbarg.d.ts +8 -8
- package/js/src/abstract/bitbarg.js +5 -5
- package/js/src/abstract/bydfi.d.ts +11 -11
- package/js/src/abstract/bydfi.js +5 -5
- package/js/src/abstract/cafearz.d.ts +8 -8
- package/js/src/abstract/cafearz.js +5 -5
- package/js/src/abstract/hamtapay.d.ts +9 -9
- package/js/src/abstract/hamtapay.js +5 -5
- package/js/src/abstract/kifpoolme.d.ts +9 -9
- package/js/src/abstract/kifpoolme.js +5 -5
- package/js/src/abstract/mazdax.d.ts +11 -11
- package/js/src/abstract/mazdax.js +5 -5
- package/js/src/abstract/pingi.d.ts +9 -9
- package/js/src/abstract/pingi.js +5 -5
- package/js/src/abstract/pooleno.d.ts +8 -8
- package/js/src/abstract/pooleno.js +5 -5
- package/js/src/afratether.js +350 -350
- package/js/src/arzplus.d.ts +26 -26
- package/js/src/arzplus.js +575 -575
- package/js/src/base/Exchange.d.ts +926 -926
- package/js/src/base/types.d.ts +586 -586
- package/js/src/bitbarg.d.ts +21 -21
- package/js/src/bitbarg.js +306 -306
- package/js/src/bydfi.d.ts +23 -23
- package/js/src/bydfi.js +428 -428
- package/js/src/cafearz.d.ts +21 -21
- package/js/src/cafearz.js +340 -340
- package/js/src/coinbaseexchange.d.ts +334 -334
- package/js/src/hamtapay.d.ts +21 -21
- package/js/src/hamtapay.js +294 -294
- package/js/src/kifpoolme.d.ts +23 -23
- package/js/src/kifpoolme.js +404 -404
- package/js/src/mazdax.d.ts +23 -23
- package/js/src/mazdax.js +528 -529
- package/js/src/pingi.d.ts +22 -22
- package/js/src/pingi.js +440 -441
- package/js/src/pooleno.d.ts +21 -21
- package/js/src/pooleno.js +341 -341
- package/js/src/protobuf/mexc/compiled.d.cts +2 -2
- package/js/src/static_dependencies/fflake/browser.d.ts +222 -222
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.d.ts +51 -51
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +101 -101
- package/js/src/static_dependencies/noble-curves/abstract/weierstrass.d.ts +204 -204
- package/js/src/static_dependencies/qs/formats.d.cts +8 -8
- package/js/src/static_dependencies/qs/index.d.cts +4 -4
- package/js/src/static_dependencies/qs/parse.d.cts +2 -2
- package/js/src/static_dependencies/qs/stringify.d.cts +2 -2
- package/js/src/static_dependencies/qs/utils.d.cts +9 -9
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +5 -5
- package/js/src/tetherland.js +361 -361
- package/js/src/twox.js +365 -365
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export = $root;
|
|
2
|
-
declare var $root: {};
|
|
1
|
+
export = $root;
|
|
2
|
+
declare var $root: {};
|
|
@@ -1,222 +1,222 @@
|
|
|
1
|
-
export function deflate(data: any, opts: any, cb: any): () => void;
|
|
2
|
-
/**
|
|
3
|
-
* Compresses data with DEFLATE without any wrapper
|
|
4
|
-
* @param data The data to compress
|
|
5
|
-
* @param opts The compression options
|
|
6
|
-
* @returns The deflated version of the data
|
|
7
|
-
*/
|
|
8
|
-
export function deflateSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
9
|
-
export function inflate(data: any, opts: any, cb: any): () => void;
|
|
10
|
-
/**
|
|
11
|
-
* Expands DEFLATE data with no wrapper
|
|
12
|
-
* @param data The data to decompress
|
|
13
|
-
* @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
|
|
14
|
-
* @returns The decompressed version of the data
|
|
15
|
-
*/
|
|
16
|
-
export function inflateSync(data: any, out?: any): any;
|
|
17
|
-
export function gzip(data: any, opts: any, cb: any): () => void;
|
|
18
|
-
/**
|
|
19
|
-
* Compresses data with GZIP
|
|
20
|
-
* @param data The data to compress
|
|
21
|
-
* @param opts The compression options
|
|
22
|
-
* @returns The gzipped version of the data
|
|
23
|
-
*/
|
|
24
|
-
export function gzipSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
25
|
-
export function gunzip(data: any, opts: any, cb: any): () => void;
|
|
26
|
-
/**
|
|
27
|
-
* Expands GZIP data
|
|
28
|
-
* @param data The data to decompress
|
|
29
|
-
* @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory.
|
|
30
|
-
* @returns The decompressed version of the data
|
|
31
|
-
*/
|
|
32
|
-
export function gunzipSync(data: any, out?: any): any;
|
|
33
|
-
export function zlib(data: any, opts: any, cb: any): () => void;
|
|
34
|
-
/**
|
|
35
|
-
* Compress data with Zlib
|
|
36
|
-
* @param data The data to compress
|
|
37
|
-
* @param opts The compression options
|
|
38
|
-
* @returns The zlib-compressed version of the data
|
|
39
|
-
*/
|
|
40
|
-
export function zlibSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
41
|
-
export function unzlib(data: any, opts: any, cb: any): () => void;
|
|
42
|
-
/**
|
|
43
|
-
* Expands Zlib data
|
|
44
|
-
* @param data The data to decompress
|
|
45
|
-
* @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
|
|
46
|
-
* @returns The decompressed version of the data
|
|
47
|
-
*/
|
|
48
|
-
export function unzlibSync(data: any, out: any): any;
|
|
49
|
-
export function decompress(data: any, opts: any, cb: any): () => void;
|
|
50
|
-
/**
|
|
51
|
-
* Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
|
|
52
|
-
* @param data The data to decompress
|
|
53
|
-
* @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
|
|
54
|
-
* @returns The decompressed version of the data
|
|
55
|
-
*/
|
|
56
|
-
export function decompressSync(data: any, out: any): any;
|
|
57
|
-
/**
|
|
58
|
-
* Converts a string into a Uint8Array for use with compression/decompression methods
|
|
59
|
-
* @param str The string to encode
|
|
60
|
-
* @param latin1 Whether or not to interpret the data as Latin-1. This should
|
|
61
|
-
* not need to be true unless decoding a binary string.
|
|
62
|
-
* @returns The string encoded in UTF-8/Latin-1 binary
|
|
63
|
-
*/
|
|
64
|
-
export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint16Array;
|
|
65
|
-
/**
|
|
66
|
-
* Converts a Uint8Array to a string
|
|
67
|
-
* @param dat The data to decode to string
|
|
68
|
-
* @param latin1 Whether or not to interpret the data as Latin-1. This should
|
|
69
|
-
* not need to be true unless encoding to binary string.
|
|
70
|
-
* @returns The original UTF-8/Latin-1 string
|
|
71
|
-
*/
|
|
72
|
-
export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint32Array | Uint16Array;
|
|
73
|
-
export function zip(data: any, opts: any, cb: any): () => void;
|
|
74
|
-
/**
|
|
75
|
-
* Synchronously creates a ZIP file. Prefer using `zip` for better performance
|
|
76
|
-
* with more than one file.
|
|
77
|
-
* @param data The directory structure for the ZIP archive
|
|
78
|
-
* @param opts The main options, merged with per-file options
|
|
79
|
-
* @returns The generated ZIP archive
|
|
80
|
-
*/
|
|
81
|
-
export function zipSync(data: any, opts: any): Uint8Array;
|
|
82
|
-
export function unzip(data: any, opts: any, cb: any): () => void;
|
|
83
|
-
/**
|
|
84
|
-
* Synchronously decompresses a ZIP archive. Prefer using `unzip` for better
|
|
85
|
-
* performance with more than one file.
|
|
86
|
-
* @param data The raw compressed ZIP file
|
|
87
|
-
* @param opts The ZIP extraction options
|
|
88
|
-
* @returns The decompressed files
|
|
89
|
-
*/
|
|
90
|
-
export function unzipSync(data: any, opts: any): {};
|
|
91
|
-
export namespace FlateErrorCode {
|
|
92
|
-
const UnexpectedEOF: number;
|
|
93
|
-
const InvalidBlockType: number;
|
|
94
|
-
const InvalidLengthLiteral: number;
|
|
95
|
-
const InvalidDistance: number;
|
|
96
|
-
const StreamFinished: number;
|
|
97
|
-
const NoStreamHandler: number;
|
|
98
|
-
const InvalidHeader: number;
|
|
99
|
-
const NoCallback: number;
|
|
100
|
-
const InvalidUTF8: number;
|
|
101
|
-
const ExtraFieldTooLong: number;
|
|
102
|
-
const InvalidDate: number;
|
|
103
|
-
const FilenameTooLong: number;
|
|
104
|
-
const StreamFinishing: number;
|
|
105
|
-
const InvalidZipData: number;
|
|
106
|
-
const UnknownCompressionMethod: number;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Streaming DEFLATE compression
|
|
110
|
-
* @type Class
|
|
111
|
-
*/
|
|
112
|
-
export var Deflate: Class;
|
|
113
|
-
/**
|
|
114
|
-
* Asynchronous streaming DEFLATE compression
|
|
115
|
-
* @type Class
|
|
116
|
-
*/
|
|
117
|
-
export var AsyncDeflate: Class;
|
|
118
|
-
/**
|
|
119
|
-
* Streaming DEFLATE decompression
|
|
120
|
-
* @type Class
|
|
121
|
-
*/
|
|
122
|
-
export var Inflate: Class;
|
|
123
|
-
/**
|
|
124
|
-
* @type Class
|
|
125
|
-
* Asynchronous streaming DEFLATE decompression
|
|
126
|
-
*/
|
|
127
|
-
export var AsyncInflate: Class;
|
|
128
|
-
/**
|
|
129
|
-
* Streaming GZIP compression
|
|
130
|
-
* @type Class
|
|
131
|
-
*/
|
|
132
|
-
export var Gzip: Class;
|
|
133
|
-
export function AsyncGzip(opts: any, cb: any): void;
|
|
134
|
-
/**
|
|
135
|
-
* Streaming GZIP decompression
|
|
136
|
-
* @type Class
|
|
137
|
-
*/
|
|
138
|
-
export var Gunzip: Class;
|
|
139
|
-
/**
|
|
140
|
-
* @type Class
|
|
141
|
-
* Asynchronous streaming GZIP decompression
|
|
142
|
-
*/
|
|
143
|
-
export var AsyncGunzip: Class;
|
|
144
|
-
/**
|
|
145
|
-
* @type Class
|
|
146
|
-
* Streaming Zlib compression
|
|
147
|
-
*/
|
|
148
|
-
export var Zlib: Class;
|
|
149
|
-
export function AsyncZlib(opts: any, cb: any): void;
|
|
150
|
-
/**
|
|
151
|
-
* Streaming Zlib decompression
|
|
152
|
-
* @type Class
|
|
153
|
-
*/
|
|
154
|
-
export var Unzlib: Class;
|
|
155
|
-
/**
|
|
156
|
-
* @type Class
|
|
157
|
-
* Asynchronous streaming Zlib decompression
|
|
158
|
-
*/
|
|
159
|
-
export var AsyncUnzlib: Class;
|
|
160
|
-
/**
|
|
161
|
-
* @type Class
|
|
162
|
-
* Streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
163
|
-
*/
|
|
164
|
-
export var Decompress: Class;
|
|
165
|
-
/**
|
|
166
|
-
* Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
167
|
-
* @type Class
|
|
168
|
-
*/
|
|
169
|
-
export var AsyncDecompress: Class;
|
|
170
|
-
/**
|
|
171
|
-
* @type Class
|
|
172
|
-
* Streaming UTF-8 decoding
|
|
173
|
-
*/
|
|
174
|
-
export var DecodeUTF8: Class;
|
|
175
|
-
/**
|
|
176
|
-
* Streaming UTF-8 encoding
|
|
177
|
-
* @type Class
|
|
178
|
-
*/
|
|
179
|
-
export var EncodeUTF8: Class;
|
|
180
|
-
/**
|
|
181
|
-
* A pass-through stream to keep data uncompressed in a ZIP archive.
|
|
182
|
-
* @type Class
|
|
183
|
-
*/
|
|
184
|
-
export var ZipPassThrough: Class;
|
|
185
|
-
/**
|
|
186
|
-
* Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate
|
|
187
|
-
* for better performance
|
|
188
|
-
* @type Class
|
|
189
|
-
*/
|
|
190
|
-
export var ZipDeflate: Class;
|
|
191
|
-
/**
|
|
192
|
-
* Asynchronous streaming DEFLATE compression for ZIP archives
|
|
193
|
-
* @type Class
|
|
194
|
-
*/
|
|
195
|
-
export var AsyncZipDeflate: Class;
|
|
196
|
-
/**
|
|
197
|
-
* A zippable archive to which files can incrementally be added
|
|
198
|
-
* @type Class
|
|
199
|
-
*/
|
|
200
|
-
export var Zip: Class;
|
|
201
|
-
/**
|
|
202
|
-
* Streaming pass-through decompression for ZIP archives
|
|
203
|
-
* @type Class
|
|
204
|
-
*/
|
|
205
|
-
export var UnzipPassThrough: Class;
|
|
206
|
-
/**
|
|
207
|
-
* Streaming DEFLATE decompression for ZIP archives. Prefer AsyncZipInflate for
|
|
208
|
-
* better performance.
|
|
209
|
-
* @type Class
|
|
210
|
-
*/
|
|
211
|
-
export var UnzipInflate: Class;
|
|
212
|
-
/**
|
|
213
|
-
* @type Class
|
|
214
|
-
* Asynchronous streaming DEFLATE decompression for ZIP archives
|
|
215
|
-
*/
|
|
216
|
-
export var AsyncUnzipInflate: Class;
|
|
217
|
-
/**
|
|
218
|
-
* A ZIP archive decompression stream that emits files as they are discovered
|
|
219
|
-
* @type Class
|
|
220
|
-
*/
|
|
221
|
-
export var Unzip: Class;
|
|
222
|
-
export { gzip as compress, AsyncGzip as AsyncCompress, gzipSync as compressSync, Gzip as Compress };
|
|
1
|
+
export function deflate(data: any, opts: any, cb: any): () => void;
|
|
2
|
+
/**
|
|
3
|
+
* Compresses data with DEFLATE without any wrapper
|
|
4
|
+
* @param data The data to compress
|
|
5
|
+
* @param opts The compression options
|
|
6
|
+
* @returns The deflated version of the data
|
|
7
|
+
*/
|
|
8
|
+
export function deflateSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
9
|
+
export function inflate(data: any, opts: any, cb: any): () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Expands DEFLATE data with no wrapper
|
|
12
|
+
* @param data The data to decompress
|
|
13
|
+
* @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
|
|
14
|
+
* @returns The decompressed version of the data
|
|
15
|
+
*/
|
|
16
|
+
export function inflateSync(data: any, out?: any): any;
|
|
17
|
+
export function gzip(data: any, opts: any, cb: any): () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Compresses data with GZIP
|
|
20
|
+
* @param data The data to compress
|
|
21
|
+
* @param opts The compression options
|
|
22
|
+
* @returns The gzipped version of the data
|
|
23
|
+
*/
|
|
24
|
+
export function gzipSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
25
|
+
export function gunzip(data: any, opts: any, cb: any): () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Expands GZIP data
|
|
28
|
+
* @param data The data to decompress
|
|
29
|
+
* @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory.
|
|
30
|
+
* @returns The decompressed version of the data
|
|
31
|
+
*/
|
|
32
|
+
export function gunzipSync(data: any, out?: any): any;
|
|
33
|
+
export function zlib(data: any, opts: any, cb: any): () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Compress data with Zlib
|
|
36
|
+
* @param data The data to compress
|
|
37
|
+
* @param opts The compression options
|
|
38
|
+
* @returns The zlib-compressed version of the data
|
|
39
|
+
*/
|
|
40
|
+
export function zlibSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
41
|
+
export function unzlib(data: any, opts: any, cb: any): () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Expands Zlib data
|
|
44
|
+
* @param data The data to decompress
|
|
45
|
+
* @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
|
|
46
|
+
* @returns The decompressed version of the data
|
|
47
|
+
*/
|
|
48
|
+
export function unzlibSync(data: any, out: any): any;
|
|
49
|
+
export function decompress(data: any, opts: any, cb: any): () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
|
|
52
|
+
* @param data The data to decompress
|
|
53
|
+
* @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.
|
|
54
|
+
* @returns The decompressed version of the data
|
|
55
|
+
*/
|
|
56
|
+
export function decompressSync(data: any, out: any): any;
|
|
57
|
+
/**
|
|
58
|
+
* Converts a string into a Uint8Array for use with compression/decompression methods
|
|
59
|
+
* @param str The string to encode
|
|
60
|
+
* @param latin1 Whether or not to interpret the data as Latin-1. This should
|
|
61
|
+
* not need to be true unless decoding a binary string.
|
|
62
|
+
* @returns The string encoded in UTF-8/Latin-1 binary
|
|
63
|
+
*/
|
|
64
|
+
export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint16Array;
|
|
65
|
+
/**
|
|
66
|
+
* Converts a Uint8Array to a string
|
|
67
|
+
* @param dat The data to decode to string
|
|
68
|
+
* @param latin1 Whether or not to interpret the data as Latin-1. This should
|
|
69
|
+
* not need to be true unless encoding to binary string.
|
|
70
|
+
* @returns The original UTF-8/Latin-1 string
|
|
71
|
+
*/
|
|
72
|
+
export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint32Array | Uint16Array;
|
|
73
|
+
export function zip(data: any, opts: any, cb: any): () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Synchronously creates a ZIP file. Prefer using `zip` for better performance
|
|
76
|
+
* with more than one file.
|
|
77
|
+
* @param data The directory structure for the ZIP archive
|
|
78
|
+
* @param opts The main options, merged with per-file options
|
|
79
|
+
* @returns The generated ZIP archive
|
|
80
|
+
*/
|
|
81
|
+
export function zipSync(data: any, opts: any): Uint8Array;
|
|
82
|
+
export function unzip(data: any, opts: any, cb: any): () => void;
|
|
83
|
+
/**
|
|
84
|
+
* Synchronously decompresses a ZIP archive. Prefer using `unzip` for better
|
|
85
|
+
* performance with more than one file.
|
|
86
|
+
* @param data The raw compressed ZIP file
|
|
87
|
+
* @param opts The ZIP extraction options
|
|
88
|
+
* @returns The decompressed files
|
|
89
|
+
*/
|
|
90
|
+
export function unzipSync(data: any, opts: any): {};
|
|
91
|
+
export namespace FlateErrorCode {
|
|
92
|
+
const UnexpectedEOF: number;
|
|
93
|
+
const InvalidBlockType: number;
|
|
94
|
+
const InvalidLengthLiteral: number;
|
|
95
|
+
const InvalidDistance: number;
|
|
96
|
+
const StreamFinished: number;
|
|
97
|
+
const NoStreamHandler: number;
|
|
98
|
+
const InvalidHeader: number;
|
|
99
|
+
const NoCallback: number;
|
|
100
|
+
const InvalidUTF8: number;
|
|
101
|
+
const ExtraFieldTooLong: number;
|
|
102
|
+
const InvalidDate: number;
|
|
103
|
+
const FilenameTooLong: number;
|
|
104
|
+
const StreamFinishing: number;
|
|
105
|
+
const InvalidZipData: number;
|
|
106
|
+
const UnknownCompressionMethod: number;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Streaming DEFLATE compression
|
|
110
|
+
* @type Class
|
|
111
|
+
*/
|
|
112
|
+
export var Deflate: Class;
|
|
113
|
+
/**
|
|
114
|
+
* Asynchronous streaming DEFLATE compression
|
|
115
|
+
* @type Class
|
|
116
|
+
*/
|
|
117
|
+
export var AsyncDeflate: Class;
|
|
118
|
+
/**
|
|
119
|
+
* Streaming DEFLATE decompression
|
|
120
|
+
* @type Class
|
|
121
|
+
*/
|
|
122
|
+
export var Inflate: Class;
|
|
123
|
+
/**
|
|
124
|
+
* @type Class
|
|
125
|
+
* Asynchronous streaming DEFLATE decompression
|
|
126
|
+
*/
|
|
127
|
+
export var AsyncInflate: Class;
|
|
128
|
+
/**
|
|
129
|
+
* Streaming GZIP compression
|
|
130
|
+
* @type Class
|
|
131
|
+
*/
|
|
132
|
+
export var Gzip: Class;
|
|
133
|
+
export function AsyncGzip(opts: any, cb: any): void;
|
|
134
|
+
/**
|
|
135
|
+
* Streaming GZIP decompression
|
|
136
|
+
* @type Class
|
|
137
|
+
*/
|
|
138
|
+
export var Gunzip: Class;
|
|
139
|
+
/**
|
|
140
|
+
* @type Class
|
|
141
|
+
* Asynchronous streaming GZIP decompression
|
|
142
|
+
*/
|
|
143
|
+
export var AsyncGunzip: Class;
|
|
144
|
+
/**
|
|
145
|
+
* @type Class
|
|
146
|
+
* Streaming Zlib compression
|
|
147
|
+
*/
|
|
148
|
+
export var Zlib: Class;
|
|
149
|
+
export function AsyncZlib(opts: any, cb: any): void;
|
|
150
|
+
/**
|
|
151
|
+
* Streaming Zlib decompression
|
|
152
|
+
* @type Class
|
|
153
|
+
*/
|
|
154
|
+
export var Unzlib: Class;
|
|
155
|
+
/**
|
|
156
|
+
* @type Class
|
|
157
|
+
* Asynchronous streaming Zlib decompression
|
|
158
|
+
*/
|
|
159
|
+
export var AsyncUnzlib: Class;
|
|
160
|
+
/**
|
|
161
|
+
* @type Class
|
|
162
|
+
* Streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
163
|
+
*/
|
|
164
|
+
export var Decompress: Class;
|
|
165
|
+
/**
|
|
166
|
+
* Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
167
|
+
* @type Class
|
|
168
|
+
*/
|
|
169
|
+
export var AsyncDecompress: Class;
|
|
170
|
+
/**
|
|
171
|
+
* @type Class
|
|
172
|
+
* Streaming UTF-8 decoding
|
|
173
|
+
*/
|
|
174
|
+
export var DecodeUTF8: Class;
|
|
175
|
+
/**
|
|
176
|
+
* Streaming UTF-8 encoding
|
|
177
|
+
* @type Class
|
|
178
|
+
*/
|
|
179
|
+
export var EncodeUTF8: Class;
|
|
180
|
+
/**
|
|
181
|
+
* A pass-through stream to keep data uncompressed in a ZIP archive.
|
|
182
|
+
* @type Class
|
|
183
|
+
*/
|
|
184
|
+
export var ZipPassThrough: Class;
|
|
185
|
+
/**
|
|
186
|
+
* Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate
|
|
187
|
+
* for better performance
|
|
188
|
+
* @type Class
|
|
189
|
+
*/
|
|
190
|
+
export var ZipDeflate: Class;
|
|
191
|
+
/**
|
|
192
|
+
* Asynchronous streaming DEFLATE compression for ZIP archives
|
|
193
|
+
* @type Class
|
|
194
|
+
*/
|
|
195
|
+
export var AsyncZipDeflate: Class;
|
|
196
|
+
/**
|
|
197
|
+
* A zippable archive to which files can incrementally be added
|
|
198
|
+
* @type Class
|
|
199
|
+
*/
|
|
200
|
+
export var Zip: Class;
|
|
201
|
+
/**
|
|
202
|
+
* Streaming pass-through decompression for ZIP archives
|
|
203
|
+
* @type Class
|
|
204
|
+
*/
|
|
205
|
+
export var UnzipPassThrough: Class;
|
|
206
|
+
/**
|
|
207
|
+
* Streaming DEFLATE decompression for ZIP archives. Prefer AsyncZipInflate for
|
|
208
|
+
* better performance.
|
|
209
|
+
* @type Class
|
|
210
|
+
*/
|
|
211
|
+
export var UnzipInflate: Class;
|
|
212
|
+
/**
|
|
213
|
+
* @type Class
|
|
214
|
+
* Asynchronous streaming DEFLATE decompression for ZIP archives
|
|
215
|
+
*/
|
|
216
|
+
export var AsyncUnzipInflate: Class;
|
|
217
|
+
/**
|
|
218
|
+
* A ZIP archive decompression stream that emits files as they are discovered
|
|
219
|
+
* @type Class
|
|
220
|
+
*/
|
|
221
|
+
export var Unzip: Class;
|
|
222
|
+
export { gzip as compress, AsyncGzip as AsyncCompress, gzipSync as compressSync, Gzip as Compress };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Int10 } from "./int10.js";
|
|
2
|
-
export declare class Stream {
|
|
3
|
-
constructor(enc: Stream | number[], pos?: number);
|
|
4
|
-
private enc;
|
|
5
|
-
pos: number;
|
|
6
|
-
get(pos?: number): number;
|
|
7
|
-
hexDigits: string;
|
|
8
|
-
hexByte(b: number): string;
|
|
9
|
-
hexDump(start: number, end: number, raw: boolean): string;
|
|
10
|
-
isASCII(start: number, end: number): boolean;
|
|
11
|
-
parseStringISO(start: number, end: number): string;
|
|
12
|
-
parseStringUTF(start: number, end: number): string;
|
|
13
|
-
parseStringBMP(start: number, end: number): string;
|
|
14
|
-
parseTime(start: number, end: number, shortYear: boolean): string;
|
|
15
|
-
parseInteger(start: number, end: number): string | 0 | -1;
|
|
16
|
-
parseBitString(start: number, end: number, maxLength: number): string;
|
|
17
|
-
parseOctetString(start: number, end: number, maxLength: number): string;
|
|
18
|
-
parseOID(start: number, end: number, maxLength: number): string;
|
|
19
|
-
}
|
|
20
|
-
export declare class ASN1 {
|
|
21
|
-
constructor(stream: Stream, header: number, length: number, tag: ASN1Tag, sub: ASN1[]);
|
|
22
|
-
private stream;
|
|
23
|
-
private header;
|
|
24
|
-
private length;
|
|
25
|
-
private tag;
|
|
26
|
-
sub: ASN1[];
|
|
27
|
-
typeName(): string;
|
|
28
|
-
content(maxLength: number): string | 0 | -1;
|
|
29
|
-
toString(): string;
|
|
30
|
-
toPrettyString(indent: string): string;
|
|
31
|
-
posStart(): number;
|
|
32
|
-
posContent(): number;
|
|
33
|
-
posEnd(): number;
|
|
34
|
-
toHexString(): string;
|
|
35
|
-
static decodeLength(stream: Stream): number;
|
|
36
|
-
/**
|
|
37
|
-
* Retrieve the hexadecimal value (as a string) of the current ASN.1 element
|
|
38
|
-
* @returns {string}
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
getHexStringValue(): string;
|
|
42
|
-
static decode(str: Stream | number[]): ASN1;
|
|
43
|
-
}
|
|
44
|
-
export declare class ASN1Tag {
|
|
45
|
-
constructor(stream: Stream);
|
|
46
|
-
tagClass: number;
|
|
47
|
-
tagConstructed: boolean;
|
|
48
|
-
tagNumber: number | Int10;
|
|
49
|
-
isUniversal(): boolean;
|
|
50
|
-
isEOC(): boolean;
|
|
51
|
-
}
|
|
1
|
+
import { Int10 } from "./int10.js";
|
|
2
|
+
export declare class Stream {
|
|
3
|
+
constructor(enc: Stream | number[], pos?: number);
|
|
4
|
+
private enc;
|
|
5
|
+
pos: number;
|
|
6
|
+
get(pos?: number): number;
|
|
7
|
+
hexDigits: string;
|
|
8
|
+
hexByte(b: number): string;
|
|
9
|
+
hexDump(start: number, end: number, raw: boolean): string;
|
|
10
|
+
isASCII(start: number, end: number): boolean;
|
|
11
|
+
parseStringISO(start: number, end: number): string;
|
|
12
|
+
parseStringUTF(start: number, end: number): string;
|
|
13
|
+
parseStringBMP(start: number, end: number): string;
|
|
14
|
+
parseTime(start: number, end: number, shortYear: boolean): string;
|
|
15
|
+
parseInteger(start: number, end: number): string | 0 | -1;
|
|
16
|
+
parseBitString(start: number, end: number, maxLength: number): string;
|
|
17
|
+
parseOctetString(start: number, end: number, maxLength: number): string;
|
|
18
|
+
parseOID(start: number, end: number, maxLength: number): string;
|
|
19
|
+
}
|
|
20
|
+
export declare class ASN1 {
|
|
21
|
+
constructor(stream: Stream, header: number, length: number, tag: ASN1Tag, sub: ASN1[]);
|
|
22
|
+
private stream;
|
|
23
|
+
private header;
|
|
24
|
+
private length;
|
|
25
|
+
private tag;
|
|
26
|
+
sub: ASN1[];
|
|
27
|
+
typeName(): string;
|
|
28
|
+
content(maxLength: number): string | 0 | -1;
|
|
29
|
+
toString(): string;
|
|
30
|
+
toPrettyString(indent: string): string;
|
|
31
|
+
posStart(): number;
|
|
32
|
+
posContent(): number;
|
|
33
|
+
posEnd(): number;
|
|
34
|
+
toHexString(): string;
|
|
35
|
+
static decodeLength(stream: Stream): number;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve the hexadecimal value (as a string) of the current ASN.1 element
|
|
38
|
+
* @returns {string}
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
getHexStringValue(): string;
|
|
42
|
+
static decode(str: Stream | number[]): ASN1;
|
|
43
|
+
}
|
|
44
|
+
export declare class ASN1Tag {
|
|
45
|
+
constructor(stream: Stream);
|
|
46
|
+
tagClass: number;
|
|
47
|
+
tagConstructed: boolean;
|
|
48
|
+
tagNumber: number | Int10;
|
|
49
|
+
isUniversal(): boolean;
|
|
50
|
+
isEOC(): boolean;
|
|
51
|
+
}
|