@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.
@@ -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
  import { createRequire } from 'module';
@@ -1713,7 +1713,7 @@ var config = {
1713
1713
  * @memberof module:config
1714
1714
  * @property {String} versionString A version string to be included in armored messages
1715
1715
  */
1716
- versionString: 'OpenPGP.js 6.2.1',
1716
+ versionString: 'OpenPGP.js 6.2.2',
1717
1717
  /**
1718
1718
  * @memberof module:config
1719
1719
  * @property {String} commentString A comment string to be included in armored messages
@@ -13912,8 +13912,12 @@ function zlib(compressionStreamInstantiator, ZlibStreamedConstructor) {
13912
13912
  return fromAsync(() => readToEnd(data).then(inputData => {
13913
13913
  return new Promise((resolve, reject) => {
13914
13914
  const zlibStream = new ZlibStreamedConstructor();
13915
- zlibStream.ondata = processedData => {
13916
- resolve(processedData);
13915
+ const processedChunks = [];
13916
+ zlibStream.ondata = (processedData, final) => {
13917
+ processedChunks.push(processedData);
13918
+ if (final) {
13919
+ resolve(util.concatUint8Array(processedChunks));
13920
+ }
13917
13921
  };
13918
13922
  try {
13919
13923
  zlibStream.push(inputData, true); // only one chunk to push
package/dist/openpgp.js 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
  var openpgp = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -1713,7 +1713,7 @@ var openpgp = (function (exports) {
1713
1713
  * @memberof module:config
1714
1714
  * @property {String} versionString A version string to be included in armored messages
1715
1715
  */
1716
- versionString: 'OpenPGP.js 6.2.1',
1716
+ versionString: 'OpenPGP.js 6.2.2',
1717
1717
  /**
1718
1718
  * @memberof module:config
1719
1719
  * @property {String} commentString A comment string to be included in armored messages
@@ -13905,8 +13905,12 @@ var openpgp = (function (exports) {
13905
13905
  return fromAsync(() => readToEnd(data).then(inputData => {
13906
13906
  return new Promise((resolve, reject) => {
13907
13907
  const zlibStream = new ZlibStreamedConstructor();
13908
- zlibStream.ondata = processedData => {
13909
- resolve(processedData);
13908
+ const processedChunks = [];
13909
+ zlibStream.ondata = (processedData, final) => {
13910
+ processedChunks.push(processedData);
13911
+ if (final) {
13912
+ resolve(util.concatUint8Array(processedChunks));
13913
+ }
13910
13914
  };
13911
13915
  try {
13912
13916
  zlibStream.push(inputData, true); // only one chunk to push