Fix require module name in README example

Upgrade dependencies
This commit is contained in:
Martin Endler
2019-02-21 20:43:10 +01:00
parent cf4c105961
commit 0a631beacb
3 changed files with 1345 additions and 63 deletions

View File

@@ -64,7 +64,7 @@ npm install @pokusew/pcsclite --save
## Example ## Example
```javascript ```javascript
const pcsclite = require('pcsclite'); const pcsclite = require('@pokusew/pcsclite');
const pcsc = pcsclite(); const pcsc = pcsclite();
@@ -87,6 +87,7 @@ pcsc.on('reader', (reader) => {
return; return;
} }
// noinspection JSBitwiseOperatorUsage
if ((changes & reader.SCARD_STATE_EMPTY) && (status.state & reader.SCARD_STATE_EMPTY)) { if ((changes & reader.SCARD_STATE_EMPTY) && (status.state & reader.SCARD_STATE_EMPTY)) {
console.log("card removed"); console.log("card removed");
@@ -106,6 +107,7 @@ pcsc.on('reader', (reader) => {
} }
// noinspection JSBitwiseOperatorUsage
if ((changes & reader.SCARD_STATE_EMPTY) && (status.state & reader.SCARD_STATE_EMPTY)) { if ((changes & reader.SCARD_STATE_EMPTY) && (status.state & reader.SCARD_STATE_EMPTY)) {
console.log("card inserted"); console.log("card inserted");

View File

@@ -38,13 +38,13 @@
"test": "mocha" "test": "mocha"
}, },
"dependencies": { "dependencies": {
"bindings": "^1.3.1", "bindings": "^1.4.0",
"nan": "^2.12.1" "nan": "^2.12.1"
}, },
"devDependencies": { "devDependencies": {
"mocha": "^5.2.0", "mocha": "^6.0.0",
"should": "^13.2.3", "should": "^13.2.3",
"sinon": "^7.2.2" "sinon": "^7.2.4"
}, },
"gypfile": true "gypfile": true
} }

1398
yarn.lock

File diff suppressed because it is too large Load Diff