@ekhein/sekiro-node-client 2.1.11 → 2.1.12

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/main.js +2 -2
  2. package/package.json +3 -1
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SekiroClient = void 0;
4
- const crypto_1 = require("crypto");
4
+ const uuid_1 = require("uuid");
5
5
  const result_util_1 = require("./utils/result.util");
6
6
  const logger_util_1 = require("./utils/logger.util");
7
7
  const ws_util_1 = require("./utils/ws.util");
@@ -38,7 +38,7 @@ class SekiroClient extends ws_util_1.W3CWebSocket {
38
38
  this.send(pack);
39
39
  }
40
40
  };
41
- constructor(group = process.env.namespace, wsURL = process.env.SEKIRO_WS, clientId = (0, crypto_1.randomUUID)().replace(/-/g, "")) {
41
+ constructor(group = process.env.namespace, wsURL = process.env.SEKIRO_WS, clientId = (0, uuid_1.v5)(process.env.pm_id, uuid_1.NIL).replace(/-/g, "")) {
42
42
  const register = new URL("/business-demo/register", wsURL);
43
43
  register.searchParams.append("group", group);
44
44
  register.searchParams.append("clientId", clientId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekhein/sekiro-node-client",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "license": "MIT",
5
5
  "author": "ekhein",
6
6
  "main": "./dist/main.js",
@@ -15,10 +15,12 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "partysocket": "^1.1.4",
18
+ "uuid": "^13.0.0",
18
19
  "ws": "^8.18.2"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@types/node": "^22.15.18",
23
+ "@types/uuid": "^11.0.0",
22
24
  "tsx": "^4.19.4",
23
25
  "typescript": "^5.8.3"
24
26
  },