@controller-contract/server 0.2.6 → 0.2.7

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/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ var PostInputStep = class {
15
15
  this.schema = schema;
16
16
  }
17
17
  output(outputFn) {
18
- this.integrator({
18
+ const product = this.integrator({
19
19
  type: "sanitized",
20
20
  injectable: this.injectable,
21
21
  method: this.method,
@@ -24,7 +24,7 @@ var PostInputStep = class {
24
24
  schema: this.schema,
25
25
  outputFn
26
26
  });
27
- return {};
27
+ return (() => product);
28
28
  }
29
29
  };
30
30
  //#endregion
@@ -44,14 +44,14 @@ var PostEndpointStep = class {
44
44
  return new PostInputStep(this.injectable, this.integrator, this.method, this.path, channel, schema);
45
45
  }
46
46
  output(outputFn) {
47
- this.integrator({
47
+ const product = this.integrator({
48
48
  type: "nullary",
49
49
  method: this.method,
50
50
  path: this.path,
51
51
  injectable: this.injectable,
52
52
  outputFn
53
53
  });
54
- return {};
54
+ return (() => product);
55
55
  }
56
56
  };
57
57
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@controller-contract/server",
3
3
  "type": "module",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "author": "kennychulo",
6
6
  "license": "MIT",
7
7
  "files": [
@@ -42,8 +42,8 @@ export class PostEndpointStep<TContext, TInject, TProduct, const TMethod extends
42
42
  outputFn,
43
43
  });
44
44
 
45
- return <ControllerContractProduct<TMethod, TPath, ParamsFrom<TPath>, NoInput, NoInput, TOutput, TProduct>>{
46
- ...() => product,
47
- };
45
+ return <ControllerContractProduct<TMethod, TPath, ParamsFrom<TPath>, NoInput, NoInput, TOutput, TProduct>>(
46
+ (() => product)
47
+ );
48
48
  }
49
49
  }
@@ -50,6 +50,6 @@ export class PostInputStep<
50
50
  TOutputFromInput | TOutput,
51
51
  TProduct
52
52
  >
53
- >{ ...() => product };
53
+ >(() => product);
54
54
  }
55
55
  }