@pathscale/wss-adapter 1.0.7 → 1.0.8
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/dist/wssAdapter.js +1 -0
- package/package.json +1 -1
- package/wssAdapter.ts +1 -1
package/dist/wssAdapter.js
CHANGED
|
@@ -82,6 +82,7 @@ var disconnectHandler = function (serviceName) {
|
|
|
82
82
|
};
|
|
83
83
|
var sendHandler = function (serviceName, serviceConfig, methodName, params) {
|
|
84
84
|
var _a;
|
|
85
|
+
if (params === void 0) { params = {}; }
|
|
85
86
|
var methodCode = (_a = Object.entries(serviceConfig.methods)
|
|
86
87
|
.map(function (_a) {
|
|
87
88
|
var code = _a[0], info = _a[1];
|
package/package.json
CHANGED
package/wssAdapter.ts
CHANGED
|
@@ -111,7 +111,7 @@ const sendHandler = (
|
|
|
111
111
|
serviceName: string,
|
|
112
112
|
serviceConfig: IServiceConfig,
|
|
113
113
|
methodName: string,
|
|
114
|
-
params: Record<string, unknown>
|
|
114
|
+
params: Record<string, unknown> = {}
|
|
115
115
|
) => {
|
|
116
116
|
const methodCode = Object.entries(serviceConfig.methods)
|
|
117
117
|
.map(([code, info]) => ({ code, info }))
|