express-generator-typescript 2.2.7 → 2.2.9
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/lib/project-files/spec/tests/auth.spec.ts +2 -2
- package/lib/project-files/spec/tests/users.spec.ts +1 -1
- package/lib/project-files/src/declarations/classes.ts +5 -1
- package/lib/project-files/src/declarations/enums.ts +4 -0
- package/lib/project-files/src/declarations/functions.ts +4 -0
- package/lib/project-files/src/{configurations → declarations/major}/EnvVars.ts +0 -0
- package/lib/project-files/src/{configurations → declarations/major}/HttpStatusCodes.ts +0 -0
- package/lib/project-files/src/index.ts +1 -1
- package/lib/project-files/src/routes/auth-routes.ts +2 -2
- package/lib/project-files/src/routes/shared/adminMw.ts +2 -2
- package/lib/project-files/src/routes/shared/types.ts +1 -1
- package/lib/project-files/src/routes/user-routes.ts +1 -1
- package/lib/project-files/src/server.ts +2 -2
- package/lib/project-files/src/services/auth-service.ts +1 -1
- package/lib/project-files/src/services/user-service.ts +1 -1
- package/lib/project-files/src/util/jwt-util.ts +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import app from '@src/server';
|
|
|
5
5
|
import authRoutes from '@src/routes/auth-routes';
|
|
6
6
|
import userRepo from '@src/repos/user-repo';
|
|
7
7
|
import pwdUtil from '@src/util/pwd-util';
|
|
8
|
-
import EnvVars from '@src/
|
|
9
|
-
import HttpStatusCodes from '@src/
|
|
8
|
+
import EnvVars from '@src/declarations/major/EnvVars';
|
|
9
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
10
10
|
import User, { UserRoles } from '@src/models/User';
|
|
11
11
|
import { errors as authServiceErrs } from '@src/services/auth-service';
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ import app from '@src/server';
|
|
|
6
6
|
import userRepo from '@src/repos/user-repo';
|
|
7
7
|
import User, { IUser } from '@src/models/User';
|
|
8
8
|
import userRoutes from '@src/routes/user-routes';
|
|
9
|
-
import HttpStatusCodes from '@src/
|
|
9
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
10
10
|
import loginAgent from '../support/login-agent';
|
|
11
11
|
import { userNotFoundErr } from '@src/services/user-service';
|
|
12
12
|
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import HttpStatusCodes from '@src/
|
|
1
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
2
2
|
|
|
3
3
|
import authService from '@src/services/auth-service';
|
|
4
|
-
import EnvVars from '@src/
|
|
4
|
+
import EnvVars from '@src/declarations/major/EnvVars';
|
|
5
5
|
import { IReq, IRes } from './shared/types';
|
|
6
6
|
|
|
7
7
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { Request, Response, NextFunction } from 'express';
|
|
6
6
|
import { JwtPayload } from 'jsonwebtoken';
|
|
7
7
|
|
|
8
|
-
import HttpStatusCodes from '@src/
|
|
9
|
-
import EnvVars from '@src/
|
|
8
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
9
|
+
import EnvVars from '@src/declarations/major/EnvVars';
|
|
10
10
|
import jwtUtil from '@src/util/jwt-util';
|
|
11
11
|
import { IUser, UserRoles } from '@src/models/User';
|
|
12
12
|
|
|
@@ -8,8 +8,8 @@ import 'express-async-errors';
|
|
|
8
8
|
|
|
9
9
|
import BaseRouter from './routes/api';
|
|
10
10
|
import logger from 'jet-logger';
|
|
11
|
-
import EnvVars from '@src/
|
|
12
|
-
import HttpStatusCodes from '@src/
|
|
11
|
+
import EnvVars from '@src/declarations/major/EnvVars';
|
|
12
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
13
13
|
import { NodeEnvs } from '@src/declarations/enums';
|
|
14
14
|
import { RouteError } from '@src/declarations/classes';
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import userRepo from '@src/repos/user-repo';
|
|
2
2
|
import jwtUtil from '@src/util/jwt-util';
|
|
3
3
|
import pwdUtil from '@src/util/pwd-util';
|
|
4
|
-
import HttpStatusCodes from '@src/
|
|
4
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
5
5
|
import { RouteError } from '@src/declarations/classes';
|
|
6
6
|
import { tick } from '@src/declarations/functions';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import userRepo from '@src/repos/user-repo';
|
|
2
2
|
import { IUser } from '@src/models/User';
|
|
3
3
|
import { RouteError } from '@src/declarations/classes';
|
|
4
|
-
import HttpStatusCodes from '@src/
|
|
4
|
+
import HttpStatusCodes from '@src/declarations/major/HttpStatusCodes';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
// **** Variables **** //
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-generator-typescript",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"express-generator-typescript": "node bin/cli.js",
|