0.1.21 add info to ack package so one can see it's just the default ack

update socket deps for changes in error handling
master
David Kebler 2019-04-28 10:00:08 -07:00
parent ea1342272e
commit 903d907201
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@uci/base", "name": "@uci/base",
"version": "0.1.20", "version": "0.1.21",
"description": "Multi type and transport JSON packet communication base class. Used in UCI extended classes", "description": "Multi type and transport JSON packet communication base class. Used in UCI extended classes",
"main": "src/base", "main": "src/base",
"scripts": { "scripts": {
@ -39,8 +39,8 @@
"@uci-utils/bind-funcs": "^0.2.3", "@uci-utils/bind-funcs": "^0.2.3",
"@uci-utils/logger": "^0.0.14", "@uci-utils/logger": "^0.0.14",
"@uci/mqtt": "^0.1.11", "@uci/mqtt": "^0.1.11",
"@uci/socket": "^0.2.12", "@uci/socket": "^0.2.13",
"@uci/websocket": "^0.3.6", "@uci/websocket": "^0.3.7",
"await-to-js": "^2.1.1", "await-to-js": "^2.1.1",
"p-settle": "^3.1.0" "p-settle": "^3.1.0"
} }

View File

@ -73,6 +73,7 @@ const defaultCmds ={
ack: async packet => { ack: async packet => {
packet.cmd = 'reply' packet.cmd = 'reply'
packet.ack = true packet.ack = true
packet.info = 'this is the base default ack, superceed in your extended class'
return packet return packet
} }
}, },