typescript-express-starter 9.0.0 → 9.1.2

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 (39) hide show
  1. package/lib/default/package.json +7 -10
  2. package/lib/default/src/http/auth.http +0 -5
  3. package/lib/default/swagger.yaml +0 -3
  4. package/lib/graphql/.env.development.local +1 -1
  5. package/lib/graphql/.env.production.local +1 -1
  6. package/lib/graphql/package.json +6 -9
  7. package/lib/knex/.env.development.local +1 -1
  8. package/lib/knex/.env.production.local +1 -1
  9. package/lib/knex/package.json +21 -24
  10. package/lib/knex/src/http/auth.http +0 -5
  11. package/lib/knex/swagger.yaml +0 -3
  12. package/lib/mongoose/.env.development.local +1 -1
  13. package/lib/mongoose/.env.production.local +1 -1
  14. package/lib/mongoose/package.json +5 -8
  15. package/lib/mongoose/src/http/auth.http +0 -5
  16. package/lib/mongoose/swagger.yaml +0 -2
  17. package/lib/prisma/.env.development.local +1 -1
  18. package/lib/prisma/.env.production.local +1 -1
  19. package/lib/prisma/package.json +5 -8
  20. package/lib/prisma/src/http/auth.http +0 -5
  21. package/lib/prisma/swagger.yaml +0 -3
  22. package/lib/routing-controllers/package.json +6 -8
  23. package/lib/routing-controllers/src/http/auth.http +0 -5
  24. package/lib/sequelize/.env.development.local +1 -1
  25. package/lib/sequelize/.env.production.local +1 -1
  26. package/lib/sequelize/package.json +5 -8
  27. package/lib/sequelize/src/http/auth.http +0 -5
  28. package/lib/sequelize/swagger.yaml +0 -3
  29. package/lib/typegoose/.env.development.local +1 -1
  30. package/lib/typegoose/.env.production.local +1 -1
  31. package/lib/typegoose/package.json +5 -8
  32. package/lib/typegoose/src/http/auth.http +0 -5
  33. package/lib/typegoose/swagger.yaml +0 -2
  34. package/lib/typeorm/.env.development.local +1 -1
  35. package/lib/typeorm/.env.production.local +1 -1
  36. package/lib/typeorm/package.json +4 -7
  37. package/lib/typeorm/src/http/auth.http +0 -5
  38. package/lib/typeorm/swagger.yaml +0 -3
  39. package/package.json +1 -1
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "bcrypt": "^5.0.1",
20
- "class-transformer": "^0.4.0",
20
+ "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
22
22
  "compression": "^1.7.4",
23
23
  "cookie-parser": "^1.4.5",
@@ -41,18 +41,15 @@
41
41
  "@types/compression": "^1.7.1",
42
42
  "@types/cookie-parser": "^1.4.2",
43
43
  "@types/cors": "^2.8.11",
44
- "@types/dotenv": "^8.2.0",
45
44
  "@types/express": "^4.17.13",
46
- "@types/helmet": "^4.0.0",
47
45
  "@types/hpp": "^0.2.1",
48
- "@types/jest": "^26.0.24",
46
+ "@types/jest": "27.4.x",
49
47
  "@types/jsonwebtoken": "^8.5.4",
50
48
  "@types/morgan": "^1.9.3",
51
49
  "@types/node": "^16.0.1",
52
50
  "@types/supertest": "^2.0.11",
53
51
  "@types/swagger-jsdoc": "^6.0.1",
54
52
  "@types/swagger-ui-express": "^4.1.3",
55
- "@types/winston": "^2.4.4",
56
53
  "@typescript-eslint/eslint-plugin": "^4.28.2",
57
54
  "@typescript-eslint/parser": "^4.28.2",
58
55
  "cross-env": "^7.0.3",
@@ -60,18 +57,18 @@
60
57
  "eslint-config-prettier": "^8.3.0",
61
58
  "eslint-plugin-prettier": "^3.4.0",
62
59
  "husky": "^7.0.1",
63
- "jest": "^27.0.6",
60
+ "jest": "27.4.x",
64
61
  "lint-staged": "^11.0.0",
65
62
  "node-config": "^0.0.2",
