Skip to content

Commit

Permalink
fixed saving KDBX3 files without compression
Browse files Browse the repository at this point in the history
  • Loading branch information
antelle committed May 19, 2021
1 parent 4ee559d commit 09a5f0c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/format/kdbx-header.ts
Expand Up @@ -162,7 +162,7 @@ export class KdbxHeader {
}

private writeCompressionFlags(stm: BinaryStream): void {
if (!this.compression) {
if (typeof this.compression !== 'number') {
throw new KdbxError(ErrorCodes.InvalidState, 'compression is not set');
}
this.writeFieldSize(stm, 4);
Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
{
"name": "kdbxweb",
"version": "2.0.3",
"version": "2.0.4",
"description": "Kdbx KeePass database reader for web",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions release-notes.md
@@ -1,5 +1,8 @@
Release notes
-------------
##### v2.0.4 (2021-05-19)
`-` fixed saving KDBX3 files without compression

##### v2.0.3 (2021-05-14)
`-` fixed a crash in Electron when KDBX3 contains large attachments

Expand Down

0 comments on commit 09a5f0c

Please sign in to comment.