@it-enterprise/digital-signature 1.2.11 → 1.2.12

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.11",
3
+ "version": "1.2.12",
4
4
  "description": "digital signature",
5
5
  "private": false,
6
6
  "main": "src/index.js",
@@ -484,9 +484,12 @@ export default class DigitalSignature {
484
484
  * Добавить коллбэк идентификации для облачных провайдеров
485
485
  * @param {authenticationCallback} event - Коллбэк. Вызывается при запросе на подписание.
486
486
  */
487
- async addConfirmKSPOperationEventListener(event) {
488
- await this._euSignFile.AddEventListener(EndUserConstants.EndUserEventType.ConfirmKSPOperation, event);
489
- }
487
+ async addConfirmKSPOperationEventListener(event) {
488
+ await this._euSignFile.AddEventListener(EndUserConstants.EndUserEventType.ConfirmKSPOperation, function(data) {
489
+ data.qrCode = "data:image/bmp;base64," + data.qrCode;
490
+ event(data);
491
+ });
492
+ }
490
493
 
491
494
  /**
492
495
  * Получить список облачных провайдеров
@@ -516,6 +519,13 @@ export default class DigitalSignature {
516
519
  this._readedKey = null;
517
520
  }
518
521
 
522
+ /**
523
+ * Остановить операцио с облачным ключом
524
+ */
525
+ async resetKSPOperation() {
526
+ await this._euSignFile.ResetOperationKSP();
527
+ }
528
+
519
529
  /**
520
530
  * Получить список центров сертификации
521
531
  * @returns {Promise<Array<CASettings>>}