Browse Source

lib refactor

CrazyDoctor 1 year ago
parent
commit
21323d5864
39 changed files with 32 additions and 77 deletions
  1. 1 1
      dist/middlewares/ExpressJsonMiddleware.d.ts
  2. 1 2
      dist/middlewares/ExpressJsonMiddleware.js
  3. 1 1
      dist/middlewares/ExpressJsonMiddleware.js.map
  4. 1 1
      dist/middlewares/ExpressUrlencodedMiddleware.d.ts
  5. 1 2
      dist/middlewares/ExpressUrlencodedMiddleware.js
  6. 1 1
      dist/middlewares/ExpressUrlencodedMiddleware.js.map
  7. 1 1
      dist/middlewares/InternalServerErrorHandler.d.ts
  8. 1 2
      dist/middlewares/InternalServerErrorHandler.js
  9. 1 1
      dist/middlewares/InternalServerErrorHandler.js.map
  10. 1 1
      dist/middlewares/LoggerMiddleware.d.ts
  11. 1 2
      dist/middlewares/LoggerMiddleware.js
  12. 1 1
      dist/middlewares/LoggerMiddleware.js.map
  13. 1 1
      dist/middlewares/NotFoundErrorHandler.d.ts
  14. 1 2
      dist/middlewares/NotFoundErrorHandler.js
  15. 1 1
      dist/middlewares/NotFoundErrorHandler.js.map
  16. 1 1
      dist/middlewares/SessionMiddleware.d.ts
  17. 1 2
      dist/middlewares/SessionMiddleware.js
  18. 1 1
      dist/middlewares/SessionMiddleware.js.map
  19. 0 6
      dist/middlewares/index.d.ts
  20. 0 16
      dist/middlewares/index.js
  21. 0 1
      dist/middlewares/index.js.map
  22. 1 1
      dist/routes/GetIndex.d.ts
  23. 1 2
      dist/routes/GetIndex.js
  24. 1 1
      dist/routes/GetIndex.js.map
  25. 0 1
      dist/routes/index.d.ts
  26. 0 6
      dist/routes/index.js
  27. 0 1
      dist/routes/index.js.map
  28. 2 2
      dist/server/Server.js
  29. 0 0
      dist/server/Server.js.map
  30. 1 1
      lib/middlewares/ExpressJsonMiddleware.ts
  31. 1 1
      lib/middlewares/ExpressUrlencodedMiddleware.ts
  32. 1 1
      lib/middlewares/InternalServerErrorHandler.ts
  33. 1 1
      lib/middlewares/LoggerMiddleware.ts
  34. 1 1
      lib/middlewares/NotFoundErrorHandler.ts
  35. 1 1
      lib/middlewares/SessionMiddleware.ts
  36. 0 6
      lib/middlewares/index.ts
  37. 1 1
      lib/routes/GetIndex.ts
  38. 0 1
      lib/routes/index.ts
  39. 2 2
      lib/server/Server.ts

+ 1 - 1
dist/middlewares/ExpressJsonMiddleware.d.ts

@@ -5,4 +5,4 @@ declare class ExpressJsonMiddleware extends Middleware {
     protected route: null;
     protected route: null;
     protected action: import("connect").NextHandleFunction;
     protected action: import("connect").NextHandleFunction;
 }
 }
-export { ExpressJsonMiddleware };
+export default ExpressJsonMiddleware;

+ 1 - 2
dist/middlewares/ExpressJsonMiddleware.js

@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
     return (mod && mod.__esModule) ? mod : { "default": mod };
     return (mod && mod.__esModule) ? mod : { "default": mod };
 };
 };
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.ExpressJsonMiddleware = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 const express_1 = __importDefault(require("express"));
 const express_1 = __importDefault(require("express"));
 class ExpressJsonMiddleware extends http_1.Middleware {
 class ExpressJsonMiddleware extends http_1.Middleware {
@@ -14,5 +13,5 @@ class ExpressJsonMiddleware extends http_1.Middleware {
         this.action = express_1.default.json();
         this.action = express_1.default.json();
     }
     }
 }
 }