66
63
  "node-gyp": "^8.1.0",
67
64
  "nodemon": "^2.0.9",
68
65
  "pm2": "^5.1.0",
69
66
  "prettier": "^2.3.2",
70
- "supertest": "^6.1.3",
67
+ "supertest": "^6.2.2",
68
+ "ts-jest": "^27.1.4",
69
+ "ts-node": "^10.4.0",
71
70
  "tsc-alias": "^1.4.1",
72
71
  "tsconfig-paths": "^3.10.1",
73
- "ts-jest": "^27.0.3",
74
- "ts-node": "^10.0.0",
75
- "typescript": "^4.3.5"
72
+ "typescript": "^4.5.2"
76
73
  }
77
74
  }
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -111,9 +111,6 @@ definitions:
111
111
  - email
112
112
  - password
113
113
  properties:
114
- id:
115
- type: integer
116
- description: user Id
117
114
  email:
118
115
  type: string
119
116
  description: user Email
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 5432
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = dev
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 5432
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = prod
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "graphql",
2
+ "name": "typescript-express-starter",
3
3
  "version": "0.0.0",
4
- "description": "TypeScript + GraphQL + TypeORM + Express API Server",
4
+ "description": "TypeScript + GraphQL + TypeORM + PostgreSQL + Express API Server",
5
5
  "author": "",
6
6
  "license": "ISC",
