@keenext/kdbxweb 2.2.0-keenext.2 → 2.2.0-keenext.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/FORK.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Fork of [keeweb/kdbxweb](https://github.com/keeweb/kdbxweb) (MIT, see `LICENSE`) used by KeeNext.
4
4
 
5
- Base: upstream `master` at `7601e45d2a437f35a7fa3d767164eab60bc05d42` (2024-12-23, after release 2.1.1; adds the `DriveWindows` icon fix and build tooling). The repository history has the unmodified import as its own commit, so `git diff <import commit> -- lib test` shows every change listed here.
5
+ Base: upstream `master` at `7601e45d2a437f35a7fa3d767164eab60bc05d42` (2024-12-23, after release 2.1.1; adds the `DriveWindows` icon fix and build tooling). The repository keeps upstream's history up to that commit, so `git diff 7601e45 -- lib test` shows every change listed here.
6
6
 
7
7
  ## Changes to `lib/`
8
8
 
@@ -19,6 +19,7 @@ Base: upstream `master` at `7601e45d2a437f35a7fa3d767164eab60bc05d42` (2024-12-2
19
19
  | Encryption IV length checked per cipher (AES and Twofish 16 bytes, ChaCha20 12); ChaCha20 gets a 12-byte IV in KDBX 3 as well | `format/kdbx-format.ts`, `format/kdbx-header.ts` | Upstream writes a 16-byte IV for ChaCha20 in KDBX 3, which KeePassXC rejects. |
20
20
  | The HMAC of the empty final block of the KDBX 4 block stream is verified | `crypto/hmac-block-transform.ts` | Upstream accepts a stream cut at a block boundary followed by a forged final block. |
21
21
  | Tabs survive XML parsing | `utils/xml-utils.ts` | Upstream's control-character filter removes tabs from all unprotected fields. |
22
+ | Tags are split at `;`, `,` and `:` alone; the surrounding whitespace is trimmed afterwards | `utils/xml-utils.ts` | Upstream's `\s*[;,:]\s*` takes quadratic time on long runs of whitespace: 40,000 spaces in a tags field take seconds, a few hundred kilobytes block the page for minutes. |
22
23
  | Binary dates after 9999-12-31 are clamped to it; unparsable text dates and binary dates shorter than 8 bytes read as absent | `utils/xml-utils.ts` | KeePassDX writes dates far beyond; upstream throws `too large number` and the file does not open (upstream issue #48). |
23
24
  | KDBX 4.1 `LastModificationTime` of custom data and custom icons is written in binary | `format/kdbx-custom-data.ts`, `format/kdbx-meta.ts` | Upstream writes ISO text, which KeePass rejects (upstream issue #49, PR #62). |
24
25
  | An attachment whose binary is missing from the pool is skipped; the entry's other attachments are written | `format/kdbx-entry.ts` | Upstream drops every attachment after the missing one. |
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This is a fork of [keeweb/kdbxweb](https://github.com/keeweb/kdbxweb), published as `@keenext/kdbxweb` and maintained for KeeNext. What differs from upstream is listed in [FORK.md](FORK.md); everything below is upstream's documentation.
4
4
 
5
+ The fork is used by KeeNext, which is alpha software. It has not been independently audited and is provided without warranty, see [LICENSE](LICENSE).
6
+
5
7
  KdbxWeb is a high-performance javascript library for reading/writing KeePass v2 databases (kdbx) in node.js or browser.
6
8
 
7
9
  <br />
package/dist/index.js CHANGED
@@ -1915,7 +1915,7 @@ var KdbxBinaries = class _KdbxBinaries {
1915
1915
  var DateRegex = /\.\d\d\d/;
1916
1916
  var EpochSeconds = 62135596800;
1917
1917
  var LatestDateMs = Date.UTC(9999, 11, 31, 23, 59, 59);
1918
- var TagsSplitRegex = /\s*[;,:]\s*/;
1918
+ var TagsSplitRegex = /[;,:]/;
1919
1919
  var protectedValues = /* @__PURE__ */ new WeakMap();
1920
1920
  function getNodeProtectedValue(node) {
1921
1921
  return protectedValues.get(node);