-exports.ExpressJsonMiddleware = ExpressJsonMiddleware;
+exports.default = ExpressJsonMiddleware;
 //# sourceMappingURL=ExpressJsonMiddleware.js.map
 //# sourceMappingURL=ExpressJsonMiddleware.js.map

+ 1 - 1
dist/middlewares/ExpressJsonMiddleware.js.map

@@ -1 +1 @@
-{"version":3,"file":"ExpressJsonMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/ExpressJsonMiddleware.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0C;AAC1C,sDAA8B;AAE9B,MAAM,qBAAsB,SAAQ,iBAAU;IAA9C;;QACW,UAAK,GAAG,CAAC,GAAG,CAAC;QACb,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,iBAAO,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;CAAA;AAEQ,sDAAqB"}
+{"version":3,"file":"ExpressJsonMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/ExpressJsonMiddleware.ts"],"names":[],"mappings":";;;;;AAAA,uCAA0C;AAC1C,sDAA8B;AAE9B,MAAM,qBAAsB,SAAQ,iBAAU;IAA9C;;QACW,UAAK,GAAG,CAAC,GAAG,CAAC;QACb,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,iBAAO,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,kBAAe,qBAAqB,CAAC"}

+ 1 - 1
dist/middlewares/ExpressUrlencodedMiddleware.d.ts

@@ -5,4 +5,4 @@ declare class ExpressUrlencodedMiddleware extends Middleware {
     protected route: null;
     protected route: null;
     protected action: import("connect").NextHandleFunction;
     protected action: import("connect").NextHandleFunction;
 }
 }
-export { ExpressUrlencodedMiddleware };
+export default ExpressUrlencodedMiddleware;

+ 1 - 2
dist/middlewares/ExpressUrlencodedMiddleware.js

@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
     return (mod && mod.__esModule) ? mod : { "default": mod };
     return (mod && mod.__esModule) ? mod : { "default": mod };
 };
 };
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.ExpressUrlencodedMiddleware = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 const express_1 = __importDefault(require("express"));
 const express_1 = __importDefault(require("express"));
 class ExpressUrlencodedMiddleware extends http_1.Middleware {
 class ExpressUrlencodedMiddleware extends http_1.Middleware {
@@ -14,5 +13,5 @@ class ExpressUrlencodedMiddleware extends http_1.Middleware {
         this.action = express_1.default.urlencoded({ extended: false });
         this.action = express_1.default.urlencoded({ extended: false });
     }
     }
 }
 }
-exports.ExpressUrlencodedMiddleware = ExpressUrlencodedMiddleware;
+exports.default = ExpressUrlencodedMiddleware;
 //# sourceMappingURL=ExpressUrlencodedMiddleware.js.map
 //# sourceMappingURL=ExpressUrlencodedMiddleware.js.map

+ 1 - 1
dist/middlewares/ExpressUrlencodedMiddleware.js.map

@@ -1 +1 @@
-{"version":3,"file":"ExpressUrlencodedMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/ExpressUrlencodedMiddleware.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0C;AAC1C,sDAA8B;AAE9B,MAAM,2BAA4B,SAAQ,iBAAU;IAApD;;QACW,UAAK,GAAG,CAAC,EAAE,CAAC;QACZ,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,iBAAO,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5D,CAAC;CAAA;AAEQ,kEAA2B"}
+{"version":3,"file":"ExpressUrlencodedMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/ExpressUrlencodedMiddleware.ts"],"names":[],"mappings":";;;;;AAAA,uCAA0C;AAC1C,sDAA8B;AAE9B,MAAM,2BAA4B,SAAQ,iBAAU;IAApD;;QACW,UAAK,GAAG,CAAC,EAAE,CAAC;QACZ,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,iBAAO,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5D,CAAC;CAAA;AAED,kBAAe,2BAA2B,CAAC"}

