@it-enterprise/digital-signature 1.5.2 → 1.5.4

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.
@@ -9950,7 +9950,7 @@ var j = class {
9950
9950
  let r = this._getZoneValue(t, 24), i = this._getZoneValue(t, 25) === "+" || this._getZoneValue(t, 25) !== "-" && null;
9951
9951
  this.DirectAccess = i === !0 || i !== !1 && !this.ApplyProxySettings && !this.UseProxy, this.PreLoadClientLibraries = this._getZoneValue(t, 26) === "+";
9952
9952
  let a = parseInt(this._getZoneValue(t, 27));
9953
- if (this.WebClientFileSize = a < 5 ? 5 : a > 127 ? 127 : a, this.UseTSL = this._getZoneValue(t, 28) === "+", this.UmcaservicePort = this._getZoneValue(t, 29), !r) this.KSPs = te(this.AllowTestKeys);
9953
+ if (this.WebClientFileSize = a < 5 ? 5 : a > 127 ? 127 : a, this.UseTSL = this._getZoneValue(t, 28) === "+", this.UmcaservicePort = this._getZoneValue(t, 29), this.UseUmCAService = this._getZoneValue(t, 30) !== "-", !r) this.KSPs = te(this.AllowTestKeys);
9954
9954
  else {
9955
9955
  try {
9956
9956
  r = new TextDecoder().decode(v(r)), this.KSPs = JSON.parse(r);
@@ -10078,7 +10078,11 @@ var j = class {
10078
10078
  return localStorage.getItem(this._storagePrefix + e);
10079
10079
  }
10080
10080
  _setItem(e, t) {
10081
- localStorage.setItem(this._storagePrefix + e, t);
10081
+ try {
10082
+ localStorage.setItem(this._storagePrefix + e, t);
10083
+ } catch (e) {
10084
+ console.error(e);
10085
+ }
10082
10086
  }
10083
10087
  _removeItem(e) {
10084
10088
  localStorage.removeItem(this._storagePrefix + e);
@@ -10883,8 +10887,8 @@ var ne = class {
10883
10887
  message: this._resourses.BadParameter + " data"
10884
10888
  };
10885
10889
  }
10886
- let i = await this._euSign.m_library.m_worker.postMessage("GetDataHashFromSignedDataEx", [n > 0 ? n : 0, t.val || t]);
10887
- return await this._euSign.VerifyHash(i.hash, t.val || t, n);
10890
+ let { hashAlgo: i } = await this._euSignFile.m_library.m_worker.postMessage("GetDataHashFromSignedDataEx", [n > 0 ? n : 0, t.val || t]), a = await this._euSign.HashData(i, e, !1);
10891
+ return await this._euSign.VerifyHash(a, t.val || t, n);
10888
10892
  }
10889
10893
  async verifyFile(e, t, n) {
10890
10894
  let [r, i] = await Promise.all([p(e, "binary"), p(t, "binary")]);
@@ -11145,7 +11149,11 @@ var ne = class {
11145
11149
  let r = await this.getPrivateKeyInfoFromStorage(t);
11146
11150
  r.push(e);
11147
11151
  let i = await this._euSignFile.ProtectDataByPassword(JSON.stringify(r), "", !0);
11148
- n[this._userId + se] = i;
11152
+ try {
11153
+ n[this._userId + se] = i;
11154
+ } catch (e) {
11155
+ console.error(e);
11156
+ }
11149
11157
  }
11150
11158
  }
11151
11159
  async getStoredPrivateKeyInfo(e) {