@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/wss-adapter",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Websocket adapter for the Pathscale WSS",
5
5
  "main": "dist/wssAdapter.js",
6
6
  "types": "dist/wssAdapter.d.ts",
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 }))