7
7
  "scripts": {
@@ -44,15 +44,12 @@
44
44
  "@types/compression": "^1.7.1",
45
45
  "@types/cookie-parser": "^1.4.2",
46
46
  "@types/cors": "^2.8.11",
47
- "@types/dotenv": "^8.2.0",
48
47
  "@types/express": "^4.17.13",
49
- "@types/helmet": "^4.0.0",
50
48
  "@types/hpp": "^0.2.1",
51
- "@types/jest": "^26.0.24",
49
+ "@types/jest": "27.4.x",
52
50
  "@types/jsonwebtoken": "^8.5.4",
53
51
  "@types/node": "^16.0.1",
54
52
  "@types/supertest": "^2.0.11",
55
- "@types/winston": "^2.4.4",
56
53
  "@typescript-eslint/eslint-plugin": "^4.28.2",
57
54
  "@typescript-eslint/parser": "^4.28.2",
58
55
  "cross-env": "^7.0.3",
@@ -60,15 +57,15 @@
60
57
  "eslint-config-prettier": "^8.3.0",
61
58
  "eslint-plugin-prettier": "^3.4.0",
62
59
  "husky": "^7.0.1",
63
- "jest": "^27.0.6",
60
+ "jest": "27.4.x",
64
61
  "lint-staged": "^11.0.0",
65
62
  "node-config": "^0.0.2",
66
63
  "node-gyp": "^8.1.0",
67
64
  "nodemon": "^2.0.9",
68
65
  "pm2": "^5.1.0",
69
66
  "prettier": "^2.3.2",
70
- "supertest": "^6.1.3",
71
- "ts-jest": "^27.0.7",
67
+ "supertest": "^6.2.2",
68
+ "ts-jest": "^27.1.4",
72
69
  "ts-node": "^10.4.0",
73
70
  "tsc-alias": "^1.4.1",
74
71
  "tsconfig-paths": "^3.10.1",
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 3306
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = dev
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 3306
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = prod
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "bcrypt": "^5.0.1",
25
- "class-transformer": "^0.4.0",
25
+ "class-transformer": "^0.5.1",
26
26
  "class-validator": "^0.13.1",
27
27
  "compression": "^1.7.4",
28
28
  "cookie-parser": "^1.4.5",
29
29
  "cors": "^2.8.5",
30
- "dotenv": "^9.0.2",
30
+ "dotenv": "^10.0.0",
31
31
  "envalid": "^7.1.0",
32
32
  "express": "^4.17.1",
33
33
  "helmet": "^4.6.0",
@@ -46,38 +46,35 @@
46
46
  "@swc/cli": "^0.1.51",
47
47
  "@swc/core": "^1.2.108",
48
48
  "@types/bcrypt": "^5.0.0",
49
- "@types/compression": "^1.7.0",
49
+ "@types/compression": "^1.7.1",
50
50
  "@types/cookie-parser": "^1.4.2",
51
- "@types/cors": "^2.8.10",
52
- "@types/dotenv": "^8.2.0",
53
- "@types/express": "^4.17.11",
54
- "@types/helmet": "^4.0.0",
51
+ "@types/cors": "^2.8.11",
52
+ "@types/express": "^4.17.13",
55
53
  "@types/hpp": "^0.2.1",
56
- "@types/jest": "^26.0.23",
57
- "@types/jsonwebtoken": "^8.5.1",
54
+ "@types/jest": "27.4.x",
55
+ "@types/jsonwebtoken": "^8.5.4",
58
56
  "@types/knex": "^0.16.1",
59
- "@types/morgan": "^1.9.2",
60
- "@types/node": "^15.0.2",
57
+ "@types/morgan": "^1.9.3",
58
+ "@types/node": "^16.0.1",
61
59
  "@types/supertest": "^2.0.11",
62
- "@types/swagger-jsdoc": "^6.0.0",
63
- "@types/swagger-ui-express": "^4.1.2",
64
- "@types/winston": "^2.4.4",
65
- "@typescript-eslint/eslint-plugin": "^4.23.0",
66
- "@typescript-eslint/parser": "^4.23.0",
60
+ "@types/swagger-jsdoc": "^6.0.1",
61
+ "@types/swagger-ui-express": "^4.1.3",
62
+ "@typescript-eslint/eslint-plugin": "^4.28.2",
63
+ "@typescript-eslint/parser": "^4.28.2",
67
64
  "cross-env": "^7.0.3",
68
- "eslint": "^7.26.0",
65
+ "eslint": "^7.30.0",
69
66
  "eslint-config-prettier": "^8.3.0",
70
67
  "eslint-plugin-prettier": "^3.4.0",
71
- "husky": "^6.0.0",
72
- "jest": "^27.0.6",
68
+ "husky": "^7.0.1",
69
+ "jest": "27.4.x",
73
70
  "lint-staged": "^11.0.0",
74
71
  "node-config": "0.0.2",
75
- "node-gyp": "^8.0.0",
76
- "nodemon": "^2.0.7",
72
+ "node-gyp": "^8.1.0",
73
+ "nodemon": "^2.0.9",
77
74
  "pm2": "^5.1.0",
78
- "prettier": "^2.3.0",
79
- "supertest": "^6.1.3",
80
- "ts-jest": "^27.0.7",
75
+ "prettier": "^2.3.2",
76
+ "supertest": "^6.2.2",
77
+ "ts-jest": "^27.1.4",
81
78
  "ts-node": "^10.4.0",
82
79
  "tsc-alias": "^1.4.1",
83
80
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -111,9 +111,6 @@ definitions:
111
111
  - email
112
112
  - password
113
113
  properties:
114
- id:
115
- type: integer
116
- description: user Id
117
114
  email:
118
115
  type: string
119
116
  description: user Email
@@ -4,7 +4,7 @@ PORT = 3000
4
4
  # DATABASE
5
5
  DB_HOST = localhost
6
6
  DB_PORT = 27017
7
- DB_DATABASE = test
7
+ DB_DATABASE = dev
8
8
 
9
9
  # TOKEN
10
10
  SECRET_KEY = secretKey
@@ -4,7 +4,7 @@ PORT = 3000
4
4
  # DATABASE
5
5
  DB_HOST = localhost
6
6
  DB_PORT = 27017
7
- DB_DATABASE = test
7
+ DB_DATABASE = prod
8
8
 
9
9
  # TOKEN
10
10
  SECRET_KEY = secretKey
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "bcrypt": "^5.0.1",
20
- "class-transformer": "^0.4.0",
20
+ "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
22
22
  "compression": "^1.7.4",
23
23
  "cookie-parser": "^1.4.5",
@@ -42,11 +42,9 @@
42
42
  "@types/compression": "^1.7.1",
43
43
  "@types/cookie-parser": "^1.4.2",
44
44
  "@types/cors": "^2.8.11",
45
- "@types/dotenv": "^8.2.0",
46
45
  "@types/express": "^4.17.13",
47
- "@types/helmet": "^4.0.0",
48
46
  "@types/hpp": "^0.2.1",
49
- "@types/jest": "^26.0.24",
47
+ "@types/jest": "27.4.x",
50
48
  "@types/jsonwebtoken": "^8.5.4",
51
49
  "@types/mongoose": "^5.10.1",
52
50
  "@types/morgan": "^1.9.3",
@@ -54,7 +52,6 @@
54
52
  "@types/supertest": "^2.0.11",
55
53
  "@types/swagger-jsdoc": "^6.0.1",
56
54
  "@types/swagger-ui-express": "^4.1.3",
57
- "@types/winston": "^2.4.4",
58
55
  "@typescript-eslint/eslint-plugin": "^4.28.2",
59
56
  "@typescript-eslint/parser": "^4.28.2",
60
57
  "cross-env": "^7.0.3",
@@ -62,15 +59,15 @@
62
59
  "eslint-config-prettier": "^8.3.0",
63
60
  "eslint-plugin-prettier": "^3.4.0",
64
61
  "husky": "^7.0.1",
65
- "jest": "^27.0.6",
62
+ "jest": "27.4.x",
66
63
  "lint-staged": "^11.0.0",
67
64
  "node-config": "^0.0.2",
68
65
  "node-gyp": "^8.1.0",
69
66
  "nodemon": "^2.0.9",
70
67
  "pm2": "^5.1.0",
71
68
  "prettier": "^2.3.2",
72
- "supertest": "^6.1.3",
73
- "ts-jest": "^27.0.7",
69
+ "supertest": "^6.2.2",
70
+ "ts-jest": "^27.1.4",
74
71
  "ts-node": "^10.4.0",
75
72
  "tsc-alias": "^1.4.1",
76
73
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -108,8 +108,6 @@ definitions:
108
108
  - email
109
109
  - password
110
110
  properties:
111
- id:
112
- description: user Id
113
111
  email:
114
112
  type: string
115
113
  description: user Email
@@ -2,7 +2,7 @@
2
2
  PORT = 3000
3
3
 
4
4
  # DATABASE
5
- DATABASE_URL= mysql://root:password@localhost:3306/test
5
+ DATABASE_URL= mysql://root:password@localhost:3306/dev
6
6
 
7
7
  # TOKEN
8
8
  SECRET_KEY = secretKey
@@ -2,7 +2,7 @@
2
2
  PORT = 3000
3
3
 
4
4
  # DATABASE
5
- DATABASE_URL= mysql://root:password@localhost:3306/test
5
+ DATABASE_URL= mysql://root:password@localhost:3306/prod
6
6
 
7
7
  # TOKEN
8
8
  SECRET_KEY = secretKey
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@prisma/client": "^3.7.0",
26
26
  "bcrypt": "^5.0.1",
27
- "class-transformer": "^0.4.0",
27
+ "class-transformer": "^0.5.1",
28
28
  "class-validator": "^0.13.1",
29
29
  "compression": "^1.7.4",
30
30
  "cookie-parser": "^1.4.5",
@@ -48,18 +48,15 @@
48
48
  "@types/compression": "^1.7.1",
49
49
  "@types/cookie-parser": "^1.4.2",
50
50
  "@types/cors": "^2.8.11",
51
- "@types/dotenv": "^8.2.0",
52
51
  "@types/express": "^4.17.13",
53
- "@types/helmet": "^4.0.0",
54
52
  "@types/hpp": "^0.2.1",
55
- "@types/jest": "^26.0.24",
53
+ "@types/jest": "27.4.x",
56
54
  "@types/jsonwebtoken": "^8.5.4",
57
55
  "@types/morgan": "^1.9.3",
58
56
  "@types/node": "^16.0.1",
59
57
  "@types/supertest": "^2.0.11",
60
58
  "@types/swagger-jsdoc": "^6.0.1",
61
59
  "@types/swagger-ui-express": "^4.1.3",
62
- "@types/winston": "^2.4.4",
63
60
  "@typescript-eslint/eslint-plugin": "^4.28.2",
64
61
  "@typescript-eslint/parser": "^4.28.2",
65
62
  "cross-env": "^7.0.3",
@@ -67,7 +64,7 @@
67
64
  "eslint-config-prettier": "^8.3.0",
68
65
  "eslint-plugin-prettier": "^3.4.0",
69
66
  "husky": "^7.0.1",
70
- "jest": "^27.0.6",
67
+ "jest": "27.4.x",
71
68
  "lint-staged": "^11.0.0",
72
69
  "node-config": "^0.0.2",
73
70
  "node-gyp": "^8.1.0",
@@ -75,8 +72,8 @@
75
72
  "pm2": "^5.1.0",
76
73
  "prettier": "^2.3.2",
77
74
  "prisma": "^3.7.0",
78
- "supertest": "^6.1.3",
79
- "ts-jest": "^27.0.7",
75
+ "supertest": "^6.2.2",
76
+ "ts-jest": "^27.1.4",
80
77
  "ts-node": "^10.4.0",
81
78
  "tsc-alias": "^1.4.1",
82
79
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -111,9 +111,6 @@ definitions:
111
111
  - email
112
112
  - password
113
113
  properties:
114
- id:
115
- type: integer
116
- description: user Id
117
114
  email:
118
115
  type: string
119
116
  description: user Email
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typescript-express-starter",
3
3
  "version": "0.0.0",
4
- "description": "TypeScript + Express + Routing Controllers API Server",
4
+ "description": "TypeScript + Routing Controllers + Express API Server",
5
5
  "author": "",
6
6
  "license": "ISC",
7
7
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "bcrypt": "^5.0.1",
20
- "class-transformer": "^0.4.0",
20
+ "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
22
22
  "class-validator-jsonschema": "^3.0.2",
23
23
  "compression": "^1.7.4",
@@ -44,17 +44,14 @@
44
44
  "@types/compression": "^1.7.1",
45
45
  "@types/cookie-parser": "^1.4.2",
46
46
  "@types/cors": "^2.8.11",
47
- "@types/dotenv": "^8.2.0",
48
47
  "@types/express": "^4.17.13",
49
- "@types/helmet": "^4.0.0",
50
48
  "@types/hpp": "^0.2.1",
51
- "@types/jest": "^26.0.24",
49
+ "@types/jest": "27.4.x",
52
50
  "@types/jsonwebtoken": "^8.5.4",
53
51
  "@types/morgan": "^1.9.3",
54
52
  "@types/node": "^16.0.1",
55
53
  "@types/supertest": "^2.0.11",
56
54
  "@types/swagger-ui-express": "^4.1.3",
57
- "@types/winston": "^2.4.4",
58
55
  "@typescript-eslint/eslint-plugin": "^4.28.2",
59
56
  "@typescript-eslint/parser": "^4.28.2",
60
57
  "cross-env": "^7.0.3",
@@ -62,14 +59,15 @@
62
59
  "eslint-config-prettier": "^8.3.0",
63
60
  "eslint-plugin-prettier": "^3.4.0",
64
61
  "husky": "^7.0.1",
65
- "jest": "^27.0.5",
62
+ "jest": "27.4.x",
66
63
  "lint-staged": "^11.0.0",
67
64
  "node-config": "^0.0.2",
68
65
  "node-gyp": "^8.1.0",
69
66
  "nodemon": "^2.0.9",
70
67
  "pm2": "^5.1.0",
71
68
  "prettier": "^2.3.2",
72
- "ts-jest": "^27.0.7",
69
+ "supertest": "^6.2.2",
70
+ "ts-jest": "^27.1.4",
73
71
  "ts-node": "^10.4.0",
74
72
  "tsc-alias": "^1.4.1",
75
73
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 3306
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = dev
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 3306
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = prod
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "bcrypt": "^5.0.1",
20
- "class-transformer": "^0.4.0",
20
+ "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
22
22
  "compression": "^1.7.4",
23
23
  "cookie-parser": "^1.4.5",
@@ -43,11 +43,9 @@
43
43
  "@types/compression": "^1.7.1",
44
44
  "@types/cookie-parser": "^1.4.2",
45
45
  "@types/cors": "^2.8.11",
46
- "@types/dotenv": "^8.2.0",
47
46
  "@types/express": "^4.17.13",
48
- "@types/helmet": "^4.0.0",
49
47
  "@types/hpp": "^0.2.1",
50
- "@types/jest": "^26.0.24",
48
+ "@types/jest": "27.4.x",
51
49
  "@types/jsonwebtoken": "^8.5.4",
52
50
  "@types/morgan": "^1.9.3",
53
51
  "@types/node": "^16.0.1",
@@ -55,7 +53,6 @@
55
53
  "@types/supertest": "^2.0.11",
56
54
  "@types/swagger-jsdoc": "^6.0.1",
57
55
  "@types/swagger-ui-express": "^4.1.3",
58
- "@types/winston": "^2.4.4",
59
56
  "@typescript-eslint/eslint-plugin": "^4.28.2",
60
57
  "@typescript-eslint/parser": "^4.28.2",
61
58
  "cross-env": "^7.0.3",
@@ -63,7 +60,7 @@
63
60
  "eslint-config-prettier": "^8.3.0",
64
61
  "eslint-plugin-prettier": "^3.4.0",
65
62
  "husky": "^7.0.1",
66
- "jest": "^27.0.6",
63
+ "jest": "27.4.x",
67
64
  "lint-staged": "^11.0.0",
68
65
  "node-config": "^0.0.2",
69
66
  "node-gyp": "^8.1.0",
@@ -71,8 +68,8 @@
71
68
  "pm2": "^5.1.0",
72
69
  "prettier": "^2.3.2",
73
70
  "sequelize-cli": "^6.2.0",
74
- "supertest": "^6.1.3",
75
- "ts-jest": "^27.0.7",
71
+ "supertest": "^6.2.2",
72
+ "ts-jest": "^27.1.4",
76
73
  "ts-node": "^10.4.0",
77
74
  "tsc-alias": "^1.4.1",
78
75
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -111,9 +111,6 @@ definitions:
111
111
  - email
112
112
  - password
113
113
  properties:
114
- id:
115
- type: integer
116
- description: user Id
117
114
  email:
118
115
  type: string
119
116
  description: user Email
@@ -4,7 +4,7 @@ PORT = 3000
4
4
  # DATABASE
5
5
  DB_HOST = localhost
6
6
  DB_PORT = 27017
7
- DB_DATABASE = test
7
+ DB_DATABASE = dev
8
8
 
9
9
  # TOKEN
10
10
  SECRET_KEY = secretKey
@@ -4,7 +4,7 @@ PORT = 3000
4
4
  # DATABASE
5
5
  DB_HOST = localhost
6
6
  DB_PORT = 27017
7
- DB_DATABASE = test
7
+ DB_DATABASE = prod
8
8
 
9
9
  # TOKEN
10
10
  SECRET_KEY = secretKey
@@ -29,7 +29,7 @@
29
29
  "helmet": "^4.6.0",
30
30
  "hpp": "^0.2.3",
31
31
  "jsonwebtoken": "^8.5.1",
32
- "mongoose": "~6.2.3",
32
+ "mongoose": "^6.3.2",
33
33
  "morgan": "^1.10.0",
34
34
  "swagger-jsdoc": "^6.0.0",
35
35
  "swagger-ui-express": "^4.1.6",
@@ -43,11 +43,9 @@
43
43
  "@types/compression": "^1.7.1",
44
44
  "@types/cookie-parser": "^1.4.2",
45
45
  "@types/cors": "^2.8.11",
46
- "@types/dotenv": "^8.2.0",
47
46
  "@types/express": "^4.17.13",
48
- "@types/helmet": "^4.0.0",
49
47
  "@types/hpp": "^0.2.1",
50
- "@types/jest": "^26.0.24",
48
+ "@types/jest": "27.4.x",
51
49
  "@types/jsonwebtoken": "^8.5.4",
52
50
  "@types/mongoose": "^5.10.1",
53
51
  "@types/morgan": "^1.9.3",
@@ -55,7 +53,6 @@
55
53
  "@types/supertest": "^2.0.11",
56
54
  "@types/swagger-jsdoc": "^6.0.1",
57
55
  "@types/swagger-ui-express": "^4.1.3",
58
- "@types/winston": "^2.4.4",
59
56
  "@typescript-eslint/eslint-plugin": "^4.28.2",
60
57
  "@typescript-eslint/parser": "^4.28.2",
61
58
  "cross-env": "^7.0.3",
@@ -63,15 +60,15 @@
63
60
  "eslint-config-prettier": "^8.3.0",
64
61
  "eslint-plugin-prettier": "^3.4.0",
65
62
  "husky": "^7.0.1",
66
- "jest": "^27.0.6",
63
+ "jest": "27.4.x",
67
64
  "lint-staged": "^11.0.0",
68
65
  "node-config": "^0.0.2",
69
66
  "node-gyp": "^8.1.0",
70
67
  "nodemon": "^2.0.9",
71
68
  "pm2": "^5.1.0",
72
69
  "prettier": "^2.3.2",
73
- "supertest": "^6.1.3",
74
- "ts-jest": "^27.0.7",
70
+ "supertest": "^6.2.2",
71
+ "ts-jest": "^27.1.4",
75
72
  "ts-node": "^10.4.0",
76
73
  "tsc-alias": "^1.4.1",
77
74
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -108,8 +108,6 @@ definitions:
108
108
  - email
109
109
  - password
110
110
  properties:
111
- id:
112
- description: user Id
113
111
  email:
114
112
  type: string
115
113
  description: user Email
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 5432
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = dev
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -6,7 +6,7 @@ DB_HOST = localhost
6
6
  DB_PORT = 5432
7
7
  DB_USER = root
8
8
  DB_PASSWORD = password
9
- DB_DATABASE = test
9
+ DB_DATABASE = prod
10
10
 
11
11
  # TOKEN
12
12
  SECRET_KEY = secretKey
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "bcrypt": "^5.0.1",
20
- "class-transformer": "^0.4.0",
20
+ "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
22
22
  "compression": "^1.7.4",
23
23
  "cookie-parser": "^1.4.5",
@@ -44,18 +44,15 @@
44
44
  "@types/compression": "^1.7.1",
45
45
  "@types/cookie-parser": "^1.4.2",
46
46
  "@types/cors": "^2.8.11",
47
- "@types/dotenv": "^8.2.0",
48
47
  "@types/express": "^4.17.13",
49
- "@types/helmet": "^4.0.0",
50
48
  "@types/hpp": "^0.2.1",
51
- "@types/jest": "^26.0.24",
49
+ "@types/jest": "27.4.x",
52
50
  "@types/jsonwebtoken": "^8.5.4",
53
51
  "@types/morgan": "^1.9.3",
54
52
  "@types/node": "^16.0.1",
55
53
  "@types/supertest": "^2.0.11",
56
54
  "@types/swagger-jsdoc": "^6.0.1",
57
55
  "@types/swagger-ui-express": "^4.1.3",
58
- "@types/winston": "^2.4.4",
59
56
  "@typescript-eslint/eslint-plugin": "^4.28.2",
60
57
  "@typescript-eslint/parser": "^4.28.2",
61
58
  "cross-env": "^7.0.3",
@@ -70,8 +67,8 @@
70
67
  "nodemon": "^2.0.9",
71
68
  "pm2": "^5.1.0",
72
69
  "prettier": "^2.3.2",
73
- "supertest": "^6.1.3",
74
- "ts-jest": "^27.0.7",
70
+ "supertest": "^6.2.2",
71
+ "ts-jest": "^27.1.4",
75
72
  "ts-node": "^10.4.0",
76
73
  "tsc-alias": "^1.4.1",
77
74
  "tsconfig-paths": "^3.10.1",
@@ -25,8 +25,3 @@ Content-Type: application/json
25
25
  # User Logout
26
26
  POST {{ baseURL }}/logout
27
27
  Content-Type: application/json
28
-
29
- {
30
- "email": "example@email.com",
31
- "password": "password"
32
- }
@@ -111,9 +111,6 @@ definitions:
111
111
  - email
112
112
  - password
113
113
  properties:
114
- id:
115
- type: integer
116
- description: user Id
117
114
  email:
118
115
  type: string
119
116
  description: user Email
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-express-starter",
3
- "version": "9.0.0",
3
+ "version": "9.1.2",
4
4
  "description": "Quick and Easy TypeScript Express Starter",
5
5
  "author": "AGUMON <ljlm0402@gmail.com>",
6
6
  "license": "MIT",