ws-stomp-server 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +7 -5
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { v4 } from 'uuid';
1
+ import crypto from 'crypto';
2
2
  import WebSocket, { WebSocketServer } from 'ws';
3
3
 
4
4
  class Autowired {
@@ -214,7 +214,7 @@ class StompServer {
214
214
  subs.forEach((sub) => {
215
215
  const frame = new StompFrame(StompCommand.MESSAGE, {
216
216
  destination,
217
- 'message-id': v4(),
217
+ 'message-id': crypto.randomUUID(),
218
218
  timestamp: `${Date.now()}`,
219
219
  subscription: sub.id,
220
220
  ...headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-stomp-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "ws-stomp-server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -8,6 +8,9 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
+ "engines": {
12
+ "node": ">=14.17.0"
13
+ },
11
14
  "scripts": {
12
15
  "build": "rollup -c rollup.config.js"
13
16
  },
@@ -19,16 +22,15 @@
19
22
  "./*": "./*"
20
23
  },
21
24
  "dependencies": {
22
- "uuid": "^13.0.0",
23
- "ws": "^8.19.0",
24
- "@types/ws": "^8.18.1"
25
+ "ws": "^8.19.0"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@rollup/plugin-commonjs": "^29.0.0",
28
29
  "@rollup/plugin-json": "^6.1.0",
29
30
  "@rollup/plugin-node-resolve": "^16.0.3",
30
31
  "@rollup/plugin-typescript": "^12.3.0",
31
- "@types/node": "^25.0.3",
32
+ "@types/node": "^24.10.6",
33
+ "@types/ws": "^8.18.1",
32
34
  "rollup": "^4.55.1",
33
35
  "rollup-plugin-dts": "^6.3.0",
34
36
  "tslib": "^2.8.1",