@eleven-am/pondsocket-nest 0.0.116 → 0.0.118

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket-nest",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",
@@ -32,15 +32,15 @@
32
32
  "@golevelup/nestjs-discovery": "^5.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@nestjs/common": "^11.1.1",
36
- "@nestjs/core": "^11.1.1",
35
+ "@nestjs/common": "^11.1.3",
36
+ "@nestjs/core": "^11.1.3",
37
37
  "@types/jest": "^29.5.14",
38
- "@typescript-eslint/eslint-plugin": "^8.32.1",
38
+ "@typescript-eslint/eslint-plugin": "^8.33.1",
39
39
  "eslint-plugin-file-progress": "^3.0.2",
40
40
  "eslint-plugin-import": "^2.31.0",
41
41
  "jest": "^29.7.0",
42
42
  "prettier": "^3.5.3",
43
- "ts-jest": "^29.3.3",
43
+ "ts-jest": "^29.3.4",
44
44
  "ts-loader": "^9.5.2",
45
45
  "ts-node": "^10.9.2",
46
46
  "typescript": "^5.8.3"
@@ -64,9 +64,9 @@ class PondSocketService {
64
64
  context.accept();
65
65
  }
66
66
  }));
67
- this.logger.log(`Mapped {${metadata}} endpoint`);
67
+ this.logger.log(`${groupedInstance.endpoint.name} {${metadata}}`);
68
68
  if (handler) {
69
- this.logger.log(`Mapped {${metadata}} connection handler`);
69
+ this.logger.log(`Mapped {${metadata}, CONNECTION}`);
70
70
  }
71
71
  setEndpoint(endpoint);
72
72
  channels.forEach((channel) => this.manageChannel(channel, endpoint, metadata));
@@ -89,9 +89,10 @@ class PondSocketService {
89
89
  context.accept();
90
90
  }
91
91
  }));
92
- this.logger.log(`Mapped {${endpointPath}${path}} channel`);
92
+ const newPath = `${endpointPath}/${path}`.replace(/\/+/g, '/');
93
+ this.logger.log(`${channel.name} {${newPath}}`);
93
94
  if (handler) {
94
- this.logger.log(`Mapped {${endpointPath}${path}} join handler`);
95
+ this.logger.log(`Mapped {${newPath}, JOIN}`);
95
96
  }
96
97
  setChannel(channelInstance);
97
98
  const { get: getEventHandlers } = (0, event_1.manageEvent)(instance);
@@ -100,14 +101,15 @@ class PondSocketService {
100
101
  channelInstance.onEvent(handler.path, (context) => __awaiter(this, void 0, void 0, function* () {
101
102
  yield handler.value(instance, this.moduleRef, this.globalGuards, this.globalPipes, context);
102
103
  }));
103
- this.logger.log(`Mapped {${endpointPath}${path}} event {${handler.path}}`);
104
+ const newEventPath = `${newPath}/${handler.path}`.replace(/\/+/g, '/');
105
+ this.logger.log(`Mapped {${newEventPath}, EVENT}`);
104
106
  });
105
107
  const [leaveHandler] = getLeaveHandlers();
106
108
  if (leaveHandler) {
107
109
  channelInstance.onLeave((event) => __awaiter(this, void 0, void 0, function* () {
108
110
  yield leaveHandler.value(instance, this.moduleRef, this.globalGuards, this.globalPipes, event);
109
111
  }));
110
- this.logger.log(`Mapped {${endpointPath}${path}} leave handler`);
112
+ this.logger.log(`Mapped {${newPath}, LEAVE}`);
111
113
  }
112
114
  }
113
115
  getGroupedInstances() {