@vitessce/all 3.3.6 → 3.3.8

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.
@@ -1,28 +0,0 @@
1
- import { p as pako } from "./pako.esm-856454b6-c5c8cd15.js";
2
- var _a;
3
- const GZip = (_a = class {
4
- constructor(level = 1) {
5
- if (level < 0 || level > 9) {
6
- throw new Error("Invalid gzip compression level, it should be between 0 and 9");
7
- }
8
- this.level = level;
9
- }
10
- static fromConfig({ level }) {
11
- return new _a(level);
12
- }
13
- encode(data) {
14
- const gzipped = pako.gzip(data, { level: this.level });
15
- return gzipped;
16
- }
17
- decode(data, out) {
18
- const uncompressed = pako.ungzip(data);
19
- if (out !== void 0) {
20
- out.set(uncompressed);
21
- return out;
22
- }
23
- return uncompressed;
24
- }
25
- }, _a.codecId = "gzip", _a);
26
- export {
27
- GZip as default
28
- };