@alevnyacow/nzmt 0.39.5 → 0.40.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +3 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  Scaffold full-stack modules in Next.js in seconds with **Next Zod Modules Toolkit (NZMT)**.
12
12
 
13
- Get a DDD-inspired architecture with a contract-first approach out of the box.
13
+ Get a domain-focused architecture with a contract-first approach out of the box.
14
14
 
15
15
  Batteries included! ✨
16
16
 
package/bin/cli.js CHANGED
@@ -990,8 +990,10 @@ function generateService(lowerCase, upperCase, store) {
990
990
  "import { Module } from '@alevnyacow/nzmt'",
991
991
  ...importInjections,
992
992
  "",
993
+ `type Methods = Module.Methods<typeof ${lowerCase}ServiceMetadata>`,
994
+ "",
993
995
  "@injectable()",
994
- `export class ${upperCase}Service implements Module.Methods<typeof ${lowerCase}ServiceMetadata> {`,
996
+ `export class ${upperCase}Service implements Methods {`,
995
997
  `\tprivate methods = Module.methods(${lowerCase}ServiceMetadata)`,
996
998
  ``,
997
999
  `\tconstructor(`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.39.5",
3
+ "version": "0.40.1",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
6
6
  "repository": {