+ 1 - 1
dist/middlewares/InternalServerErrorHandler.d.ts

@@ -5,4 +5,4 @@ declare class InternalServerErrorHandler extends Middleware {
     protected route: null;
     protected route: null;
     protected action: (err: Error, req: Request, res: Response, next: NextFunction) => any;
     protected action: (err: Error, req: Request, res: Response, next: NextFunction) => any;
 }
 }
-export { InternalServerErrorHandler };
+export default InternalServerErrorHandler;

+ 1 - 2
dist/middlewares/InternalServerErrorHandler.js

@@ -1,6 +1,5 @@
 "use strict";
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.InternalServerErrorHandler = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 const i18n_1 = require("../base/i18n");
 const i18n_1 = require("../base/i18n");
 class InternalServerErrorHandler extends http_1.Middleware {
 class InternalServerErrorHandler extends http_1.Middleware {
@@ -13,5 +12,5 @@ class InternalServerErrorHandler extends http_1.Middleware {
         };
         };
     }
     }
 }
 }
-exports.InternalServerErrorHandler = InternalServerErrorHandler;
+exports.default = InternalServerErrorHandler;
 //# sourceMappingURL=InternalServerErrorHandler.js.map
 //# sourceMappingURL=InternalServerErrorHandler.js.map

+ 1 - 1
dist/middlewares/InternalServerErrorHandler.js.map

@@ -1 +1 @@
-{"version":3,"file":"InternalServerErrorHandler.js","sourceRoot":"","sources":["../../lib/middlewares/InternalServerErrorHandler.ts"],"names":[],"mappings":";;;AAAA,uCAAuD;AAEvD,uCAAkC;AAElC,MAAM,0BAA2B,SAAQ,iBAAU;IAAnD;;QACW,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,CAAC,GAAU,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAO,EAAE;YACvF,GAAG,CAAC,MAAM,CAAC,kBAAW,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAA,SAAE,EAAC,yCAAyC,CAAC,CAAC,CAAC;QACnG,CAAC,CAAC;IACH,CAAC;CAAA;AAEQ,gEAA0B"}
+{"version":3,"file":"InternalServerErrorHandler.js","sourceRoot":"","sources":["../../lib/middlewares/InternalServerErrorHandler.ts"],"names":[],"mappings":";;AAAA,uCAAuD;AAEvD,uCAAkC;AAElC,MAAM,0BAA2B,SAAQ,iBAAU;IAAnD;;QACW,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,CAAC,GAAU,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAO,EAAE;YACvF,GAAG,CAAC,MAAM,CAAC,kBAAW,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAA,SAAE,EAAC,yCAAyC,CAAC,CAAC,CAAC;QACnG,CAAC,CAAC;IACH,CAAC;CAAA;AAED,kBAAe,0BAA0B,CAAC"}

+ 1 - 1
dist/middlewares/LoggerMiddleware.d.ts

@@ -4,4 +4,4 @@ declare class LoggerMiddleware extends Middleware {
     protected route: null;
     protected route: null;
     protected action: import("pino-http").HttpLogger;
     protected action: import("pino-http").HttpLogger;
 }
 }
-export { LoggerMiddleware };
+export default LoggerMiddleware;

+ 1 - 2
dist/middlewares/LoggerMiddleware.js

