@jcbuisson/express-x 3.1.5 → 3.1.6
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 +3 -3
- package/src/server.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcbuisson/express-x",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/server.mjs",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@electric-sql/pglite": "^0.4.5",
|
|
32
|
-
"@jcbuisson/express-x-client": "^3.1.
|
|
33
|
-
"@jcbuisson/express-x-drizzle": "^3.1.
|
|
32
|
+
"@jcbuisson/express-x-client": "^3.1.6",
|
|
33
|
+
"@jcbuisson/express-x-drizzle": "^3.1.6",
|
|
34
34
|
"@vueuse/core": "^14.3.0",
|
|
35
35
|
"dexie": "^4.4.2",
|
|
36
36
|
"drizzle-orm": "^0.45.2",
|
package/src/server.mjs
CHANGED
|
@@ -292,7 +292,7 @@ export function expressX(config) {
|
|
|
292
292
|
// collect channel names to socket is member of
|
|
293
293
|
const channelNames = await service.publishFunction(context)
|
|
294
294
|
// send event on all these channels
|
|
295
|
-
if (channelNames.length > 0) {
|
|
295
|
+
if (Array.isArray(channelNames) && channelNames.length > 0) {
|
|
296
296
|
app.log('verbose', `publish channels ${name} ${methodName} ${channelNames}`)
|
|
297
297
|
let sender = io.to(channelNames[0])
|
|
298
298
|
for (let i = 1; i < channelNames.length; i++) {
|