Skip to content

Commit

Permalink
flush after each push in fflate deflate data processor
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Apr 10, 2024
1 parent d8f64a7 commit 8e3bcb1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "armarius-io",
"version": "1.2.0",
"version": "1.2.1",
"description": "IO and compression library for Armarius",
"repository": "github:aternosorg/armarius-io",
"type": "module",
Expand Down
9 changes: 9 additions & 0 deletions src/DataProcessor/Native/NativeDeflateDataProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ export default class NativeDeflateDataProcessor extends NativeStreamDataProcesso
// noinspection JSUnresolvedFunction
return new CompressionStream('deflate-raw');
}

/**
* @inheritDoc
*/
push(data, final) {
if (!final) {
this.flate.flush();
}
}
}

0 comments on commit 8e3bcb1

Please sign in to comment.