@nestjs/platform-ws 12.1.2 → 12.1.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.
@@ -42,7 +42,7 @@ export class WsAdapter extends AbstractWsAdapter {
42
42
  }
43
43
  }
44
44
  create(port, options) {
45
- const { server, path, ...wsOptions } = options;
45
+ const { server, path, ...wsOptions } = (options ?? {});
46
46
  if (wsOptions?.namespace) {
47
47
  const error = new Error('"WsAdapter" does not support namespaces. If you need namespaces in your project, consider using the "@nestjs/platform-socket.io" package instead.');
48
48
  this.logger.error(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-ws",
3
- "version": "12.1.2",
3
+ "version": "12.1.3",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-ws)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -33,5 +33,5 @@
33
33
  "@nestjs/websockets": "^12.0.0",
34
34
  "rxjs": "^7.1.0"
35
35
  },
36
- "gitHead": "8ab60aa1b2927fbe0e23135ffc65d610c623236a"
36
+ "gitHead": "4514623279f6087808e3c8f08fbf9f37d3c17482"
37
37
  }