@clairejs/server 3.17.8 → 3.17.10

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/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  ## Change Log
2
2
 
3
- #### 3.17.8:
3
+ #### 3.17.10:
4
4
 
5
+ - fix socket manager & isEndpoint
5
6
  - remove handlerFunctionName (using name & displayName instead)
6
7
  - fix missing controller & handlerFunctionName in EndpointMetadata
7
8
  - remove AbstractController
@@ -1,7 +1,7 @@
1
1
  import { getObjectMetadata } from "@clairejs/core";
2
2
  import { Transactionable } from "../../common/Transactionable";
3
3
  const isEndpoint = (metadata) => {
4
- return !!metadata.method || metadata.description !== undefined;
4
+ return !!metadata.method;
5
5
  };
6
6
  export class AbstractHttpController extends Transactionable {
7
7
  databaseAdapter;
@@ -288,7 +288,8 @@ export class AbstractServerSocketManager {
288
288
  ...getChannelNameMetadata,
289
289
  id: `${SocketMethod.MESSAGE}:${controller.getChannelName()}`,
290
290
  readOnly: false,
291
- controller: socketController,
291
+ controller,
292
+ apiGroup: controllerMetadata?.permissionGroup,
292
293
  name: controller.onMessage.name,
293
294
  method: SocketMethod.MESSAGE,
294
295
  mount: controller.getChannelName(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.17.8",
3
+ "version": "3.17.10",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",