197 Commits

Author SHA1 Message Date
e8dcad00a8 Remove windows-specific smartcard manager startup code completely
Restore the behaviour of the original node-pcsclite[1], which is to
simply fail and leave retry handling to the user.

[1] https://github.com/santigimeno/node-pcsclite/blob/master/src/pcsclite.cpp#L32

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
2021-04-21 16:38:00 +02:00
Stefan Knoblich
dc660a03e8 Limit the number of connection attempts to avoid endless looping
Non-windows platforms, where the service is not auto-activated,
will endless loop until the smartcard service is started. Limit
the number of attempts to avoid this.

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
2021-04-21 15:59:26 +02:00
Stefan Knoblich
8722e9c6f6 Make addon context aware for electron 10+
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2021-04-09 19:46:57 +02:00
Martin Endler
fc540b5f5c Temporarily disable tests on Windows because they get stuck forever in the first test 2020-02-23 20:16:28 +01:00
Martin Endler
7cb0991354 Add TODO related to the issue #30 2020-02-23 20:09:56 +01:00
Martin Endler
fe7842eda3 Add comments about Windows workarounds in the pcsclite.cpp 2020-02-23 20:08:35 +01:00
Martin Endler
8110a65744 Improve Discord badge in the README 2020-02-23 20:06:39 +01:00
Martin Endler
dacf2a082f Remove bindings dependency (require the built addon directly because the build output location is well-known and constant)
Add note about a possible error and its solution to the README
Improve .editorconfig
Run tests in CI workflow
2020-02-23 18:09:39 +01:00
Martin Endler
5964da0836 Upgrade test dependencies 2020-02-23 17:27:07 +01:00
Martin Endler
ca9b0ba7ec Fix compilation warnings on Windows 2020-02-07 23:31:13 +01:00
Martin Endler
7380a20697 Add GitHub Actions CI (close #29) 2020-02-07 23:01:02 +01:00
Martin Endler
9b48257ecd Merge pull request #28 from petrzjunior/patch-1
Update README.md with Linux driver instructions
2020-02-07 22:42:43 +01:00
petrzjunior
72d3c5a35e Update README.md with Linux driver instructions 2020-01-26 12:50:43 +01:00
Martin Endler
27eaa04de3 Improve README 2020-01-26 00:56:14 +01:00
Martin Endler
549b47d375 Fix typo in README
Add a new FAQ to README
2020-01-26 00:55:10 +01:00
Martin Endler
7ebf2dacb9 0.6.0 2020-01-25 23:40:29 +01:00
Martin Endler
dffb9ef890 Improve .gitignore and .npmignore 2020-01-25 23:39:38 +01:00
Martin Endler
1f5416db6b Update supported version in README 2020-01-25 23:29:01 +01:00
Martin Endler
05be030e4e Update supported version in README 2020-01-25 23:25:42 +01:00
Martin Endler
865b142540 Upgrade test dependencies
Add --exit flag for mocha test
2020-01-25 23:19:46 +01:00
Martin Endler
907f54bf12 Merge pull request #27 from petrzjunior/node12fix
Fix Nan usage (Now working with Node.js versions 8.x up to 13.x)
2020-01-25 23:15:40 +01:00
petrzjunior
acb4e8527a Fix compiler warnings 2020-01-25 16:56:49 +01:00
Petr Zahradnik
f300d5e0a6 Provide AsyncResource 2020-01-25 16:56:49 +01:00
Petr Zahradnik
0f3ff2c20a Use Nan::Set in all places 2020-01-25 16:55:15 +01:00
Petr Zahradnik
9cc61350a0 Use Nan wrapper for type conversion 2020-01-25 16:26:26 +01:00
Martin Endler
5de4cc4fb4 Improve README 2020-01-25 00:38:58 +01:00
Martin Endler
10f96258a7 Improve README 2020-01-25 00:30:34 +01:00
Martin Endler
27cdd84d23 Add info about supported Node.js version to README 2020-01-25 00:20:58 +01:00
Martin Endler
297cf3da14 Fix links to the pcsclite API in README 2020-01-25 00:17:25 +01:00
Martin Endler
d9cbaa4116 Improve README (close #12) 2020-01-25 00:14:38 +01:00
Martin Endler
8af0548d20 Merge pull request #26 from jimmythesaint82/node_12_changes
Implement some of the required fixes for Node.js 12
2020-01-24 23:24:22 +01:00
Martin Endler
a43ad505f1 Fix code style in tests
Upgrade test dependencies
2020-01-24 22:31:14 +01:00
Martin Endler
9335a6ccc0 Merge pull request #25 from roydejong/sinon-test-upgrade
Fix and upgrade test suite
2020-01-24 22:21:07 +01:00
Martin Endler
e5da9a124e Fix typos in README 2020-01-24 22:08:57 +01:00
Martin Endler
caba89fbb8 Improve README 2020-01-24 22:07:10 +01:00
Martin Endler
74d0b388c6 Fix example 2020-01-24 21:59:06 +01:00
jimmythesaint82
2ccd6e1693 Node 12 fixes 2019-06-21 01:32:31 +02:00
Roy de Jong
b3025141ae Tests: Add explicit done() calls all round to ensure completion 2019-06-06 17:53:11 +02:00
Roy de Jong
bfceac5312 Tests: Fix #connect() test - use correct name end marker
Modifying the `get_reader()` test helper so it uses the correct end marker for reader names (fixes the "#connect()" test).
2019-06-06 17:42:21 +02:00
Roy de Jong
236b76c69b Tests: Fix #start() test - rewrite, use updated sample data
Rewriting the "#start()" test so it makes sense, with sample data based on the example in `pcsc.js`.
2019-06-06 17:39:03 +02:00
Roy de Jong
842ea1dbea Tests: fix buffer deprecation warning (use Buffer.from) 2019-06-06 17:30:34 +02:00
Roy de Jong
bee8ec35ae yarn: sync lockfile with latest sinon + dependencies 2019-06-06 16:55:59 +02:00
Roy de Jong
50e32033a6 Tests fix: Update Sinon, apply sinon-codemod / extract-calls-fake 2019-06-06 16:41:25 +02:00
Martin Endler
de7ed0f4b4 0.5.2 2019-02-21 20:43:32 +01:00
Martin Endler
0a631beacb Fix require module name in README example
Upgrade dependencies
2019-02-21 20:43:10 +01:00
Martin Endler
cf4c105961 Fix npm badge in README 2019-01-07 01:04:25 +01:00
Martin Endler
2b26f4539e 0.5.1 2018-12-28 04:21:22 +01:00
Martin Endler
d2aa4498ca Change end event behavior (readers field is updated before the edn event is emitted)
Add types field to package.json
2018-12-28 04:20:50 +01:00
Martin Endler
0fa39f7140 Improve README (use spaces instead of tabs in code example to improve viewing on GitHub) 2018-12-20 04:45:22 +01:00
Martin Endler
fd2222deda 0.5.0 2018-12-20 04:20:14 +01:00