Change end event behavior (readers field is updated before the edn event is emitted)
Add types field to package.json
This commit is contained in:
@@ -67,8 +67,8 @@ module.exports = function () {
|
||||
|
||||
r.on('_end', function () {
|
||||
r.removeAllListeners('status');
|
||||
r.emit('end');
|
||||
delete readers[name];
|
||||
r.emit('end');
|
||||
});
|
||||
|
||||
readers[name] = r;
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
}
|
||||
],
|
||||
"main": "lib/pcsclite.js",
|
||||
"types": "index.d.ts",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user