@clairejs/server 3.17.7 → 3.17.9

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,6 +1,6 @@
1
1
  ## Change Log
2
2
 
3
- #### 3.17.7:
3
+ #### 3.17.9:
4
4
 
5
5
  - remove handlerFunctionName (using name & displayName instead)
6
6
  - fix missing controller & handlerFunctionName in EndpointMetadata
@@ -14,8 +14,6 @@ export class AbstractHttpController extends Transactionable {
14
14
  if (!controllerMetadata) {
15
15
  return [];
16
16
  }
17
- return controllerMetadata.fields
18
- .filter((f) => isEndpoint(f))
19
- .map((f) => ({ ...f, apiGroup: controllerMetadata.permissionGroup, controller: this }));
17
+ return controllerMetadata.fields.filter((f) => isEndpoint(f));
20
18
  }
21
19
  }
@@ -35,6 +35,8 @@ export class AbstractHttpRequestHandler {
35
35
  : this.resolveMountPoint(controllerMetadata, [this.mountPoint || "/", endpoint.mount]);
36
36
  return {
37
37
  ...endpoint,
38
+ apiGroup: controllerMetadata.permissionGroup,
39
+ controller,
38
40
  id: `${endpoint.method}:${mount}`,
39
41
  mount,
40
42
  readOnly: endpoint.method === HttpMethod.GET,
@@ -289,6 +289,7 @@ export class AbstractServerSocketManager {
289
289
  id: `${SocketMethod.MESSAGE}:${controller.getChannelName()}`,
290
290
  readOnly: false,
291
291
  controller: socketController,
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.7",
3
+ "version": "3.17.9",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",