From 50a3e9a2ab0833c97a6ceff8130f18ed064bfd5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczy=C5=84ski?= Date: Thu, 16 Dec 2021 15:27:30 +0100 Subject: [PATCH] Add CONNECT_MODE_EXCLUSIVE --- src/Reader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Reader.js b/src/Reader.js index e0156b5..a84953d 100644 --- a/src/Reader.js +++ b/src/Reader.js @@ -26,6 +26,7 @@ export const KEY_TYPE_B = 0x61; export const CONNECT_MODE_DIRECT = 'CONNECT_MODE_DIRECT'; export const CONNECT_MODE_CARD = 'CONNECT_MODE_CARD'; +export const CONNECT_MODE_EXCLUSIVE = 'CONNECT_MODE_EXCLUSIVE'; class Reader extends EventEmitter { @@ -217,6 +218,7 @@ class Reader extends EventEmitter { const modes = { [CONNECT_MODE_DIRECT]: this.reader.SCARD_SHARE_DIRECT, [CONNECT_MODE_CARD]: this.reader.SCARD_SHARE_SHARED, + [CONNECT_MODE_EXCLUSIVE]: this.reader.SCARD_SHARE_EXCLUSIVE, }; if (!modes[mode]) {