@@ -1,6 +1,5 @@
 "use strict";
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.LoggerMiddleware = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 class LoggerMiddleware extends http_1.Middleware {
 class LoggerMiddleware extends http_1.Middleware {
     constructor() {
     constructor() {
@@ -10,5 +9,5 @@ class LoggerMiddleware extends http_1.Middleware {
         this.action = this.context.getLogger().getHttpLogger();
         this.action = this.context.getLogger().getHttpLogger();
     }
     }
 }
 }
-exports.LoggerMiddleware = LoggerMiddleware;
+exports.default = LoggerMiddleware;
 //# sourceMappingURL=LoggerMiddleware.js.map
 //# sourceMappingURL=LoggerMiddleware.js.map

+ 1 - 1
dist/middlewares/LoggerMiddleware.js.map

@@ -1 +1 @@
-{"version":3,"file":"LoggerMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/LoggerMiddleware.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAG1C,MAAM,gBAAiB,SAAQ,iBAAU;IAAzC;;QACW,UAAK,GAAG,CAAC,EAAE,CAAC;QACZ,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAY,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,aAAa,EAAE,CAAC;IACvE,CAAC;CAAA;AAEQ,4CAAgB"}
+{"version":3,"file":"LoggerMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/LoggerMiddleware.ts"],"names":[],"mappings":";;AAAA,uCAA0C;AAG1C,MAAM,gBAAiB,SAAQ,iBAAU;IAAzC;;QACW,UAAK,GAAG,CAAC,EAAE,CAAC;QACZ,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAY,IAAI,CAAC,OAAO,CAAC,SAAS,EAAG,CAAC,aAAa,EAAE,CAAC;IACvE,CAAC;CAAA;AAED,kBAAe,gBAAgB,CAAC"}

+ 1 - 1
dist/middlewares/NotFoundErrorHandler.d.ts

@@ -5,4 +5,4 @@ declare class NotFoundErrorHandler extends Middleware {
     protected route: null;
     protected route: null;
     protected action: (req: Request, res: Response, next: NextFunction) => any;
     protected action: (req: Request, res: Response, next: NextFunction) => any;
 }
 }
-export { NotFoundErrorHandler };
+export default NotFoundErrorHandler;

+ 1 - 2
dist/middlewares/NotFoundErrorHandler.js

@@ -1,6 +1,5 @@
 "use strict";
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.NotFoundErrorHandler = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 const i18n_1 = require("../base/i18n");
 const i18n_1 = require("../base/i18n");
 class NotFoundErrorHandler extends http_1.Middleware {
 class NotFoundErrorHandler extends http_1.Middleware {
@@ -13,5 +12,5 @@ class NotFoundErrorHandler extends http_1.Middleware {
         };
         };
     }
     }
 }
 }
-exports.NotFoundErrorHandler = NotFoundErrorHandler;
+exports.default = NotFoundErrorHandler;
 //# sourceMappingURL=NotFoundErrorHandler.js.map
 //# sourceMappingURL=NotFoundErrorHandler.js.map

+ 1 - 1
dist/middlewares/NotFoundErrorHandler.js.map

@@ -1 +1 @@
-{"version":3,"file":"NotFoundErrorHandler.js","sourceRoot":"","sources":["../../lib/middlewares/NotFoundErrorHandler.ts"],"names":[],"mappings":";;;AAAA,uCAAuD;AAEvD,uCAAkC;AAElC,MAAM,oBAAqB,SAAQ,iBAAU;IAA7C;;QACW,UAAK,GAAG,IAAI,CAAC;QACb,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAO,EAAE;YAC3E,GAAG,CAAC,MAAM,CAAC,kBAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAA,SAAE,EAAC,yCAAyC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACzG,CAAC,CAAC;IACH,CAAC;CAAA;AAEQ,oDAAoB"}
+{"version":3,"file":"NotFoundErrorHandler.js","sourceRoot":"","sources":["../../lib/middlewares/NotFoundErrorHandler.ts"],"names":[],"mappings":";;AAAA,uCAAuD;AAEvD,uCAAkC;AAElC,MAAM,oBAAqB,SAAQ,iBAAU;IAA7C;;QACW,UAAK,GAAG,IAAI,CAAC;QACb,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAO,EAAE;YAC3E,GAAG,CAAC,MAAM,CAAC,kBAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAA,SAAE,EAAC,yCAAyC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACzG,CAAC,CAAC;IACH,CAAC;CAAA;AAED,kBAAe,oBAAoB,CAAC"}

