@domain-first/project-structure 2.0.0 → 2.0.1

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.cjs CHANGED
@@ -673,14 +673,13 @@ export const restHandlers = restWires.map(x => x().handle)
673
673
  import { EndpointGenerator } from '@domain-first/handlers-rest'
674
674
 
675
675
  export class ${endpointNaming.ClassName} {
676
- constructor(private readonly endpointGenerator: EndpointGenerator) {}
677
-
678
- private get logic() {
679
- return () => {}
680
- }
676
+ constructor(
677
+ private readonly endpointGenerator: EndpointGenerator,
678
+ private readonly handler: never
679
+ ) {}
681
680
 
682
681
  get handle() {
683
- return this.endpointGenerator(this.logic, {
682
+ return this.endpointGenerator(this.handler.handle, {
684
683
  route: { method: '${method}', path: ['${boundedContextFolder.name}', '${controller}'${path.length ? `, ${path.map((x)=>`'${x}'`).join(', ')}` : ''}] },
685
684
  tags: ['${boundedContextFolder.name}: ${controller}'],
686
685
  })
package/dist/index.js CHANGED
@@ -643,14 +643,13 @@ export const restHandlers = restWires.map(x => x().handle)
643
643
  import { EndpointGenerator } from '@domain-first/handlers-rest'
644
644
 
645
645
  export class ${endpointNaming.ClassName} {
646
- constructor(private readonly endpointGenerator: EndpointGenerator) {}
647
-
648
- private get logic() {
649
- return () => {}
650
- }
646
+ constructor(
647
+ private readonly endpointGenerator: EndpointGenerator,
648
+ private readonly handler: never
649
+ ) {}
651
650
 
652
651
  get handle() {
653
- return this.endpointGenerator(this.logic, {
652
+ return this.endpointGenerator(this.handler.handle, {
654
653
  route: { method: '${method}', path: ['${boundedContextFolder.name}', '${controller}'${path.length ? `, ${path.map((x)=>`'${x}'`).join(', ')}` : ''}] },
655
654
  tags: ['${boundedContextFolder.name}: ${controller}'],
656
655
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@domain-first/project-structure",
3
3
  "description": "Build and manage your Domain-First project structure with CLI",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",