@jcbuisson/express-x-client 1.5.8 → 1.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.mjs +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x-client",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "type": "module",
5
5
  "description": "Client library for ExpressX framework",
6
6
  "main": "src/index.mjs",
package/src/index.mjs CHANGED
@@ -105,6 +105,7 @@ export default function expressXClient(socket, options={}) {
105
105
 
106
106
  // on receiving events from pub/sub
107
107
  socket.on('service-event', ({ name, action, result }) => {
108
+ if (options.debug) console.log('service-event', name, action, result)
108
109
  if (!action2service2handlers[action]) action2service2handlers[action] = {}
109
110
  const serviceHandlers = action2service2handlers[action]
110
111
  const handler = serviceHandlers[name]