@rest-vir/define-service 0.11.1 → 0.11.3

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.
@@ -33,12 +33,12 @@ function finalizeServiceDefinition(serviceInit) {
33
33
  assertValidShape({ searchParamsShape: undefined, ...endpointInit }, endpointInitShape);
34
34
  const endpoint = {
35
35
  ...endpointInit,
36
- requestDataShape: endpointInit.requestDataShape
37
- ? defineShape(endpointInit.requestDataShape, true)
38
- : undefined,
39
- responseDataShape: endpointInit.responseDataShape
40
- ? defineShape(endpointInit.responseDataShape, true)
41
- : undefined,
36
+ requestDataShape: endpointInit.requestDataShape == undefined
37
+ ? undefined
38
+ : defineShape(endpointInit.requestDataShape, true),
39
+ responseDataShape: endpointInit.responseDataShape == undefined
40
+ ? undefined
41
+ : defineShape(endpointInit.responseDataShape, true),
42
42
  path: endpointPath,
43
43
  service: minimalService,
44
44
  customProps: endpointInit.customProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rest-vir/define-service",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Define an connect to a declarative and type safe REST and WebSocket service.",
5
5
  "keywords": [
6
6
  "rest",