ws-stomp 2.0.2 → 2.0.4

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.
Files changed (2) hide show
  1. package/README.md +1 -18
  2. package/package.json +10 -4
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ws-stomp
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/ws-Stomp.svg?style=flat-square)](https://www.npmjs.com/package/ws-stomp)
3
+ [![npm version](https://img.shields.io/npm/v/ws-stomp.svg?style=flat-square)](https://www.npmjs.com/package/ws-stomp)
4
4
  [![Alt](https://img.shields.io/npm/dt/ws-stomp?style=flat-square)](https://npmcharts.com/compare/ws-stomp?minimal=true)
5
5
  ![Alt](https://img.shields.io/github/license/mivui/node-ws-stomp?style=flat-square)
6
6
 
@@ -148,20 +148,3 @@ async function bootstrap() {
148
148
  }
149
149
  bootstrap();
150
150
  ```
151
-
152
- #### browser.js
153
-
154
- ```ts
155
- import { Client } from '@stomp/stompjs';
156
-
157
- const client = new Client({
158
- brokerURL: 'ws://lcalhost:3000/ws',
159
- onConnect: () => {
160
- client.publish({ destination: '/topic/greetings', body: 'Hello World!' });
161
- client.subscribe('/topic/something', (message) => {
162
- console.log(message.body);
163
- });
164
- },
165
- });
166
- client.activate();
167
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-stomp",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "stomp websocket library for node.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -22,25 +22,31 @@
22
22
  "build": "rollup -c rollup.config.js"
23
23
  },
24
24
  "peerDependencies": {
25
- "@nestjs/websockets": "^11.1.15"
25
+ "@nestjs/websockets": "^11.1.16"
26
+ },
27
+ "peerDependenciesMeta": {
28
+ "@nestjs/websockets": {
29
+ "optional": true
30
+ }
26
31
  },
27
32
  "dependencies": {
28
33
  "ws": "^8.19.0"
29
34
  },
30
35
  "devDependencies": {
36
+ "@nestjs/websockets": "^11.1.16",
31
37
  "@rollup/plugin-commonjs": "^29.0.1",
32
38
  "@rollup/plugin-json": "^6.1.0",
33
39
  "@rollup/plugin-node-resolve": "^16.0.3",
34
40
  "@rollup/plugin-replace": "^6.0.3",
35
41
  "@rollup/plugin-terser": "^1.0.0",
36
42
  "@rollup/plugin-typescript": "^12.3.0",
37
- "@types/node": "^24.11.0",
43
+ "@types/node": "^24.12.0",
38
44
  "@types/ws": "^8.18.1",
39
45
  "rollup": "^4.59.0",
40
46
  "rollup-plugin-dts": "^6.3.0",
41
47
  "tslib": "^2.8.1",
42
48
  "typescript": "^5.9.3",
43
- "typescript-eslint-standard": "^10.0.0",
49
+ "typescript-eslint-standard": "^10.0.1",
44
50
  "vitest": "^4.0.18"
45
51
  },
46
52
  "author": "mivui",