compress-utils 0.10.1 → 0.11.0
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 +43 -28
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/algorithms/brotli/brotli.wasm +0 -0
- package/dist/algorithms/brotli/compress/brotli.wasm +0 -0
- package/dist/algorithms/brotli/decompress/brotli.wasm +0 -0
- package/dist/algorithms/brotli/decompress/index.d.ts +3 -3
- package/dist/algorithms/brotli/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/brotli/index.d.ts +3 -3
- package/dist/algorithms/brotli/index.d.ts.map +1 -1
- package/dist/algorithms/bz2/bz2.wasm +0 -0
- package/dist/algorithms/bz2/compress/bz2.wasm +0 -0
- package/dist/algorithms/bz2/decompress/bz2.wasm +0 -0
- package/dist/algorithms/bz2/decompress/index.d.ts +3 -3
- package/dist/algorithms/bz2/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/bz2/index.d.ts +3 -3
- package/dist/algorithms/bz2/index.d.ts.map +1 -1
- package/dist/algorithms/deflate/decompress/index.d.ts +3 -3
- package/dist/algorithms/deflate/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/deflate/index.d.ts +3 -3
- package/dist/algorithms/deflate/index.d.ts.map +1 -1
- package/dist/algorithms/gzip/compress/gzip.wasm +0 -0
- package/dist/algorithms/gzip/decompress/gzip.wasm +0 -0
- package/dist/algorithms/gzip/decompress/index.d.ts +3 -3
- package/dist/algorithms/gzip/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/gzip/gzip.wasm +0 -0
- package/dist/algorithms/gzip/index.d.ts +3 -3
- package/dist/algorithms/gzip/index.d.ts.map +1 -1
- package/dist/algorithms/lz4/compress/lz4.wasm +0 -0
- package/dist/algorithms/lz4/decompress/index.d.ts +3 -3
- package/dist/algorithms/lz4/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/lz4/decompress/lz4.wasm +0 -0
- package/dist/algorithms/lz4/index.d.ts +3 -3
- package/dist/algorithms/lz4/index.d.ts.map +1 -1
- package/dist/algorithms/lz4/lz4.wasm +0 -0
- package/dist/algorithms/lz4_raw/decompress/index.d.ts +3 -3
- package/dist/algorithms/lz4_raw/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/lz4_raw/index.d.ts +3 -3
- package/dist/algorithms/lz4_raw/index.d.ts.map +1 -1
- package/dist/algorithms/lz4_raw/index.js.map +1 -1
- package/dist/algorithms/lzo/decompress/index.d.ts +3 -2
- package/dist/algorithms/lzo/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/lzo/decompress/lzo.wasm +0 -0
- package/dist/algorithms/snappy/compress/snappy.wasm +0 -0
- package/dist/algorithms/snappy/decompress/index.d.ts +3 -3
- package/dist/algorithms/snappy/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/snappy/decompress/snappy.wasm +0 -0
- package/dist/algorithms/snappy/index.d.ts +3 -3
- package/dist/algorithms/snappy/index.d.ts.map +1 -1
- package/dist/algorithms/snappy/snappy.wasm +0 -0
- package/dist/algorithms/xz/compress/xz.wasm +0 -0
- package/dist/algorithms/xz/decompress/index.d.ts +3 -3
- package/dist/algorithms/xz/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/xz/decompress/xz.wasm +0 -0
- package/dist/algorithms/xz/index.d.ts +3 -3
- package/dist/algorithms/xz/index.d.ts.map +1 -1
- package/dist/algorithms/xz/xz.wasm +0 -0
- package/dist/algorithms/zlib/compress/zlib.wasm +0 -0
- package/dist/algorithms/zlib/decompress/index.d.ts +3 -3
- package/dist/algorithms/zlib/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/zlib/decompress/zlib.wasm +0 -0
- package/dist/algorithms/zlib/index.d.ts +3 -3
- package/dist/algorithms/zlib/index.d.ts.map +1 -1
- package/dist/algorithms/zlib/zlib.wasm +0 -0
- package/dist/algorithms/zstd/compress/zstd.wasm +0 -0
- package/dist/algorithms/zstd/decompress/index.d.ts +3 -3
- package/dist/algorithms/zstd/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/zstd/decompress/zstd.wasm +0 -0
- package/dist/algorithms/zstd/index.d.ts +3 -3
- package/dist/algorithms/zstd/index.d.ts.map +1 -1
- package/dist/algorithms/zstd/zstd.wasm +0 -0
- package/dist/core/dispatch.d.ts +35 -7
- package/dist/core/dispatch.d.ts.map +1 -1
- package/dist/core/dispatch.js +63 -10
- package/dist/core/dispatch.js.map +1 -1
- package/dist/core/loader.d.ts +3 -0
- package/dist/core/loader.d.ts.map +1 -1
- package/dist/core/loader.js.map +1 -1
- package/dist/core/types.d.ts +13 -0
- package/dist/core/types.d.ts.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/compress-utils)
|
|
4
4
|
[](https://www.npmjs.com/package/compress-utils)
|
|
5
|
-
[](https://www.npmjs.com/package/compress-utils)
|
|
6
5
|
[](https://github.com/dupontcyborg/compress-utils/actions/workflows/build_and_test_wasm.yml)
|
|
7
6
|
[](https://opensource.org/licenses/MIT)
|
|
8
7
|
|
|
@@ -48,32 +47,6 @@ const restored = await decompress(compressed);
|
|
|
48
47
|
|
|
49
48
|
Available subpaths: `compress-utils/zstd`, `/brotli`, `/zlib`, `/bz2`, `/lz4`, `/xz`, `/snappy`, `/gzip`, plus the raw block formats `/deflate`, `/lz4_raw` and `/lzo/decompress`. The surface is identical across all of them. Each also has `/<algo>/decompress` and `/<algo>/compress` variants that ship only one direction for a much smaller `.wasm`; see [Bundle size](#bundle-size).
|
|
50
49
|
|
|
51
|
-
## Streaming
|
|
52
|
-
|
|
53
|
-
### Web Streams
|
|
54
|
-
|
|
55
|
-
```ts
|
|
56
|
-
import { compressionStream, decompressionStream } from "compress-utils/zstd";
|
|
57
|
-
|
|
58
|
-
await fetch("/big-file.json")
|
|
59
|
-
.then(r => r.body!.pipeThrough(compressionStream({ level: 3 })))
|
|
60
|
-
.then(s => s.pipeTo(uploadDestination));
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Manual streaming (with `using` for auto-cleanup)
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
import { createCompressStream } from "compress-utils/brotli";
|
|
67
|
-
|
|
68
|
-
using cs = await createCompressStream({ level: 5 });
|
|
69
|
-
const chunks: Uint8Array[] = [];
|
|
70
|
-
for (const chunk of input) chunks.push(cs.write(chunk));
|
|
71
|
-
chunks.push(cs.finish());
|
|
72
|
-
// cs is destroyed automatically on scope exit (TS 5.2+ / Node 22+).
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
If `using` isn't available in your toolchain, call `cs.destroy()` explicitly, or rely on the GC backstop: a `FinalizationRegistry` frees the C-side handle eventually.
|
|
76
|
-
|
|
77
50
|
## Supported algorithms
|
|
78
51
|
|
|
79
52
|
<!-- BEGIN:algorithms -->
|
|
@@ -108,6 +81,48 @@ const page = await decompress(block, { expectedSize: uncompressedPageSize });
|
|
|
108
81
|
|
|
109
82
|
Without `expectedSize`, `lz4_raw` blocks are decoded with the incremental stream decoder, which is much slower, so pass it when you know the size. Every other algorithm accepts it too, which skips a sizing pass and decodes straight into a buffer of that size.
|
|
110
83
|
|
|
84
|
+
## Streaming
|
|
85
|
+
|
|
86
|
+
### Web Streams
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import { compressionStream, decompressionStream } from "compress-utils/zstd";
|
|
90
|
+
|
|
91
|
+
await fetch("/big-file.json")
|
|
92
|
+
.then(r => r.body!.pipeThrough(compressionStream({ level: 3 })))
|
|
93
|
+
.then(s => s.pipeTo(uploadDestination));
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Manual streaming (with `using` for auto-cleanup)
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import { createCompressStream } from "compress-utils/brotli";
|
|
100
|
+
|
|
101
|
+
using cs = await createCompressStream({ level: 5 });
|
|
102
|
+
const chunks: Uint8Array[] = [];
|
|
103
|
+
for (const chunk of input) chunks.push(cs.write(chunk));
|
|
104
|
+
chunks.push(cs.finish());
|
|
105
|
+
// cs is destroyed automatically on scope exit (TS 5.2+ / Node 22+).
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
If `using` isn't available in your toolchain, call `cs.destroy()` explicitly, or rely on the GC backstop: a `FinalizationRegistry` frees the C-side handle eventually.
|
|
109
|
+
|
|
110
|
+
### Stopping at the end of a stream
|
|
111
|
+
|
|
112
|
+
By default a decoder decodes concatenated frames (zstd, LZ4, gzip, xz) as one stream. To read one compressed stream followed by other data, such as the next message on a socket or a container's own bytes, create the decoder with `{ singleStream: true }`. It stops at the end of the first frame, sets `eof`, and returns the input bytes written after the end in `unusedData`:
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
import { createDecompressStream } from "compress-utils/zstd";
|
|
116
|
+
|
|
117
|
+
using ds = await createDecompressStream({ singleStream: true });
|
|
118
|
+
const message = ds.write(received); // decodes up to the end of the frame
|
|
119
|
+
if (ds.eof) {
|
|
120
|
+
const rest = ds.unusedData; // bytes after the frame, e.g. the next message
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Once `eof` is true, writing more data throws `CompressError` with code `10` (stream finished) and leaves `unusedData` unchanged; empty writes and `finish()` return empty output. Leading zstd/LZ4 skippable frames are skipped. Snappy emits nothing until its block is complete. Raw LZ4 (which has no end marker) and LZO don't support it and throw `CompressError` with code `5`. `decompressionStream()` doesn't take the option: a `TransformStream` has no way to hand back the bytes after the end, so use `createDecompressStream` for this.
|
|
125
|
+
|
|
111
126
|
## Compression levels
|
|
112
127
|
|
|
113
128
|
Every algorithm accepts a `level` from **1 (fastest) to 10 (smallest)**. The binding maps that to each algorithm's native range internally, so you don't need to know that Zstandard goes 1–22 and zlib goes 1–9. The default is `5`.
|
|
@@ -131,7 +146,7 @@ try {
|
|
|
131
146
|
}
|
|
132
147
|
```
|
|
133
148
|
|
|
134
|
-
`await version()` returns the library version (for example `"0.
|
|
149
|
+
`await version()` returns the library version (for example `"0.11.0"`), and `await setMaxDecompressedSize(bytes)` bounds one-shot decompression (default 1 GiB; `0` = unbounded). Both are exported from every subpath that includes decompression.
|
|
135
150
|
|
|
136
151
|
## Preloading and synchronous calls
|
|
137
152
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -184,7 +184,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
184
184
|
|
|
185
185
|
## XZ Utils (liblzma)
|
|
186
186
|
|
|
187
|
-
- **Source**: https://github.com/tukaani-project/xz at `v5.8.
|
|
187
|
+
- **Source**: https://github.com/tukaani-project/xz at `v5.8.4` (`third_party/xz/`)
|
|
188
188
|
- **License**: 0BSD
|
|
189
189
|
- **Note**: Only liblzma is included; it is under the BSD Zero Clause License.
|
|
190
190
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const decompress: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Promise<Uint8Array>;
|
|
2
2
|
/** Synchronous counterpart; requires completed preload(). */
|
|
3
3
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
4
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
4
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
6
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
7
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
8
8
|
/** Initializes this independently loaded WASM subpath. */
|
|
9
9
|
export declare const preload: () => Promise<void>;
|
|
10
10
|
export declare const version: () => Promise<string>;
|
|
11
11
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
12
12
|
export { CompressError } from "../../../core/types.js";
|
|
13
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
13
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
14
14
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/brotli/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/brotli/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -7,9 +7,9 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
7
7
|
export declare const createCompressStream: (opts?: import("./index.js").CompressOptions) => Promise<import("./index.js").CompressStream>;
|
|
8
8
|
/** Synchronous counterpart; requires completed preload(). */
|
|
9
9
|
export declare const createCompressStreamSync: (opts?: import("./index.js").CompressOptions) => import("./index.js").CompressStream;
|
|
10
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
10
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
12
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
13
13
|
export declare const compressionStream: (opts?: import("./index.js").CompressionStreamOptions) => TransformStream<Uint8Array, Uint8Array>;
|
|
14
14
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
@@ -17,6 +17,6 @@ export declare const preload: () => Promise<void>;
|
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
18
18
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
19
19
|
export { CompressError } from "../../core/types.js";
|
|
20
|
-
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, AlgorithmName, } from "../../core/types.js";
|
|
20
|
+
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
21
21
|
export type { CompressStream, DecompressStream } from "../../core/dispatch.js";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/brotli/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/brotli/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const decompress: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Promise<Uint8Array>;
|
|
2
2
|
/** Synchronous counterpart; requires completed preload(). */
|
|
3
3
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
4
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
4
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
6
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
7
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
8
8
|
/** Initializes this independently loaded WASM subpath. */
|
|
9
9
|
export declare const preload: () => Promise<void>;
|
|
10
10
|
export declare const version: () => Promise<string>;
|
|
11
11
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
12
12
|
export { CompressError } from "../../../core/types.js";
|
|
13
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
13
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
14
14
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/bz2/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/bz2/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -7,9 +7,9 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
7
7
|
export declare const createCompressStream: (opts?: import("./index.js").CompressOptions) => Promise<import("./index.js").CompressStream>;
|
|
8
8
|
/** Synchronous counterpart; requires completed preload(). */
|
|
9
9
|
export declare const createCompressStreamSync: (opts?: import("./index.js").CompressOptions) => import("./index.js").CompressStream;
|
|
10
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
10
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
12
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
13
13
|
export declare const compressionStream: (opts?: import("./index.js").CompressionStreamOptions) => TransformStream<Uint8Array, Uint8Array>;
|
|
14
14
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
@@ -17,6 +17,6 @@ export declare const preload: () => Promise<void>;
|
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
18
18
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
19
19
|
export { CompressError } from "../../core/types.js";
|
|
20
|
-
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, AlgorithmName, } from "../../core/types.js";
|
|
20
|
+
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
21
21
|
export type { CompressStream, DecompressStream } from "../../core/dispatch.js";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/bz2/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/bz2/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const decompress: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Promise<Uint8Array>;
|
|
2
2
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
3
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
4
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
3
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
4
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
5
5
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
6
6
|
export declare const preload: () => Promise<void>;
|
|
7
7
|
export declare const version: () => Promise<string>;
|
|
8
8
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
9
9
|
export { CompressError } from "../../../core/types.js";
|
|
10
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
10
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
11
11
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/deflate/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/deflate/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -4,14 +4,14 @@ export declare const decompress: (input: Uint8Array, opts?: import("./index.js")
|
|
|
4
4
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
5
5
|
export declare const createCompressStream: (opts?: import("./index.js").CompressOptions) => Promise<import("./index.js").CompressStream>;
|
|
6
6
|
export declare const createCompressStreamSync: (opts?: import("./index.js").CompressOptions) => import("./index.js").CompressStream;
|
|
7
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
8
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
7
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
8
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
9
9
|
export declare const compressionStream: (opts?: import("./index.js").CompressionStreamOptions) => TransformStream<Uint8Array, Uint8Array>;
|
|
10
10
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
11
11
|
export declare const preload: () => Promise<void>;
|
|
12
12
|
export declare const version: () => Promise<string>;
|
|
13
13
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
14
14
|
export { CompressError } from "../../core/types.js";
|
|
15
|
-
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, AlgorithmName, } from "../../core/types.js";
|
|
15
|
+
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
16
16
|
export type { CompressStream, DecompressStream } from "../../core/dispatch.js";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/deflate/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/deflate/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const decompress: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Promise<Uint8Array>;
|
|
2
2
|
/** Synchronous counterpart; requires completed preload(). */
|
|
3
3
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
4
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
4
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
6
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
7
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
8
8
|
/** Initializes this independently loaded WASM subpath. */
|
|
9
9
|
export declare const preload: () => Promise<void>;
|
|
10
10
|
export declare const version: () => Promise<string>;
|
|
11
11
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
12
12
|
export { CompressError } from "../../../core/types.js";
|
|
13
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
13
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
14
14
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/gzip/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/gzip/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
Binary file
|
|
@@ -7,9 +7,9 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
7
7
|
export declare const createCompressStream: (opts?: import("./index.js").CompressOptions) => Promise<import("./index.js").CompressStream>;
|
|
8
8
|
/** Synchronous counterpart; requires completed preload(). */
|
|
9
9
|
export declare const createCompressStreamSync: (opts?: import("./index.js").CompressOptions) => import("./index.js").CompressStream;
|
|
10
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
10
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
12
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
13
13
|
export declare const compressionStream: (opts?: import("./index.js").CompressionStreamOptions) => TransformStream<Uint8Array, Uint8Array>;
|
|
14
14
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
@@ -17,6 +17,6 @@ export declare const preload: () => Promise<void>;
|
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
18
18
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
19
19
|
export { CompressError } from "../../core/types.js";
|
|
20
|
-
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, AlgorithmName, } from "../../core/types.js";
|
|
20
|
+
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
21
21
|
export type { CompressStream, DecompressStream } from "../../core/dispatch.js";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/gzip/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/gzip/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const decompress: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Promise<Uint8Array>;
|
|
2
2
|
/** Synchronous counterpart; requires completed preload(). */
|
|
3
3
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
4
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
4
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
6
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
7
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
8
8
|
/** Initializes this independently loaded WASM subpath. */
|
|
9
9
|
export declare const preload: () => Promise<void>;
|
|
10
10
|
export declare const version: () => Promise<string>;
|
|
11
11
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
12
12
|
export { CompressError } from "../../../core/types.js";
|
|
13
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
13
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
14
14
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/lz4/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/lz4/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
Binary file
|
|
@@ -7,9 +7,9 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
7
7
|
export declare const createCompressStream: (opts?: import("./index.js").CompressOptions) => Promise<import("./index.js").CompressStream>;
|
|
8
8
|
/** Synchronous counterpart; requires completed preload(). */
|
|
9
9
|
export declare const createCompressStreamSync: (opts?: import("./index.js").CompressOptions) => import("./index.js").CompressStream;
|
|
10
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
10
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
12
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
13
13
|
export declare const compressionStream: (opts?: import("./index.js").CompressionStreamOptions) => TransformStream<Uint8Array, Uint8Array>;
|
|
14
14
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
@@ -17,6 +17,6 @@ export declare const preload: () => Promise<void>;
|
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
18
18
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
19
19
|
export { CompressError } from "../../core/types.js";
|
|
20
|
-
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, AlgorithmName, } from "../../core/types.js";
|
|
20
|
+
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
21
21
|
export type { CompressStream, DecompressStream } from "../../core/dispatch.js";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/lz4/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/lz4/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
Binary file
|
|
@@ -10,11 +10,11 @@ export declare const preload: () => Promise<void>;
|
|
|
10
10
|
export declare const version: () => Promise<string>;
|
|
11
11
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
12
12
|
export { CompressError } from "../../../core/types.js";
|
|
13
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
13
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
14
14
|
/** Creates an incremental raw-block decoder; write() emits output as input arrives. */
|
|
15
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
15
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
16
16
|
/** Requires completed preload(), like other synchronous stream factories. */
|
|
17
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
17
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
18
18
|
/** Incrementally decodes one raw block through Web Streams. */
|
|
19
19
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
20
20
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/lz4_raw/decompress/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAQhE;;;GAGG;AACH,wBAAsB,UAAU,CAC5B,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,UAAU,CAAC,CAGrB;AACD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAG7F;AACD,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/lz4_raw/decompress/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAQhE;;;GAGG;AACH,wBAAsB,UAAU,CAC5B,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,UAAU,CAAC,CAGrB;AACD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAG7F;AACD,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAExG,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -12,11 +12,11 @@ export declare const preload: () => Promise<void>;
|
|
|
12
12
|
export declare const version: () => Promise<string>;
|
|
13
13
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
14
14
|
export { CompressError } from "../../core/types.js";
|
|
15
|
-
export type { CompressOptions, DecompressOptions, AlgorithmName } from "../../core/types.js";
|
|
15
|
+
export type { CompressOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
16
16
|
/** Creates an incremental raw-block decoder; write() emits output as input arrives. */
|
|
17
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
17
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
18
18
|
/** Requires completed preload(), like other synchronous stream factories. */
|
|
19
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
19
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
20
20
|
/** Incrementally decodes one raw block through Web Streams. */
|
|
21
21
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
22
22
|
export type { DecompressStream } from "../../core/dispatch.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/lz4_raw/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD;;;GAGG;AACH,wBAAsB,UAAU,CAC5B,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,UAAU,CAAC,CAGrB;AACD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAG7F;AACD,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/lz4_raw/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD;;;GAGG;AACH,wBAAsB,UAAU,CAC5B,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,UAAU,CAAC,CAGrB;AACD,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAG7F;AACD,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAE7B,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/algorithms/lz4_raw/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,MAAM,QAAQ,GAAG,aAAa,CAAC,eAAe,CAC1C,SAAS,CAAC,MAAM,EAChB,SAAS,EACT,IAAI,GAAG,CAAC,iBAAiB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC;AAClD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC5B,KAAiB,EACjB,OAAO,GAAsB,EAAE;IAE/B,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AACD,yDAAyD;AACzD,MAAM,UAAU,cAAc,CAAC,KAAiB,EAAE,OAAO,GAAsB,EAAE;IAC7E,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AACD,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/algorithms/lz4_raw/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,MAAM,QAAQ,GAAG,aAAa,CAAC,eAAe,CAC1C,SAAS,CAAC,MAAM,EAChB,SAAS,EACT,IAAI,GAAG,CAAC,iBAAiB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC;AAClD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC5B,KAAiB,EACjB,OAAO,GAAsB,EAAE;IAE/B,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AACD,yDAAyD;AACzD,MAAM,UAAU,cAAc,CAAC,KAAiB,EAAE,OAAO,GAAsB,EAAE;IAC7E,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AACD,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAQpD,uFAAuF;AACvF,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,CAAC;AACtE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,0BAA0B,CAAC;AAC9E,+DAA+D;AAC/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,mBAAmB,CAAC"}
|
|
@@ -12,10 +12,11 @@ export declare const version: () => Promise<string>;
|
|
|
12
12
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
13
13
|
export { CompressError } from "../../../core/types.js";
|
|
14
14
|
/** Creates an incremental raw-block decoder; write() emits output as input arrives. */
|
|
15
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
15
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
16
16
|
/** Requires completed preload(), like other synchronous stream factories. */
|
|
17
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
17
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
18
18
|
/** Incrementally decodes one raw block through Web Streams. */
|
|
19
19
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
20
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
20
21
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/lzo/decompress/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3E;;;GAGG;AACH,wBAAsB,UAAU,CAC5B,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,UAAU,CAAC,CAGrB;AACD,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAG7F;AACD,+EAA+E;AAC/E,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/lzo/decompress/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3E;;;GAGG;AACH,wBAAsB,UAAU,CAC5B,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,UAAU,CAAC,CAGrB;AACD,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAG7F;AACD,+EAA+E;AAC/E,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const decompress: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Promise<Uint8Array>;
|
|
2
2
|
/** Synchronous counterpart; requires completed preload(). */
|
|
3
3
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
4
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
4
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
6
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
7
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
8
8
|
/** Initializes this independently loaded WASM subpath. */
|
|
9
9
|
export declare const preload: () => Promise<void>;
|
|
10
10
|
export declare const version: () => Promise<string>;
|
|
11
11
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
12
12
|
export { CompressError } from "../../../core/types.js";
|
|
13
|
-
export type { DecompressOptions, AlgorithmName } from "../../../core/types.js";
|
|
13
|
+
export type { DecompressOptions, DecompressStreamOptions, AlgorithmName } from "../../../core/types.js";
|
|
14
14
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/snappy/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithms/snappy/decompress/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
Binary file
|
|
@@ -7,9 +7,9 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
7
7
|
export declare const createCompressStream: (opts?: import("./index.js").CompressOptions) => Promise<import("./index.js").CompressStream>;
|
|
8
8
|
/** Synchronous counterpart; requires completed preload(). */
|
|
9
9
|
export declare const createCompressStreamSync: (opts?: import("./index.js").CompressOptions) => import("./index.js").CompressStream;
|
|
10
|
-
export declare const createDecompressStream: () => Promise<import("./index.js").DecompressStream>;
|
|
10
|
+
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
|
-
export declare const createDecompressStreamSync: () => import("./index.js").DecompressStream;
|
|
12
|
+
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
13
13
|
export declare const compressionStream: (opts?: import("./index.js").CompressionStreamOptions) => TransformStream<Uint8Array, Uint8Array>;
|
|
14
14
|
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
@@ -17,6 +17,6 @@ export declare const preload: () => Promise<void>;
|
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
18
18
|
export declare const setMaxDecompressedSize: (bytes: number) => Promise<void>;
|
|
19
19
|
export { CompressError } from "../../core/types.js";
|
|
20
|
-
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, AlgorithmName, } from "../../core/types.js";
|
|
20
|
+
export type { CompressOptions, CompressionStreamOptions, DecompressOptions, DecompressStreamOptions, AlgorithmName, } from "../../core/types.js";
|
|
21
21
|
export type { CompressStream, DecompressStream } from "../../core/dispatch.js";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/snappy/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/algorithms/snappy/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,QAAQ,yFAAoB,CAAC;AAC1C,6DAA6D;AAC7D,eAAO,MAAM,YAAY,gFAAwB,CAAC;AAClD,eAAO,MAAM,UAAU,2FAAsB,CAAC;AAC9C,6DAA6D;AAC7D,eAAO,MAAM,cAAc,kFAA0B,CAAC;AACtD,eAAO,MAAM,oBAAoB,+FAAgC,CAAC;AAClE,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB,sFAAoC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,+CAA+B,CAAC;AAChE,0DAA0D;AAC1D,eAAO,MAAM,OAAO,qBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,uBAAmB,CAAC;AACxC,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EACR,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
Binary file
|
|
Binary file
|