Skip to content

Commit

Permalink
Remove decompress-internal.js and pathToBitJS for decompress.
Browse files Browse the repository at this point in the history
  • Loading branch information
codedread committed Dec 13, 2023
1 parent d557383 commit eeb228a
Show file tree
Hide file tree
Showing 9 changed files with 369 additions and 482 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ unzipper.update(anArrayBufferWithYetMoreBytes);

const nodeBuffer = fs.readFileSync('comic.cbz');
const ab = nodeBuffer.buffer.slice(nodeBuffer.byteOffset, nodeBuffer.byteOffset + nodeBuffer.length);
const unarchiver = getUnarchiver(ab, { pathToBitJS: './' });
const unarchiver = getUnarchiver(ab);
unarchiver.addEventListener('progress', () => process.stdout.write('.'));
unarchiver.addEventListener('extract', (evt) => {
const extractedFile = evt.unarchivedFile;
Expand Down
3 changes: 1 addition & 2 deletions archive/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
import { UnarchiveAppendEvent, UnarchiveErrorEvent, UnarchiveEvent, UnarchiveEventType,
UnarchiveExtractEvent, UnarchiveFinishEvent, UnarchiveInfoEvent,
UnarchiveProgressEvent, UnarchiveStartEvent } from './events.js';
import { Unarchiver } from './decompress-internal.js';
import { Unzipper, Unrarrer, Untarrer, getUnarchiver } from './decompress.js';
import { Unarchiver, Unzipper, Unrarrer, Untarrer, getUnarchiver } from './decompress.js';

export {
UnarchiveAppendEvent,
Expand Down
284 changes: 0 additions & 284 deletions archive/decompress-internal.js

This file was deleted.

Loading

0 comments on commit eeb228a

Please sign in to comment.