Skip to content

Commit

Permalink
🔥 Remove pako in favor of fetch content encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
JulyWitch committed Jan 16, 2025
1 parent 86b0e40 commit 3c8ce6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"dependencies": {
"lucide-react": "^0.469.0",
"pako": "^2.1.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"pako": "^2.1.0",
"@eslint/js": "^9.9.1",
"@types/pako": "^2.0.3",
"@types/react": "^18.3.5",
Expand Down
12 changes: 1 addition & 11 deletions src/utils/search.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { ungzip } from "pako";

interface Icon {
path: string;
keywords: string[];
Expand Down Expand Up @@ -39,15 +37,7 @@ export class IconSearcher {
}

const buf = await response.arrayBuffer();
let data: Uint8Array;

try {
data = ungzip(buf);
console.log("USED PAKO");
} catch {
data = new Uint8Array(buf);
console.log("USED BUF");
}
const data = new Uint8Array(buf);

const {
documents,
Expand Down

0 comments on commit 3c8ce6e

Please sign in to comment.