@jcbuisson/express-x 2.0.2 → 2.0.3
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/src/server.mjs +2 -2
package/package.json
CHANGED
package/src/server.mjs
CHANGED
|
@@ -140,7 +140,7 @@ export function expressX(config) {
|
|
|
140
140
|
* create a service `name` with given `methods`
|
|
141
141
|
*/
|
|
142
142
|
function createService(name, methods) {
|
|
143
|
-
const service = {
|
|
143
|
+
const service = {}
|
|
144
144
|
|
|
145
145
|
for (const methodName in methods) {
|
|
146
146
|
const method = methods[methodName]
|
|
@@ -188,7 +188,7 @@ export function expressX(config) {
|
|
|
188
188
|
sender = sender.to(channelNames[i])
|
|
189
189
|
}
|
|
190
190
|
sender.emit('service-event', {
|
|
191
|
-
name
|
|
191
|
+
name,
|
|
192
192
|
action: methodName,
|
|
193
193
|
result,
|
|
194
194
|
})
|