+ 1 - 1
dist/middlewares/SessionMiddleware.d.ts

@@ -6,4 +6,4 @@ declare class SessionMiddleware extends Middleware {
     protected route: null;
     protected route: null;
     protected action: import("express").RequestHandler<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>;
     protected action: import("express").RequestHandler<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>;
 }
 }
-export { SessionMiddleware };
+export default SessionMiddleware;

+ 1 - 2
dist/middlewares/SessionMiddleware.js

@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
     return (mod && mod.__esModule) ? mod : { "default": mod };
     return (mod && mod.__esModule) ? mod : { "default": mod };
 };
 };
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.SessionMiddleware = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 const express_session_1 = __importDefault(require("express-session"));
 const express_session_1 = __importDefault(require("express-session"));
 const util_1 = require("../base/util");
 const util_1 = require("../base/util");
@@ -15,5 +14,5 @@ class SessionMiddleware extends http_1.Middleware {
         this.action = (0, express_session_1.default)({ secret: util_1.Guid.new(), resave: false, saveUninitialized: false });
         this.action = (0, express_session_1.default)({ secret: util_1.Guid.new(), resave: false, saveUninitialized: false });
     }
     }
 }
 }
-exports.SessionMiddleware = SessionMiddleware;
+exports.default = SessionMiddleware;
 //# sourceMappingURL=SessionMiddleware.js.map
 //# sourceMappingURL=SessionMiddleware.js.map

+ 1 - 1
dist/middlewares/SessionMiddleware.js.map

@@ -1 +1 @@
-{"version":3,"file":"SessionMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/SessionMiddleware.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0C;AAC1C,sEAAsC;AACtC,uCAAoC;AAEpC,MAAM,iBAAkB,SAAQ,iBAAU;IAA1C;;QACW,UAAK,GAAG,CAAC,EAAE,CAAC;QACZ,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,IAAA,yBAAO,EAAC,EAAE,MAAM,EAAE,WAAI,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7F,CAAC;CAAA;AAEQ,8CAAiB"}
+{"version":3,"file":"SessionMiddleware.js","sourceRoot":"","sources":["../../lib/middlewares/SessionMiddleware.ts"],"names":[],"mappings":";;;;;AAAA,uCAA0C;AAC1C,sEAAsC;AACtC,uCAAoC;AAEpC,MAAM,iBAAkB,SAAQ,iBAAU;IAA1C;;QACW,UAAK,GAAG,CAAC,EAAE,CAAC;QACZ,UAAK,GAAG,IAAI,CAAC;QACb,WAAM,GAAG,IAAA,yBAAO,EAAC,EAAE,MAAM,EAAE,WAAI,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7F,CAAC;CAAA;AAED,kBAAe,iBAAiB,CAAC"}

+ 0 - 6
dist/middlewares/index.d.ts

@@ -1,6 +0,0 @@
-export { ExpressJsonMiddleware } from './ExpressJsonMiddleware';
-export { ExpressUrlencodedMiddleware } from './ExpressUrlencodedMiddleware';
-export { InternalServerErrorHandler } from './InternalServerErrorHandler';
-export { LoggerMiddleware } from './LoggerMiddleware';
-export { NotFoundErrorHandler } from './NotFoundErrorHandler';
-export { SessionMiddleware } from './SessionMiddleware';

+ 0 - 16
dist/middlewares/index.js

