@it-enterprise/digital-signature 1.2.5 → 1.2.7

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.5",
3
+ "version": "1.2.7",
4
4
  "description": "digital signature",
5
5
  "private": false,
6
6
  "main": "src/index.js",
@@ -761,6 +761,11 @@ export default class DigitalSignature {
761
761
  if (Array.isArray(signInfo)) {
762
762
  signInfo = signInfo[signInfo.length - 1];
763
763
  }
764
+ var cert = this._readedKey.certificates[0];
765
+ if (cert) {
766
+ signInfo.ownerInfo.certBeginTime = cert.infoEx.certBeginTime;
767
+ signInfo.ownerInfo.certEndTime = cert.infoEx.certEndTime;
768
+ }
764
769
  result[i] = {
765
770
  Success: true,
766
771
  Sign: sign.val || sign,
package/src/GlSign.js CHANGED
@@ -90,7 +90,7 @@ export default class GlSign {
90
90
  }
91
91
  }
92
92
 
93
- this.DirectAccess = this._getSubZoneValue(settingArray, 25) === "+" ? true : this._getSubZoneValue(settingArray, 24) === "-" ? false : null;
93
+ this.DirectAccess = this._getSubZoneValue(settingArray, 25) === "+" ? true : this._getSubZoneValue(settingArray, 25) === "-" ? false : null;
94
94
  }
95
95
  _getZoneValue(zones, zone) {
96
96
  if (zones.length >= zone) {
package/src/Models.js CHANGED
@@ -466,7 +466,7 @@ export function getDefaultKSPs() {
466
466
  vchasno.name = "Вчасно - хмарний підпис";
467
467
  vchasno.ksp = EndUserConstants.EU_KSP_IIT;
468
468
  vchasno.address = "https://cs.vchasno.ua/ss/";
469
- vchasno.directAccess = true;
469
+ vchasno.directAccess = false;
470
470
  vchasno.needQRCode = false;
471
471
 
472
472
  const cloudKey = new KSPSettings();