Skip to content

Commit a6ea694

Browse files
fix: use fflate instead of pako (#81)
1 parent b461fde commit a6ea694

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@
2626
"tsc-build": "tsc --project tsconfig.build.json"
2727
},
2828
"dependencies": {
29-
"iobuffer": "^6.0.0",
30-
"pako": "^2.1.0"
29+
"fflate": "^0.8.2",
30+
"iobuffer": "^6.0.0"
3131
},
3232
"devDependencies": {
3333
"@types/node": "^24.2.1",
34-
"@types/pako": "^2.0.3",
3534
"@vitest/coverage-v8": "^3.2.4",
3635
"@zakodium/tsconfig": "^1.0.2",
3736
"eslint": "^9.33.0",

src/zlib.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { inflate } from 'pako';
1+
import { decompressSync } from 'fflate';
22

33
export function decompressZlib(stripData: DataView): DataView {
44
const stripUint8 = new Uint8Array(
55
stripData.buffer,
66
stripData.byteOffset,
77
stripData.byteLength,
88
);
9-
const inflated = inflate(stripUint8);
9+
const inflated = decompressSync(stripUint8);
10+
1011
return new DataView(
1112
inflated.buffer,
1213
inflated.byteOffset,

0 commit comments

Comments
 (0)