@it-enterprise/digital-signature 1.3.20 → 1.3.21

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.3.20",
3
+ "version": "1.3.21",
4
4
  "description": "digital signature",
5
5
  "private": false,
6
6
  "main": "src/index.js",
@@ -1453,7 +1453,7 @@ export default class DigitalSignature {
1453
1453
  const diia = "DIIA";
1454
1454
  if (sessionStorage[diia] != "+") {
1455
1455
  try {
1456
- sessionStorage[diia] = await downloadData(new URL(ksp.address).origin + "/diia");
1456
+ sessionStorage[diia] = await downloadData(ksp.address.replace("KSPSign", "DIIA"));
1457
1457
  } catch {
1458
1458
  throw {
1459
1459
  code: EndUserError.EU_ERROR_TRANSMIT_REQUEST,
@@ -1462,7 +1462,7 @@ export default class DigitalSignature {
1462
1462
  }
1463
1463
  }
1464
1464
  try {
1465
- const health = await downloadData(new URL(ksp.address).origin + "/health");
1465
+ const health = await downloadData(ksp.address.replace("KSPSign", "DIIA"));
1466
1466
  if (health.trim().toLowerCase() != "healthy") {
1467
1467
  throw {
1468
1468
  code: EndUserError.EU_ERROR_TRANSMIT_REQUEST,