@nestjs/platform-ws 8.3.1 → 8.4.2

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/Readme.md CHANGED
@@ -54,7 +54,7 @@ With official support, you can get expert help straight from Nest core team. We
54
54
 
55
55
  ## Support
56
56
 
57
- Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
57
+ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
58
58
 
59
59
  #### Principal Sponsors
60
60
  <table style="text-align:center;"><tr>
@@ -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.3.1",
3
+ "version": "8.4.2",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-ws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
package/CHANGELOG.md DELETED
@@ -1,12 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- <a name="8.2.0"></a>
7
- # [8.2.0](https://github.com/nestjs/nest/compare/v8.1.2...v8.2.0) (2021-11-08)
8
-
9
-
10
-
11
-
12
- **Note:** Version bump only for package @nestjs/platform-ws