@jcbuisson/express-x 1.6.10 → 1.6.11

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/server.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x",
3
- "version": "1.6.10",
3
+ "version": "1.6.11",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
package/src/server.mjs CHANGED
@@ -379,7 +379,7 @@ export function expressX(prisma, options = {}) {
379
379
  * Emit in return a 'client-response' message
380
380
  */
381
381
  socket.on('client-request', async ({ uid, name, action, args }) => {
382
- app.log('verbose', `client-request ${uid} ${name} ${action} ${JSON.stringify(args)}`)
382
+ app.log('verbose', `client-request ${connection.id} ${uid} ${name} ${action} ${JSON.stringify(args)}`)
383
383
  if (name in services) {
384
384
  const service = services[name]
385
385
  try {
@@ -394,7 +394,7 @@ export function expressX(prisma, options = {}) {
394
394
  try {
395
395
  const result = await serviceMethod(context, ...args)
396
396
  const trimmedResult = result ? JSON.stringify(result).slice(0, 300) : ''
397
- app.log('verbose', `client-response ${uid} ${trimmedResult}`)
397
+ app.log('verbose', `client-response ${connection.id} ${uid} ${trimmedResult}`)
398
398
  socket.emit('client-response', {
399
399
  uid,
400
400
  result,