@nestjs/platform-ws 8.4.0 → 8.4.1

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.
@@ -24,7 +24,7 @@ class WsAdapter extends websockets_1.AbstractWsAdapter {
24
24
  this.logger = new common_1.Logger(WsAdapter.name);
25
25
  this.httpServersRegistry = new Map();
26
26
  this.wsServersRegistry = new Map();
27
- wsPackage = load_package_util_1.loadPackage('ws', 'WsAdapter', () => require('ws'));
27
+ wsPackage = (0, load_package_util_1.loadPackage)('ws', 'WsAdapter', () => require('ws'));
28
28
  }
29
29
  create(port, options) {
30
30
  const { server } = options, wsOptions = tslib_1.__rest(options, ["server"]);
@@ -56,8 +56,8 @@ class WsAdapter extends websockets_1.AbstractWsAdapter {
56
56
  return wsServer;
57
57
  }
58
58
  bindMessageHandlers(client, handlers, transform) {
59
- const close$ = rxjs_1.fromEvent(client, constants_1.CLOSE_EVENT).pipe(operators_1.share(), operators_1.first());
60
- const source$ = rxjs_1.fromEvent(client, 'message').pipe(operators_1.mergeMap(data => this.bindMessageHandler(data, handlers, transform).pipe(operators_1.filter(result => result))), operators_1.takeUntil(close$));
59
+ const close$ = (0, rxjs_1.fromEvent)(client, constants_1.CLOSE_EVENT).pipe((0, operators_1.share)(), (0, operators_1.first)());
60
+ const source$ = (0, rxjs_1.fromEvent)(client, 'message').pipe((0, operators_1.mergeMap)(data => this.bindMessageHandler(data, handlers, transform).pipe((0, operators_1.filter)(result => result))), (0, operators_1.takeUntil)(close$));
61
61
  const onMessage = (response) => {
62
62
  if (client.readyState !== READY_STATE.OPEN_STATE) {
63
63
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-ws",
3
- "version": "8.4.0",
3
+ "version": "8.4.1",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-ws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",