@medicomind/rolldown-compression-wasm32-wasi 2.4.1 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicomind/rolldown-compression-wasm32-wasi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"main": "rolldown-compression.wasi.cjs",
|
|
5
5
|
"files": [
|
|
6
6
|
"rolldown-compression.wasm32-wasi.wasm",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"browser": "rolldown-compression.wasi-browser.js",
|
|
44
44
|
"type": "module",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@napi-rs/wasm-runtime": "~1.2.
|
|
47
|
-
"@emnapi/core": "2.0.0-alpha.
|
|
48
|
-
"@emnapi/runtime": "2.0.0-alpha.
|
|
46
|
+
"@napi-rs/wasm-runtime": "~1.2.3",
|
|
47
|
+
"@emnapi/core": "2.0.0-alpha.5",
|
|
48
|
+
"@emnapi/runtime": "2.0.0-alpha.5"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -54,11 +54,15 @@ export interface CompressTask {
|
|
|
54
54
|
/** Brotli only: log2 window size (10-24, default 22). */
|
|
55
55
|
windowBits?: number
|
|
56
56
|
/**
|
|
57
|
-
* Brotli only: target section size in bytes
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
57
|
+
* Brotli only: target section size in bytes when a large input is
|
|
58
|
+
* split across the brotli worker pool; inputs at least twice this
|
|
59
|
+
* size take the multithreaded path. Defaults to two windows
|
|
60
|
+
* (`2^(windowBits + 1)` bytes), i.e. 8 MiB and multithreading from
|
|
61
|
+
* 16 MiB at the default window.
|
|
62
|
+
*
|
|
63
|
+
* Smaller sections finish large files faster and cost compression
|
|
64
|
+
* ratio. The encoder segments between 64 KiB and 16 MiB, and values
|
|
65
|
+
* outside that range are clamped to it.
|
|
62
66
|
*/
|
|
63
67
|
sectionSize?: number
|
|
64
68
|
}
|
|
Binary file
|