statebus 6.1.5 → 6.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +5 -1
- package/statebus.js +4 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -128,7 +128,11 @@ function import_server (bus, options)
|
|
|
128
128
|
cbus.honk = 'statelog'
|
|
129
129
|
var key = req.path.substr(1)
|
|
130
130
|
cbus.fetch(key, cb = (o) => {
|
|
131
|
-
|
|
131
|
+
if (braidify)
|
|
132
|
+
res.sendVersion({body: bus.to_http_body(o)})
|
|
133
|
+
else
|
|
134
|
+
res.send(bus.to_http_body(o))
|
|
135
|
+
|
|
132
136
|
if (!braidify || !req.subscribe)
|
|
133
137
|
end_it_all()
|
|
134
138
|
})
|
package/statebus.js
CHANGED
|
@@ -2206,7 +2206,10 @@
|
|
|
2206
2206
|
}
|
|
2207
2207
|
function statelog (key, color, icon, message) {
|
|
2208
2208
|
if (honking_at(key))
|
|
2209
|
-
|
|
2209
|
+
if (bus.honking_colors === false)
|
|
2210
|
+
indented_log(icon + ' ' + message)
|
|
2211
|
+
else
|
|
2212
|
+
indented_log(color + icon + ' ' + message + normal_color)
|
|
2210
2213
|
}
|
|
2211
2214
|
function honking_at (key) {
|
|
2212
2215
|
return (bus.honk instanceof RegExp
|