@clairejs/server 3.17.5 → 3.17.6

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.5:
3
+ #### 3.17.6:
4
4
 
5
+ - fix missing controller & handleFunctionName in EndpointMetadata
5
6
  - remove AbstractController
6
7
  - mount socket metadata from getChannelName
7
8
  - refactor EndpointMetadata, remove MountedEndpointInfo
@@ -16,6 +16,6 @@ export class AbstractHttpController extends Transactionable {
16
16
  }
17
17
  return controllerMetadata.fields
18
18
  .filter((f) => isEndpoint(f))
19
- .map((f) => ({ ...f, apiGroup: controllerMetadata.permissionGroup }));
19
+ .map((f) => ({ ...f, apiGroup: controllerMetadata.permissionGroup, controller: this }));
20
20
  }
21
21
  }
@@ -8,6 +8,7 @@ export const Endpoint = (config) => (prototype, propertyKey) => {
8
8
  endpointMetadata.method = config.method;
9
9
  //-- default to "/" if empty string is provided
10
10
  endpointMetadata.mount = config.url || "/";
11
+ endpointMetadata.handlerFunctionName = propertyKey;
11
12
  };
12
13
  const HttpMethodDecoratorFactory = (method) => (url) => (prototype, propertyKey, _descriptor) => Endpoint({ method, url })(prototype, propertyKey);
13
14
  export const Post = HttpMethodDecoratorFactory(HttpMethod.POST);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.17.5",
3
+ "version": "3.17.6",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -33,8 +33,8 @@
33
33
  "ws": "^7.5.5"
34
34
  },
35
35
  "peerDependencies": {
36
- "@clairejs/core": "^3.7.1",
37
- "@clairejs/orm": "^3.11.0"
36
+ "@clairejs/core": "^3.7.2",
37
+ "@clairejs/orm": "^3.12.4"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/cookie-parser": "^1.4.3",