@clairejs/server 3.28.5 → 3.28.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,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.28.6
4
+
5
+ - fix calling stripData in with null / undefined
6
+
3
7
  #### 3.28.5
4
8
 
5
9
  - implement new job scheduler
@@ -49,7 +49,7 @@ let DefaultHttpRequestHandler = class DefaultHttpRequestHandler extends Abstract
49
49
  });
50
50
  const response = await endpoint.controller[endpoint.name](...params);
51
51
  //-- validate response value against response dto
52
- if (endpoint.responseDto) {
52
+ if (endpoint.responseDto && response.value !== null && response.value !== undefined) {
53
53
  response.value = stripData(response.value, endpoint.responseDto);
54
54
  }
55
55
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.28.5",
3
+ "version": "3.28.6",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",