0.3.0 bump version for 3-2020 deployment of light code

use observer names supplied by socket
update deps
master v0.3.0
David Kebler 2020-03-15 16:22:35 -07:00
parent 915cdbc8ef
commit 890c130f5f
3 changed files with 5 additions and 4 deletions

View File

@ -3,3 +3,4 @@ test/
*.test.js
testing/
examples
.yalc

View File

@ -1,7 +1,7 @@
{
"name": "@uci/mcp",
"main": "src",
"version": "0.1.42",
"version": "0.3.0",
"description": "Classes and Helper Functions for using the MCP chip on I2C Bus",
"scripts": {
"outputs": "./node_modules/.bin/nodemon -r esm --preserve-symlinks examples/outputs",
@ -31,12 +31,12 @@
"dependencies": {
"@uci-utils/byte": "^0.2.3",
"@uci-utils/logger": "0.0.16",
"@uci/i2c-device": "^0.1.27"
"@uci/i2c-device": "^0.3.0"
},
"devDependencies": {
"chai": "^4.2.0",
"esm": "^3.2.25",
"mocha": "^7.0.1",
"mocha": "^7.1.0",
"nodemon": "^2.0.2"
}
}

View File

@ -31,7 +31,7 @@ class MCP230XXi extends MCP230XX {
this.ready.addObserver(`${opts.interrupt.name}:process`) // will emit on received interrupt process ready packet
let interruptobs = this.ready.combineObservers(`${opts.interrupt.name}`,['mcp:configure',`${opts.interrupt.name}:consumer`,`${opts.interrupt.name}:process`])
let interruptobs = this.ready.combineObservers(`${opts.interrupt.name}`,['mcp:configure',this.getSocket(opts.interrupt.name).obsName,`${opts.interrupt.name}:process`])
this.ready.addObserver('interrupt:reset',interruptobs
.pipe(
map(async ready => {