@eleven-am/pondsocket-nest 0.0.28 → 0.0.30
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 +2 -2
- package/services/pondSocket.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eleven-am/pondsocket-nest",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "PondSocket is a fast simple socket server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"socket",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"pipeline": "npm run lint && npm run build && npm run push"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@eleven-am/pondsocket": "^0.1.
|
|
31
|
+
"@eleven-am/pondsocket": "^0.1.146",
|
|
32
32
|
"@golevelup/nestjs-discovery": "^4.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
package/services/pondSocket.js
CHANGED
|
@@ -143,11 +143,10 @@ class PondSocketService {
|
|
|
143
143
|
channels: instance.channels,
|
|
144
144
|
}))).flat();
|
|
145
145
|
const baseEndpoint = endpoints.find((endpoint) => endpoint.discoveredClass.parentModule.name === 'AppModule');
|
|
146
|
-
|
|
147
|
-
if (channelsWithNoEndpoints.length > 0 && baseEndpointInstance) {
|
|
146
|
+
if (channelsWithNoEndpoints.length > 0 && baseEndpoint) {
|
|
148
147
|
const channels = channelsWithNoEndpoints.map((instance) => instance.channels).flat();
|
|
149
148
|
groupedInstances.push({
|
|
150
|
-
endpoint:
|
|
149
|
+
endpoint: baseEndpoint.discoveredClass,
|
|
151
150
|
channels,
|
|
152
151
|
});
|
|
153
152
|
}
|