first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
export declare const gzip: (data: Uint8Array) => Promise<Uint8Array>;
export declare const ungzip: (data: Uint8Array) => Promise<Uint8Array>;
+11
View File
@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ungzip = exports.gzip = void 0;
const fromStream_1 = require("../streams/fromStream");
const toStream_1 = require("../streams/toStream");
const pipeThrough = async (data, transform) => await (0, fromStream_1.fromStream)((0, toStream_1.toStream)(data).pipeThrough(transform));
const gzip = async (data) => await pipeThrough(data, new CompressionStream('gzip'));
exports.gzip = gzip;
const ungzip = async (data) => await pipeThrough(data, new DecompressionStream('gzip'));
exports.ungzip = ungzip;
//# sourceMappingURL=gzip.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"gzip.js","sourceRoot":"","sources":["../../src/compression/gzip.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AACjD,kDAA6C;AAE7C,MAAM,WAAW,GAAG,KAAK,EACvB,IAAgB,EAChB,SAAuD,EAClC,EAAE,CAAC,MAAM,IAAA,uBAAU,EAAC,IAAA,mBAAQ,EAAC,IAAI,CAAC,CAAC,WAAW,CAAa,SAAS,CAAC,CAAC,CAAC;AAEvF,MAAM,IAAI,GAAG,KAAK,EAAE,IAAgB,EAAuB,EAAE,CAClE,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAD5C,QAAA,IAAI,QACwC;AAElD,MAAM,MAAM,GAAG,KAAK,EAAE,IAAgB,EAAuB,EAAE,CACpE,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;AAD9C,QAAA,MAAM,UACwC"}