Skip to content

Commit

Permalink
Merge pull request #1 from cubetastic33/fix-unzip
Browse files Browse the repository at this point in the history
Fix unzip not working
  • Loading branch information
74Genesis authored Feb 20, 2024
2 parents dbd85a4 + ffc2969 commit 18e234c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Unpack.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs';
import * as path from 'path';
import * as child_process from 'child_process';
import unzipit from 'unzipit';
import { unzip } from 'unzipit';

// TODO: save errors to log
export default class Unpack {
Expand All @@ -21,7 +21,7 @@ export default class Unpack {
this.createDir(o);

const buf = fs.readFileSync(p);
const { entries } = await unzipit.unzip(new Uint8Array(buf));
const { entries } = await unzip(new Uint8Array(buf));

for (const entry of Object.values(entries)) {
if (entry.isDirectory) {
Expand Down

0 comments on commit 18e234c

Please sign in to comment.