@it-enterprise/digital-signature 1.2.4 → 1.2.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.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "digital signature",
5
5
  "private": false,
6
6
  "main": "src/index.js",
@@ -187,7 +187,7 @@ export default class DigitalSignature {
187
187
  language: this._language,
188
188
  encoding: "UTF-16LE",
189
189
  httpProxyServiceURL: this._settings.httpProxyServiceURL,
190
- directAccess: true,
190
+ directAccess: this._glSign.DirectAccess === true || (this._glSign.DirectAccess !== false && !this._glSign.ApplyProxySettings && !this._glSign.UseProxy),
191
191
  CAs: certificates.CAs,
192
192
  CACertificates: certificates.CACertificates,
193
193
  KSPs: this.KSPs,
package/src/GlSign.js CHANGED
@@ -72,7 +72,7 @@ export default class GlSign {
72
72
  this.TestCAConnection = this._getZoneValue(settingArray, 22) === "+";
73
73
  this.DontSaveToRegistry = this._getZoneValue(settingArray, 23) === "+";
74
74
 
75
- var ksps = this._getZoneValue(settingArray, 24);
75
+ let ksps = this._getZoneValue(settingArray, 24);
76
76
  if (!ksps) {
77
77
  this.KSPs = getDefaultKSPs();
78
78
  } else {
@@ -89,6 +89,8 @@ export default class GlSign {
89
89
  this.KSPs = getDefaultKSPs();
90
90
  }
91
91
  }
92
+
93
+ this.DirectAccess = this._getSubZoneValue(settingArray, 25) === "+" ? true : this._getSubZoneValue(settingArray, 25) === "-" ? false : null;
92
94
  }
93
95
  _getZoneValue(zones, zone) {
94
96
  if (zones.length >= zone) {