@@ -1,16 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.SessionMiddleware = exports.NotFoundErrorHandler = exports.LoggerMiddleware = exports.InternalServerErrorHandler = exports.ExpressUrlencodedMiddleware = exports.ExpressJsonMiddleware = void 0;
-var ExpressJsonMiddleware_1 = require("./ExpressJsonMiddleware");
-Object.defineProperty(exports, "ExpressJsonMiddleware", { enumerable: true, get: function () { return ExpressJsonMiddleware_1.ExpressJsonMiddleware; } });
-var ExpressUrlencodedMiddleware_1 = require("./ExpressUrlencodedMiddleware");
-Object.defineProperty(exports, "ExpressUrlencodedMiddleware", { enumerable: true, get: function () { return ExpressUrlencodedMiddleware_1.ExpressUrlencodedMiddleware; } });
-var InternalServerErrorHandler_1 = require("./InternalServerErrorHandler");
-Object.defineProperty(exports, "InternalServerErrorHandler", { enumerable: true, get: function () { return InternalServerErrorHandler_1.InternalServerErrorHandler; } });
-var LoggerMiddleware_1 = require("./LoggerMiddleware");
-Object.defineProperty(exports, "LoggerMiddleware", { enumerable: true, get: function () { return LoggerMiddleware_1.LoggerMiddleware; } });
-var NotFoundErrorHandler_1 = require("./NotFoundErrorHandler");
-Object.defineProperty(exports, "NotFoundErrorHandler", { enumerable: true, get: function () { return NotFoundErrorHandler_1.NotFoundErrorHandler; } });
-var SessionMiddleware_1 = require("./SessionMiddleware");
-Object.defineProperty(exports, "SessionMiddleware", { enumerable: true, get: function () { return SessionMiddleware_1.SessionMiddleware; } });
-//# sourceMappingURL=index.js.map

+ 0 - 1
dist/middlewares/index.js.map

@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}

+ 1 - 1
dist/routes/GetIndex.d.ts

@@ -6,4 +6,4 @@ declare class GetIndex extends Route {
     protected route: string;
     protected route: string;
     protected action: (req: Request, res: Response) => any;
     protected action: (req: Request, res: Response) => any;
 }
 }
-export { GetIndex };
+export default GetIndex;

+ 1 - 2
dist/routes/GetIndex.js

@@ -1,6 +1,5 @@
 "use strict";
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.GetIndex = void 0;
 const http_1 = require("../base/http");
 const http_1 = require("../base/http");
 class GetIndex extends http_1.Route {
 class GetIndex extends http_1.Route {
     constructor() {
     constructor() {
@@ -13,5 +12,5 @@ class GetIndex extends http_1.Route {
         };
         };
     }
     }
 }
 }
-exports.GetIndex = GetIndex;
+exports.default = GetIndex;
 //# sourceMappingURL=GetIndex.js.map
 //# sourceMappingURL=GetIndex.js.map

+ 1 - 1
dist/routes/GetIndex.js.map

@@ -1 +1 @@
-{"version":3,"file":"GetIndex.js","sourceRoot":"","sources":["../../lib/routes/GetIndex.ts"],"names":[],"mappings":";;;AACA,uCAA8D;AAE9D,MAAM,QAAS,SAAQ,YAAK;IAA5B;;QACW,UAAK,GAAG,CAAC,CAAC;QACV,WAAM,GAAG,iBAAU,CAAC,GAAG,CAAC;QACxB,UAAK,GAAG,GAAG,CAAC;QACZ,WAAM,GAAG,CAAC,GAAY,EAAE,GAAa,EAAO,EAAE;YACvD,GAAG,CAAC,MAAM,CAAC,kBAAW,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QACjF,CAAC,CAAC;IACH,CAAC;CAAA;AAEQ,4BAAQ"}
+{"version":3,"file":"GetIndex.js","sourceRoot":"","sources":["../../lib/routes/GetIndex.ts"],"names":[],"mappings":";;AACA,uCAA8D;AAE9D,MAAM,QAAS,SAAQ,YAAK;IAA5B;;QACW,UAAK,GAAG,CAAC,CAAC;QACV,WAAM,GAAG,iBAAU,CAAC,GAAG,CAAC;QACxB,UAAK,GAAG,GAAG,CAAC;QACZ,WAAM,GAAG,CAAC,GAAY,EAAE,GAAa,EAAO,EAAE;YACvD,GAAG,CAAC,MAAM,CAAC,kBAAW,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QACjF,CAAC,CAAC;IACH,CAAC;CAAA;AAED,kBAAe,QAAQ,CAAC"}

