@protontech/openpgp 6.2.1 → 6.2.2

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/dist/openpgp.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! OpenPGP.js v6.2.1 - 2025-08-28 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
1
+ /*! OpenPGP.js v6.2.2 - 2025-09-02 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
2
2
  const globalThis = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1710,7 +1710,7 @@ var config = {
1710
1710
  * @memberof module:config
1711
1711
  * @property {String} versionString A version string to be included in armored messages
1712
1712
  */
1713
- versionString: 'OpenPGP.js 6.2.1',
1713
+ versionString: 'OpenPGP.js 6.2.2',
1714
1714
  /**
1715
1715
  * @memberof module:config
1716
1716
  * @property {String} commentString A comment string to be included in armored messages
@@ -13902,8 +13902,12 @@ function zlib(compressionStreamInstantiator, ZlibStreamedConstructor) {
13902
13902
  return fromAsync(() => readToEnd(data).then(inputData => {
13903
13903
  return new Promise((resolve, reject) => {
13904
13904
  const zlibStream = new ZlibStreamedConstructor();
13905
- zlibStream.ondata = processedData => {
13906
- resolve(processedData);
13905
+ const processedChunks = [];
13906
+ zlibStream.ondata = (processedData, final) => {
13907
+ processedChunks.push(processedData);
13908
+ if (final) {
13909
+ resolve(util.concatUint8Array(processedChunks));
13910
+ }
13907
13911
  };
13908
13912
  try {
13909
13913
  zlibStream.push(inputData, true); // only one chunk to push
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@protontech/openpgp",
3
3
  "description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
4
- "version": "6.2.1",
4
+ "version": "6.2.2",
5
5
  "license": "LGPL-3.0+",
6
6
  "homepage": "https://openpgpjs.org/",
7
7
  "engines": {