@it-enterprise/digital-signature 1.5.5 → 1.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@it-enterprise/digital-signature",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "IT-Enterprise package for digital signature",
5
5
  "private": false,
6
6
  "main": "src/index.js",
@@ -32,7 +32,7 @@
32
32
  "@babel/core": "^7.29.7",
33
33
  "@babel/eslint-parser": "^7.29.7",
34
34
  "eslint": "^9.39.5",
35
- "node-forge": "^1.4.0",
35
+ "node-forge": "^1.4.3",
36
36
  "vite": "^8.2.2",
37
37
  "vite-plugin-babel": "^1.7.3"
38
38
  },
@@ -1501,14 +1501,16 @@ export default class DigitalSignature {
1501
1501
  if (!storedKeys) {
1502
1502
  return result;
1503
1503
  }
1504
- const data = await this._euSignFile.UnprotectDataByPassword(storedKeys, "", true);
1505
1504
  try {
1505
+ const data = await this._euSignFile.UnprotectDataByPassword(storedKeys, "", true);
1506
+
1506
1507
  ls = JSON.parse(data);
1507
1508
  if (keyType >= 0) {
1508
1509
  ls = ls.filter(key => key.keyType == keyType);
1509
1510
  }
1510
1511
  }
1511
- catch {
1512
+ catch (e) {
1513
+ console.error("Error while reading stored keys", e);
1512
1514
  ls = [];
1513
1515
  }
1514
1516
 
package/src/Models.js CHANGED
@@ -547,7 +547,7 @@ export function getDefaultKSPs(allowTest) {
547
547
  diiaTest.directAccess = false;
548
548
  diiaTest.mobileAppName = "Дія";
549
549
  diiaTest.address = "https://test-diia-sign.it.ua/KSPSign";
550
- diiaTest.systemId = "diia-sign-it-ent";
550
+ diiaTest.systemId = "test-diia-sign-it-ent";
551
551
  diiaTest.authSystemId = "test-diia-sign-it-ent-auth";
552
552
  diiaTest.needQRCode = true;
553
553