@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 +5 -6
- package/dist/index.js +5 -6
- package/package.json +1 -1
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(
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
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.
|
|
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(
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
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.
|
|
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
|
})
|