@koalarx/nest-cli 1.0.36 → 1.0.37
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.
|
@@ -21,54 +21,59 @@
|
|
|
21
21
|
"test:all": "npm run test && npm run test:e2e"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@koalarx/utils": "3.1.3",
|
|
25
|
-
"@koalarx/nest": "1.
|
|
26
|
-
"@nestjs/common": "11.0.12",
|
|
27
|
-
"@nestjs/config": "4.0.1",
|
|
28
|
-
"@nestjs/core": "11.0.12",
|
|
29
|
-
"@nestjs/mapped-types": "2.1.0",
|
|
30
|
-
"@nestjs/
|
|
31
|
-
"@nestjs/
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
24
|
+
"@koalarx/utils": "^3.1.3",
|
|
25
|
+
"@koalarx/nest": "^1.9.1",
|
|
26
|
+
"@nestjs/common": "^11.0.12",
|
|
27
|
+
"@nestjs/config": "^4.0.1",
|
|
28
|
+
"@nestjs/core": "^11.0.12",
|
|
29
|
+
"@nestjs/mapped-types": "^2.1.0",
|
|
30
|
+
"@nestjs/passport": "^11.0.5",
|
|
31
|
+
"@nestjs/platform-express": "^11.0.12",
|
|
32
|
+
"@nestjs/swagger": "^11.0.7",
|
|
33
|
+
"@prisma/client": "^6.5.0",
|
|
34
|
+
"@scalar/nestjs-api-reference": "^0.4.3",
|
|
35
|
+
"dotenv": "^16.0.3",
|
|
36
|
+
"express-basic-auth": "^1.2.1",
|
|
37
|
+
"ioredis": "^5.3.2",
|
|
38
|
+
"ngrok": "^5.0.0-beta.2",
|
|
39
|
+
"passport": "^0.7.0",
|
|
40
|
+
"passport-custom": "^1.1.1",
|
|
41
|
+
"reflect-metadata": "^0.1.13",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"zod": "^3.22.4",
|
|
44
|
+
"zod-validation-error": "^1.5.0"
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"@eslint/js": "9.23.0",
|
|
44
|
-
"@faker-js/faker": "9.6.0",
|
|
45
|
-
"@nestjs/cli": "11.0.5",
|
|
46
|
-
"@nestjs/schematics": "10.0.2",
|
|
47
|
-
"@nestjs/testing": "11.0.12",
|
|
48
|
-
"@rocketseat/eslint-config": "1.2.0",
|
|
49
|
-
"@swc/cli": "0.6.0",
|
|
50
|
-
"@swc/core": "1.11.16",
|
|
51
|
-
"@types/cookie-parser": "1.4.8",
|
|
52
|
-
"@types/express": "5.0.1",
|
|
53
|
-
"@types/jest": "29.5.14",
|
|
54
|
-
"@types/
|
|
55
|
-
"@types/
|
|
56
|
-
"@
|
|
57
|
-
"@typescript-eslint/
|
|
58
|
-
"@
|
|
59
|
-
"
|
|
60
|
-
"eslint
|
|
61
|
-
"eslint-
|
|
62
|
-
"eslint-plugin-
|
|
63
|
-
"eslint-plugin-vitest
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
47
|
+
"@eslint/js": "^9.23.0",
|
|
48
|
+
"@faker-js/faker": "^9.6.0",
|
|
49
|
+
"@nestjs/cli": "^11.0.5",
|
|
50
|
+
"@nestjs/schematics": "^10.0.2",
|
|
51
|
+
"@nestjs/testing": "^11.0.12",
|
|
52
|
+
"@rocketseat/eslint-config": "^1.2.0",
|
|
53
|
+
"@swc/cli": "^0.6.0",
|
|
54
|
+
"@swc/core": "^1.11.16",
|
|
55
|
+
"@types/cookie-parser": "^1.4.8",
|
|
56
|
+
"@types/express": "^5.0.1",
|
|
57
|
+
"@types/jest": "^29.5.14",
|
|
58
|
+
"@types/multer": "^1.4.12",
|
|
59
|
+
"@types/node": "^22.13.11",
|
|
60
|
+
"@types/supertest": "^6.0.2",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
62
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
63
|
+
"@vitest/coverage-v8": "^3.0.9",
|
|
64
|
+
"eslint": "^8.57.0",
|
|
65
|
+
"eslint-config-prettier": "^8.3.0",
|
|
66
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
67
|
+
"eslint-plugin-vitest": "^0.2.8",
|
|
68
|
+
"eslint-plugin-vitest-globals": "^1.4.0",
|
|
69
|
+
"prettier": "^2.3.2",
|
|
70
|
+
"prisma": "^6.5.0",
|
|
71
|
+
"source-map-support": "^0.5.20",
|
|
72
|
+
"supertest": "^7.1.0",
|
|
73
|
+
"tsconfig-paths": "^4.2.0",
|
|
74
|
+
"typescript": "^5.1.3",
|
|
75
|
+
"unplugin-swc": "^1.5.1",
|
|
76
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
77
|
+
"vitest": "^3.0.9"
|
|
73
78
|
}
|
|
74
79
|
}
|
|
@@ -5,10 +5,9 @@ import { DbTransactionContext } from '@/infra/database/db-transaction-context'
|
|
|
5
5
|
import { KoalaApp } from '@koalarx/nest/core/koala-app'
|
|
6
6
|
import { NestFactory } from '@nestjs/core'
|
|
7
7
|
import { AppModule } from './app.module'
|
|
8
|
-
import { EnvService } from '@koalarx/nest/env/env.service'
|
|
9
8
|
|
|
10
9
|
async function bootstrap() {
|
|
11
|
-
|
|
10
|
+
return NestFactory.create(AppModule).then((app) =>
|
|
12
11
|
new KoalaApp(app)
|
|
13
12
|
.useDoc({
|
|
14
13
|
ui: 'scalar',
|
|
@@ -23,12 +22,7 @@ async function bootstrap() {
|
|
|
23
22
|
.setInternalUserName('integration.bot')
|
|
24
23
|
.setDbTransactionContext(DbTransactionContext)
|
|
25
24
|
.enableCors()
|
|
26
|
-
.
|
|
25
|
+
.buildAndServe(),
|
|
27
26
|
)
|
|
28
|
-
|
|
29
|
-
const envService = app.get(EnvService)
|
|
30
|
-
const port = envService.get('PORT') ?? 3000
|
|
31
|
-
|
|
32
|
-
await app.listen(port)
|
|
33
27
|
}
|
|
34
28
|
bootstrap()
|
|
@@ -29,13 +29,7 @@ export class PersonRepository
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
async save(person: Person): Promise<CreatedRegistreWithIdResponse | null> {
|
|
32
|
-
return this.saveChanges(person)
|
|
33
|
-
if (response) {
|
|
34
|
-
return { id: response.id }
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return null
|
|
38
|
-
})
|
|
32
|
+
return this.saveChanges(person)
|
|
39
33
|
}
|
|
40
34
|
|
|
41
35
|
read(id: number): Promise<Person | null> {
|
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var import_inquirer = __toESM(require("inquirer"));
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "@koalarx/nest-cli",
|
|
33
|
-
version: "1.0.
|
|
33
|
+
version: "1.0.37",
|
|
34
34
|
description: "Biblioteca de CLI para cria\xE7\xE3o de projetos utilizando Koala Nest",
|
|
35
35
|
scripts: {
|
|
36
36
|
test: "vitest run",
|