+ 0 - 1
dist/routes/index.d.ts

@@ -1 +0,0 @@
-export { GetIndex } from './GetIndex';

+ 0 - 6
dist/routes/index.js

@@ -1,6 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.GetIndex = void 0;
-var GetIndex_1 = require("./GetIndex");
-Object.defineProperty(exports, "GetIndex", { enumerable: true, get: function () { return GetIndex_1.GetIndex; } });
-//# sourceMappingURL=index.js.map

+ 0 - 1
dist/routes/index.js.map

@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/routes/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}

+ 2 - 2
dist/server/Server.js

@@ -144,7 +144,7 @@ class Server {
         return __awaiter(this, void 0, void 0, function* () {
         return __awaiter(this, void 0, void 0, function* () {
             const files = fs_1.default.readdirSync(dir);
             const files = fs_1.default.readdirSync(dir);
             for (const file of files) {
             for (const file of files) {
-                if (/\.(ts|js)$/.test(file)) {
+                if (/\.js$/.test(file)) {
                     const { default: RouteClass } = yield Promise.resolve(`${path_1.default.join(dir, file)}`).then(s => __importStar(require(s)));
                     const { default: RouteClass } = yield Promise.resolve(`${path_1.default.join(dir, file)}`).then(s => __importStar(require(s)));
                     if (RouteClass.prototype instanceof http_1.Route) {
                     if (RouteClass.prototype instanceof http_1.Route) {
                         this.httpHandlers[RouteClass.name] = new RouteClass(this);
                         this.httpHandlers[RouteClass.name] = new RouteClass(this);
@@ -160,7 +160,7 @@ class Server {
         return __awaiter(this, void 0, void 0, function* () {
         return __awaiter(this, void 0, void 0, function* () {
             const files = fs_1.default.readdirSync(dir);
             const files = fs_1.default.readdirSync(dir);
             for (const file of files) {
             for (const file of files) {
-                if (/\.(ts|js)$/.test(file)) {
+                if (/\.js$/.test(file)) {
                     const { default: MiddlewareClass } = yield Promise.resolve(`${path_1.default.join(dir, file)}`).then(s => __importStar(require(s)));
                     const { default: MiddlewareClass } = yield Promise.resolve(`${path_1.default.join(dir, file)}`).then(s => __importStar(require(s)));
                     if (MiddlewareClass.prototype instanceof http_1.Middleware) {
                     if (MiddlewareClass.prototype instanceof http_1.Middleware) {
                         this.httpHandlers[MiddlewareClass.name] = new MiddlewareClass(this);
                         this.httpHandlers[MiddlewareClass.name] = new MiddlewareClass(this);

File diff suppressed because it is too large
+ 0 - 0
dist/server/Server.js.map


+ 1 - 1
lib/middlewares/ExpressJsonMiddleware.ts

@@ -7,4 +7,4 @@ class ExpressJsonMiddleware extends Middleware {
 	protected action = express.json();
 	protected action = express.json();
 }
 }
 
 
-export { ExpressJsonMiddleware };
+export default ExpressJsonMiddleware;

+ 1 - 1
lib/middlewares/ExpressUrlencodedMiddleware.ts

@@ -7,4 +7,4 @@ class ExpressUrlencodedMiddleware extends Middleware {
 	protected action = express.urlencoded({ extended: false });
 	protected action = express.urlencoded({ extended: false });
 }
 }
 
 
-export { ExpressUrlencodedMiddleware };
+export default ExpressUrlencodedMiddleware;

+ 1 - 1
lib/middlewares/InternalServerErrorHandler.ts

@@ -10,4 +10,4 @@ class InternalServerErrorHandler extends Middleware {
 	};
 	};
 }
 }
 
 
-export { InternalServerErrorHandler };
+export default InternalServerErrorHandler;

+ 1 - 1
lib/middlewares/LoggerMiddleware.ts

@@ -7,4 +7,4 @@ class LoggerMiddleware extends Middleware {
 	protected action = (<Logger>this.context.getLogger()).getHttpLogger();
 	protected action = (<Logger>this.context.getLogger()).getHttpLogger();
 }
 }
 
 
-export { LoggerMiddleware };
+export default LoggerMiddleware;

+ 1 - 1
lib/middlewares/NotFoundErrorHandler.ts

@@ -10,4 +10,4 @@ class NotFoundErrorHandler extends Middleware {
 	};
 	};
 }
 }
 
 
-export { NotFoundErrorHandler };
+export default NotFoundErrorHandler;

+ 1 - 1
lib/middlewares/SessionMiddleware.ts

@@ -8,4 +8,4 @@ class SessionMiddleware extends Middleware {
 	protected action = session({ secret: Guid.new(), resave: false, saveUninitialized: false });
 	protected action = session({ secret: Guid.new(), resave: false, saveUninitialized: false });
 }
 }
 
 
-export { SessionMiddleware };
+export default SessionMiddleware;

+ 0 - 6
lib/middlewares/index.ts

@@ -1,6 +0,0 @@
-export { ExpressJsonMiddleware } from './ExpressJsonMiddleware';
-export { ExpressUrlencodedMiddleware } from './ExpressUrlencodedMiddleware';
-export { InternalServerErrorHandler } from './InternalServerErrorHandler';
-export { LoggerMiddleware } from './LoggerMiddleware';
-export { NotFoundErrorHandler } from './NotFoundErrorHandler';
-export { SessionMiddleware } from './SessionMiddleware';

+ 1 - 1
lib/routes/GetIndex.ts

@@ -10,4 +10,4 @@ class GetIndex extends Route {
 	};
 	};
 }
 }
 
 
-export { GetIndex };
+export default GetIndex;

+ 0 - 1
lib/routes/index.ts

@@ -1 +0,0 @@
-export { GetIndex } from './GetIndex';

+ 2 - 2
lib/server/Server.ts

@@ -131,7 +131,7 @@ class Server {
 		const files = fs.readdirSync(dir);
 		const files = fs.readdirSync(dir);
 
 
 		for(const file of files) {
 		for(const file of files) {
-			if(/\.(ts|js)$/.test(file)) {
+			if(/\.js$/.test(file)) {
 				const {default: RouteClass} = await import(path.join(dir, file));
 				const {default: RouteClass} = await import(path.join(dir, file));
 				if(RouteClass.prototype instanceof Route) {
 				if(RouteClass.prototype instanceof Route) {
 					this.httpHandlers[RouteClass.name] = <HttpHandler>new RouteClass(this);
 					this.httpHandlers[RouteClass.name] = <HttpHandler>new RouteClass(this);
@@ -145,7 +145,7 @@ class Server {
 		const files = fs.readdirSync(dir);
 		const files = fs.readdirSync(dir);
 
 
 		for(const file of files) {
 		for(const file of files) {
-			if(/\.(ts|js)$/.test(file)) {
+			if(/\.js$/.test(file)) {
 				const {default: MiddlewareClass} = await import(path.join(dir, file));
 				const {default: MiddlewareClass} = await import(path.join(dir, file));
 				if(MiddlewareClass.prototype instanceof Middleware) {
 				if(MiddlewareClass.prototype instanceof Middleware) {
 					this.httpHandlers[MiddlewareClass.name] = <HttpHandler>new MiddlewareClass(this);
 					this.httpHandlers[MiddlewareClass.name] = <HttpHandler>new MiddlewareClass(this);

Some files were not shown because too many files changed in this diff