compress-utils 0.11.1 → 0.12.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 +44 -112
- package/THIRD_PARTY_NOTICES.md +42 -8
- 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 +2 -2
- package/dist/algorithms/brotli/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/brotli/index.d.ts +1 -1
- 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 +2 -2
- package/dist/algorithms/bz2/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/bz2/index.d.ts +1 -1
- package/dist/algorithms/bz2/index.d.ts.map +1 -1
- package/dist/algorithms/deflate/decompress/index.d.ts +2 -2
- package/dist/algorithms/deflate/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/deflate/index.d.ts +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- package/dist/algorithms/lz4_raw/decompress/index.d.ts.map +1 -1
- package/dist/algorithms/lz4_raw/decompress/index.js.map +1 -1
- package/dist/algorithms/lz4_raw/index.d.ts +1 -1
- package/dist/algorithms/lz4_raw/index.d.ts.map +1 -1
- package/dist/algorithms/lzo/decompress/index.d.ts +2 -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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/algorithms/zstd/index.d.ts.map +1 -1
- package/dist/algorithms/zstd/zstd.wasm +0 -0
- package/dist/core/dispatch.d.ts +9 -9
- package/dist/core/dispatch.d.ts.map +1 -1
- package/dist/core/dispatch.js +21 -17
- package/dist/core/dispatch.js.map +1 -1
- package/dist/core/loader.d.ts +5 -1
- package/dist/core/loader.d.ts.map +1 -1
- package/dist/core/loader.js +4 -1
- package/dist/core/loader.js.map +1 -1
- package/dist/core/types.d.ts +8 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/wasm-source/resolve-node-source.mjs +2 -0
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/dupontcyborg/compress-utils/actions/workflows/build_and_test_wasm.yml)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
One portable API for Zstandard, Brotli, zlib, gzip, bzip2, LZ4, XZ/LZMA and Snappy, plus raw DEFLATE, LZ4 blocks and LZO decoding, in every JavaScript runtime, with decompression ahead of or on par with every other JavaScript and WASM library we tested. Tree-shakeable per-algorithm imports with TypeScript types included, all backed by one C core compiled to WebAssembly.
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -14,23 +14,7 @@ npm install compress-utils
|
|
|
14
14
|
# or: pnpm add / yarn add / bun add / deno add npm:compress-utils
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
The package is published as ESM. You can pull it straight from a CDN, with no install step and no build step.
|
|
20
|
-
|
|
21
|
-
```html
|
|
22
|
-
<script type="module">
|
|
23
|
-
import { compress, decompress } from "https://esm.sh/compress-utils/zstd";
|
|
24
|
-
|
|
25
|
-
const out = await compress(new TextEncoder().encode("hello"));
|
|
26
|
-
</script>
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
| CDN | Per-algo URL |
|
|
30
|
-
|----------|-------------------------------------------------------------------------------|
|
|
31
|
-
| esm.sh | `https://esm.sh/compress-utils/<algo>` |
|
|
32
|
-
| jsDelivr | `https://cdn.jsdelivr.net/npm/compress-utils/dist/algorithms/<algo>/index.js` |
|
|
33
|
-
| unpkg | `https://unpkg.com/compress-utils/dist/algorithms/<algo>/index.js` |
|
|
17
|
+
ESM only, with TypeScript types for every subpath and no system dependencies. Tested in CI on Node 20, 22 and 24, Bun, Deno 2.x and Chromium, Firefox and WebKit; it also loads from a CDN such as esm.sh ([CDN usage](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#cdn-no-bundler)).
|
|
34
18
|
|
|
35
19
|
## Quick start
|
|
36
20
|
|
|
@@ -45,7 +29,41 @@ const compressed = await compress(input, { level: 9 });
|
|
|
45
29
|
const restored = await decompress(compressed);
|
|
46
30
|
```
|
|
47
31
|
|
|
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 [
|
|
32
|
+
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](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#bundle-size).
|
|
33
|
+
|
|
34
|
+
## Performance
|
|
35
|
+
|
|
36
|
+
<!-- bench:start -->
|
|
37
|
+
<picture>
|
|
38
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/dupontcyborg/compress-utils/main/docs/benchmarks/img/readme-wasm-dark.png">
|
|
39
|
+
<img src="https://raw.githubusercontent.com/dupontcyborg/compress-utils/main/docs/benchmarks/img/readme-wasm-light.png" alt="Compression ratio against throughput in MB/s on a log axis for compress-utils for JavaScript and brotli-wasm, fflate, fzstd, lz4js, pako, snappyjs and zstd-wasm, one row per algorithm (zstd, brotli, zlib, xz, lz4, snappy, bz2) with compress on the left and decompress on the right, dickens one-shot on AWS c8g.xlarge (Graviton4, arm64), 2026-10-29" width="830">
|
|
40
|
+
</picture>
|
|
41
|
+
|
|
42
|
+
compress-utils for JavaScript against other JavaScript compression libraries: speed against compression ratio.
|
|
43
|
+
|
|
44
|
+
Measured on AWS c8g.xlarge (Graviton4), dickens (10.2 MB of text), one-shot, 2026-10-29.
|
|
45
|
+
|
|
46
|
+
Full results [here](https://github.com/dupontcyborg/compress-utils/blob/main/docs/benchmarks/wasm.md).
|
|
47
|
+
<!-- bench:end -->
|
|
48
|
+
|
|
49
|
+
<!-- size:start -->
|
|
50
|
+
### Bundle size
|
|
51
|
+
|
|
52
|
+
Gzipped size in KiB of each algorithm's `.wasm` module (`gzip -9`, measured on the build of 2026-10-29): the default import ships both directions, while the `/compress` and `/decompress` subpaths ship only one.
|
|
53
|
+
|
|
54
|
+
| Algorithm | Compress only | Decompress only | Both |
|
|
55
|
+
| :--- | ---: | ---: | ---: |
|
|
56
|
+
| zstd | 100.2 | 38.3 | 124.3 |
|
|
57
|
+
| brotli | 152.1 | 85.0 | 168.8 |
|
|
58
|
+
| zlib | 35.5 | 31.5 | 45.1 |
|
|
59
|
+
| gzip | 35.2 | 31.4 | 44.9 |
|
|
60
|
+
| xz | 52.2 | 47.0 | 64.8 |
|
|
61
|
+
| lz4 | 34.2 | 20.3 | 43.4 |
|
|
62
|
+
| bz2 | 25.5 | 23.1 | 35.7 |
|
|
63
|
+
| snappy | 12.2 | 15.1 | 17.2 |
|
|
64
|
+
|
|
65
|
+
Each algorithm is a separate module and unused code is tree-shaken, so a page pays only for the algorithms and directions it imports. How the modules were made smaller: [wasm-size.md](https://github.com/dupontcyborg/compress-utils/blob/main/docs/wasm-size.md).
|
|
66
|
+
<!-- size:end -->
|
|
49
67
|
|
|
50
68
|
## Supported algorithms
|
|
51
69
|
|
|
@@ -67,11 +85,11 @@ Available subpaths: `compress-utils/zstd`, `/brotli`, `/zlib`, `/bz2`, `/lz4`, `
|
|
|
67
85
|
| LZO1X | `compress-utils/lzo/decompress` | Raw LZO1X block (decompression only) |
|
|
68
86
|
<!-- END:algorithms -->
|
|
69
87
|
|
|
70
|
-
Imports are independent: `import "compress-utils/zstd"` and `import "compress-utils/brotli"` pull in two separate `.wasm` modules, not a combined bundle. Files are marked `"sideEffects": false` so unused exports are tree-shaken aggressively. For per-module `.wasm` sizes, and the smaller decode-only and encode-only builds, see [
|
|
88
|
+
Imports are independent: `import "compress-utils/zstd"` and `import "compress-utils/brotli"` pull in two separate `.wasm` modules, not a combined bundle. Files are marked `"sideEffects": false` so unused exports are tree-shaken aggressively. For per-module `.wasm` sizes, and the smaller decode-only and encode-only builds, see [bundle size](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#bundle-size).
|
|
71
89
|
|
|
72
90
|
### Raw blocks and output capacity
|
|
73
91
|
|
|
74
|
-
Raw block formats such as those inside Parquet and ORC pages don't record their decompressed size
|
|
92
|
+
Raw block formats such as those inside Parquet and ORC pages don't record their decompressed size, so pass `expectedSize`, an upper bound on the output; the result holds only the bytes actually decoded. More in the [advanced guide](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#raw-blocks-and-output-capacity).
|
|
75
93
|
|
|
76
94
|
```ts
|
|
77
95
|
import { decompress } from "compress-utils/lz4_raw";
|
|
@@ -79,8 +97,6 @@ import { decompress } from "compress-utils/lz4_raw";
|
|
|
79
97
|
const page = await decompress(block, { expectedSize: uncompressedPageSize });
|
|
80
98
|
```
|
|
81
99
|
|
|
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.
|
|
83
|
-
|
|
84
100
|
## Streaming
|
|
85
101
|
|
|
86
102
|
### Web Streams
|
|
@@ -105,23 +121,7 @@ chunks.push(cs.finish());
|
|
|
105
121
|
// cs is destroyed automatically on scope exit (TS 5.2+ / Node 22+).
|
|
106
122
|
```
|
|
107
123
|
|
|
108
|
-
|
|
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.
|
|
124
|
+
Without `using`, call `cs.destroy()` explicitly. To stop at the end of one frame and get the bytes after it, create the decoder with `{ singleStream: true }`; see [stopping at the end of a stream](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#stopping-at-the-end-of-a-stream).
|
|
125
125
|
|
|
126
126
|
## Compression levels
|
|
127
127
|
|
|
@@ -134,6 +134,8 @@ await compress(input, { level: 10 }); // smallest
|
|
|
134
134
|
|
|
135
135
|
## Errors and limits
|
|
136
136
|
|
|
137
|
+
Decompression is bounded by default: output is capped at 1 GiB, so a hostile or corrupt input cannot exhaust memory. Change the cap with `setMaxDecompressedSize`, and see the [untrusted input guidance](https://github.com/dupontcyborg/compress-utils#untrusted-input) in the project README for what else to set when you decompress data you don't control.
|
|
138
|
+
|
|
137
139
|
Every failure throws a `CompressError`, which carries the underlying C status code and the algorithm name:
|
|
138
140
|
|
|
139
141
|
```ts
|
|
@@ -146,81 +148,11 @@ try {
|
|
|
146
148
|
}
|
|
147
149
|
```
|
|
148
150
|
|
|
149
|
-
`await version()` returns the library version (for example `"0.
|
|
150
|
-
|
|
151
|
-
## Preloading and synchronous calls
|
|
152
|
-
|
|
153
|
-
Each algorithm and direction-specific subpath exports `preload()`. It loads and initializes that subpath's WASM module once, and concurrent calls share initialization. A failed initialization can be retried. No codec work is performed by preload.
|
|
154
|
-
|
|
155
|
-
```ts
|
|
156
|
-
import { preload, compressSync, decompressSync } from "compress-utils/zlib";
|
|
157
|
-
await preload();
|
|
158
|
-
const compressed = compressSync(new TextEncoder().encode("hello"));
|
|
159
|
-
const restored = decompressSync(compressed);
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
`compressSync`, `decompressSync`, `createCompressStreamSync`, and `createDecompressStreamSync` are available for the directions exposed by the subpath. They throw with a `preload()` instruction before initialization completes. Existing asynchronous APIs initialize automatically and also enable subsequent synchronous calls. Initializing one subpath does not initialize another, because encoder and decoder subpaths use different WASM modules.
|
|
151
|
+
`await version()` returns the library version (for example `"0.12.0"`), and `await setMaxDecompressedSize(bytes)` caps `decompress` for every algorithm (default 1 GiB; `0` = unbounded). Streams have no limit unless you pass one: `createDecompressStream({ maxOutput })` and `decompressionStream({ maxOutput })` throw a `CompressError` once the output passes it.
|
|
163
152
|
|
|
164
153
|
## Concurrency
|
|
165
154
|
|
|
166
|
-
Each WASM module instance runs on the thread that loaded it, so nothing is shared between workers: every Worker initializes its own instance and keeps its own streams. Synchronous calls block the calling thread, so run expensive ones in a Worker
|
|
167
|
-
|
|
168
|
-
## Bundle size
|
|
169
|
-
|
|
170
|
-
Importing `compress-utils/<algo>` gives you the **full** codec, compress *and* decompress. If you only need one direction (a browser that just *decompresses* fetched assets is the common case), import a directional subpath and the other half is dead-stripped from the `.wasm` entirely:
|
|
171
|
-
|
|
172
|
-
```ts
|
|
173
|
-
// decoder only, 36 KB gzipped for zstd
|
|
174
|
-
import { decompress } from "compress-utils/zstd/decompress";
|
|
175
|
-
|
|
176
|
-
// or, encoder only:
|
|
177
|
-
import { compress } from "compress-utils/zstd/compress";
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
- **`/decompress`** exposes `decompress`, `createDecompressStream`, `decompressionStream`, `setMaxDecompressedSize` and `version`.
|
|
181
|
-
- **`/compress`** exposes `compress`, `createCompressStream`, `compressionStream` and `version`.
|
|
182
|
-
- The default subpath keeps **both**.
|
|
183
|
-
|
|
184
|
-
Gzipped `.wasm` sizes:
|
|
185
|
-
|
|
186
|
-
| algo | full | decompress-only | compress-only |
|
|
187
|
-
|--------|-----:|----------------:|--------------:|
|
|
188
|
-
| zstd | 128K | 36K | 106K |
|
|
189
|
-
| brotli | 169K | 84K | 154K |
|
|
190
|
-
| lz4 | 39K | 15K | 35K |
|
|
191
|
-
| bz2 | 33K | 22K | 25K |
|
|
192
|
-
| xz | 62K | 43K | 51K |
|
|
193
|
-
| zlib | 33K | 25K | 26K |
|
|
194
|
-
| snappy | 36K | 32K | 28K |
|
|
195
|
-
| gzip | 80K | 52K | 60K |
|
|
196
|
-
|
|
197
|
-
The `.wasm` is the bulk of what ships. The JS glue is a few KB, shared, and tree-shaken to the methods you import.
|
|
198
|
-
|
|
199
|
-
## Runtime support
|
|
200
|
-
|
|
201
|
-
Tested in CI on every release:
|
|
202
|
-
|
|
203
|
-
| Runtime | Status |
|
|
204
|
-
|------------------------------------------|--------|
|
|
205
|
-
| Node 20, 22, 24 | ✅ |
|
|
206
|
-
| Bun | ✅ |
|
|
207
|
-
| Deno 2.x | ✅ |
|
|
208
|
-
| Chromium / Firefox / WebKit (Playwright) | ✅ |
|
|
209
|
-
|
|
210
|
-
## TypeScript
|
|
211
|
-
|
|
212
|
-
The package is TypeScript-first. `.d.ts` files ship alongside the JS for every subpath, so no `@types/` package is needed.
|
|
213
|
-
|
|
214
|
-
```ts
|
|
215
|
-
import { compress, type CompressOptions, type CompressError } from "compress-utils/zstd";
|
|
216
|
-
|
|
217
|
-
const opts: CompressOptions = { level: 7 };
|
|
218
|
-
const compressed: Uint8Array = await compress(input, opts);
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
## Performance
|
|
222
|
-
|
|
223
|
-
Overhead versus native C is **0.60–0.84× on compress and 0.50–1.00× on decompress**. WASM is the slowest binding across the board: zstd and brotli decode are the worst cases because they lean on native SIMD, while lz4 decode is memory-bound and costs nothing extra in the sandbox. The reasons to choose this binding are portability, one API in every runtime, and the small per-codec bundles above, rather than beating native `node:zlib`. Compression ratio is byte-identical to every other binding. See the [language comparison](https://github.com/dupontcyborg/compress-utils/blob/main/benchmarks/README.md#language-comparison) for methodology and the full chart.
|
|
155
|
+
Each WASM module instance runs on the thread that loaded it, so nothing is shared between workers: every Worker initializes its own instance and keeps its own streams. Synchronous calls block the calling thread, so run expensive ones in a Worker; see [preloading and synchronous calls](https://github.com/dupontcyborg/compress-utils/blob/main/docs/bindings/wasm-advanced.md#preloading-and-synchronous-calls).
|
|
224
156
|
|
|
225
157
|
## License
|
|
226
158
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -45,7 +45,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
45
45
|
|
|
46
46
|
## Brotli
|
|
47
47
|
|
|
48
|
-
- **Source**: https://github.com/google/brotli at `v1.2.
|
|
48
|
+
- **Source**: https://github.com/google/brotli at `v1.2.1` (`third_party/brotli/`)
|
|
49
49
|
- **License**: MIT
|
|
50
50
|
|
|
51
51
|
```text
|
|
@@ -70,15 +70,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
70
70
|
THE SOFTWARE.
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
## zlib
|
|
73
|
+
## zlib-ng
|
|
74
74
|
|
|
75
|
-
- **Source**: https://github.com/
|
|
76
|
-
- **License**: Zlib
|
|
75
|
+
- **Source**: https://github.com/zlib-ng/zlib-ng at `2.3.3` (`third_party/zlib/`), built in zlib-compatible mode. Provides zlib, gzip and raw DEFLATE.
|
|
76
|
+
- **License**: Zlib. Contributors named in individual file headers (Intel, Cloudflare and others) license their changes under the same terms.
|
|
77
77
|
|
|
78
78
|
```text
|
|
79
79
|
Copyright notice:
|
|
80
80
|
|
|
81
|
-
(C) 1995-
|
|
81
|
+
(C) 1995-2024 Jean-loup Gailly and Mark Adler
|
|
82
82
|
|
|
83
83
|
This software is provided 'as-is', without any express or implied
|
|
84
84
|
warranty. In no event will the authors be held liable for any damages
|
|
@@ -202,10 +202,44 @@ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
|
202
202
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
203
203
|
```
|
|
204
204
|
|
|
205
|
-
## snappy-
|
|
205
|
+
## snappy (first-party core)
|
|
206
206
|
|
|
207
|
-
- **Source**: https://github.com/andikleen/snappy-c at `fef67ac6effb40c83fb5e37eaf243381fa056f9b
|
|
208
|
-
- **License**: BSD-3-Clause
|
|
207
|
+
- **Source**: `src/algorithms/snappy/core/` — original code that implements the Snappy raw block format; its design follows Google's snappy (https://github.com/google/snappy) and Andi Kleen's C port of it (https://github.com/andikleen/snappy-c at `fef67ac6effb40c83fb5e37eaf243381fa056f9b`, the codec it replaced). See `src/algorithms/snappy/core/PROVENANCE.md`.
|
|
208
|
+
- **License**: BSD-3-Clause (Google, Intel); the original parts are under this project's MIT license
|
|
209
|
+
|
|
210
|
+
Google snappy:
|
|
211
|
+
|
|
212
|
+
```text
|
|
213
|
+
Copyright 2005 Google Inc. All Rights Reserved.
|
|
214
|
+
|
|
215
|
+
Redistribution and use in source and binary forms, with or without
|
|
216
|
+
modification, are permitted provided that the following conditions are
|
|
217
|
+
met:
|
|
218
|
+
|
|
219
|
+
* Redistributions of source code must retain the above copyright
|
|
220
|
+
notice, this list of conditions and the following disclaimer.
|
|
221
|
+
* Redistributions in binary form must reproduce the above
|
|
222
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
223
|
+
in the documentation and/or other materials provided with the
|
|
224
|
+
distribution.
|
|
225
|
+
* Neither the name of Google Inc. nor the names of its
|
|
226
|
+
contributors may be used to endorse or promote products derived from
|
|
227
|
+
this software without specific prior written permission.
|
|
228
|
+
|
|
229
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
230
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
231
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
232
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
233
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
234
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
235
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
236
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
237
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
238
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
239
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
snappy-c:
|
|
209
243
|
|
|
210
244
|
```text
|
|
211
245
|
The snappy-c code is under the same license as the original snappy source
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,12 +4,12 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
4
4
|
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
6
|
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
7
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => 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, DecompressStreamOptions, 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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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,EACR,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const createDecompressStream: (opts?: import("./index.js").Decomp
|
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
14
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
16
16
|
export declare const preload: () => Promise<void>;
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
@@ -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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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
|
|
@@ -4,12 +4,12 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
4
4
|
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
6
|
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
7
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => 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, DecompressStreamOptions, 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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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,EACR,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const createDecompressStream: (opts?: import("./index.js").Decomp
|
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
14
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
16
16
|
export declare const preload: () => Promise<void>;
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
@@ -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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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"}
|
|
@@ -2,11 +2,11 @@ export declare const decompress: (input: Uint8Array, opts?: import("./index.js")
|
|
|
2
2
|
export declare const decompressSync: (input: Uint8Array, opts?: import("./index.js").DecompressOptions) => Uint8Array;
|
|
3
3
|
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
4
4
|
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
5
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
5
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => 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, DecompressStreamOptions, 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,yGAAkC,CAAC;AACtE,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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,EACR,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const createCompressStreamSync: (opts?: import("./index.js").Comp
|
|
|
7
7
|
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
8
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
10
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => 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>;
|
|
@@ -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,yGAAkC,CAAC;AACtE,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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
|
|
@@ -4,12 +4,12 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
4
4
|
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
6
|
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
7
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => 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, DecompressStreamOptions, 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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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,EACR,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
Binary file
|
|
@@ -11,7 +11,7 @@ export declare const createDecompressStream: (opts?: import("./index.js").Decomp
|
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
14
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
16
16
|
export declare const preload: () => Promise<void>;
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
@@ -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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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
|
|
@@ -4,12 +4,12 @@ export declare const decompressSync: (input: Uint8Array, opts?: import("./index.
|
|
|
4
4
|
export declare const createDecompressStream: (opts?: import("./index.js").DecompressStreamOptions) => Promise<import("./index.js").DecompressStream>;
|
|
5
5
|
/** Synchronous counterpart; requires completed preload(). */
|
|
6
6
|
export declare const createDecompressStreamSync: (opts?: import("./index.js").DecompressStreamOptions) => import("./index.js").DecompressStream;
|
|
7
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
7
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => 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, DecompressStreamOptions, 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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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,EACR,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
Binary file
|
|
@@ -11,7 +11,7 @@ export declare const createDecompressStream: (opts?: import("./index.js").Decomp
|
|
|
11
11
|
/** Synchronous counterpart; requires completed preload(). */
|
|
12
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
14
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => TransformStream<Uint8Array, Uint8Array>;
|
|
15
15
|
/** Initializes this independently loaded WASM subpath. */
|
|
16
16
|
export declare const preload: () => Promise<void>;
|
|
17
17
|
export declare const version: () => Promise<string>;
|
|
@@ -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,yGAAkC,CAAC;AACtE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,mGAA6B,CAAC;AAC5D,eAAO,MAAM,mBAAmB
|
|
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,qHAA+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,12 +10,12 @@ 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, DecompressStreamOptions, 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
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
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
19
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => TransformStream<Uint8Array, Uint8Array>;
|
|
20
20
|
export type { DecompressStream } from "../../../core/dispatch.js";
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,
|
|
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,EACR,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAEhC,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,yGAAkC,CAAC;AACtE,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gGAAsC,CAAC;AAC9E,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,qHAA+B,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/algorithms/lz4_raw/decompress/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,MAAM,QAAQ,GAAG,aAAa,CAAC,eAAe,CAC1C,SAAS,CAAC,MAAM,EAChB,SAAS,EACT,IAAI,GAAG,CAAC,+BAA+B,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC5D,CAAC;AAEF;;;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,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/algorithms/lz4_raw/decompress/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,MAAM,QAAQ,GAAG,aAAa,CAAC,eAAe,CAC1C,SAAS,CAAC,MAAM,EAChB,SAAS,EACT,IAAI,GAAG,CAAC,+BAA+B,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC5D,CAAC;AAEF;;;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,wBAAwB,CAAC;AAOvD,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"}
|
|
@@ -18,6 +18,6 @@ export declare const createDecompressStream: (opts?: import("./index.js").Decomp
|
|
|
18
18
|
/** Requires completed preload(), like other synchronous stream factories. */
|
|
19
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
|
-
export declare const decompressionStream: () => TransformStream<Uint8Array, Uint8Array>;
|
|
21
|
+
export declare const decompressionStream: (opts?: Pick<import("./index.js").DecompressStreamOptions, "maxOutput">) => TransformStream<Uint8Array, Uint8Array>;
|
|
22
22
|
export type { DecompressStream } from "../../core/dispatch.js";
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,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
|
|
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,qHAA+B,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|