@tsed/common 6.102.6 → 6.102.8-rc.3
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/cjs/builder/PlatformBuilder.js +9 -6
- package/lib/cjs/builder/PlatformBuilder.js.map +1 -1
- package/lib/cjs/config/services/PlatformConfiguration.js.map +1 -1
- package/lib/cjs/decorators/method/endpointFn.js.map +1 -1
- package/lib/cjs/{decorators/index.js → exports.js} +15 -16
- package/lib/cjs/exports.js.map +1 -0
- package/lib/cjs/index.js +73 -30
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interfaces/PlatformRouteOptions.js.map +1 -1
- package/lib/cjs/middlewares/PlatformMulterMiddleware.js.map +1 -1
- package/lib/cjs/middlewares/bindEndpointMiddleware.js.map +1 -1
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/services/Platform.js +2 -2
- package/lib/cjs/services/Platform.js.map +1 -1
- package/lib/cjs/services/PlatformRouter.js.map +1 -1
- package/lib/cjs/utils/{data → __mock__}/Test1.js +0 -0
- package/lib/cjs/utils/__mock__/Test1.js.map +1 -0
- package/lib/cjs/utils/{data → __mock__}/Test2.js +0 -0
- package/lib/cjs/utils/__mock__/Test2.js.map +1 -0
- package/lib/esm/builder/PlatformBuilder.js +10 -7
- package/lib/esm/builder/PlatformBuilder.js.map +1 -1
- package/lib/esm/builder/PlatformControllerBuilder.js +3 -3
- package/lib/esm/config/services/PlatformConfiguration.js.map +1 -1
- package/lib/esm/decorators/method/endpointFn.js.map +1 -1
- package/lib/esm/decorators/multer/multerFileSize.js +1 -1
- package/lib/esm/decorators/multer/multerOptions.js +1 -1
- package/lib/esm/decorators/multer/multipartFile.js +1 -1
- package/lib/esm/domain/ControllerProvider.js +1 -1
- package/lib/esm/domain/HandlerMetadata.js +1 -1
- package/lib/esm/domain/PlatformContext.js +3 -3
- package/lib/esm/exports.js +13 -0
- package/lib/esm/exports.js.map +1 -0
- package/lib/esm/index.js +76 -30
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interfaces/PlatformRouteOptions.js.map +1 -1
- package/lib/esm/middlewares/PlatformMulterMiddleware.js +1 -1
- package/lib/esm/middlewares/PlatformMulterMiddleware.js.map +1 -1
- package/lib/esm/middlewares/bindEndpointMiddleware.js.map +1 -1
- package/lib/esm/package.json +3 -0
- package/lib/esm/services/Platform.js +4 -4
- package/lib/esm/services/Platform.js.map +1 -1
- package/lib/esm/services/PlatformApplication.js +3 -3
- package/lib/esm/services/PlatformHandler.js +5 -5
- package/lib/esm/services/PlatformMiddlewaresChain.js +4 -4
- package/lib/esm/services/PlatformRouter.js +2 -2
- package/lib/esm/services/PlatformRouter.js.map +1 -1
- package/lib/esm/services/PlatformTest.js +5 -5
- package/lib/esm/utils/{data → __mock__}/Test1.js +0 -0
- package/lib/esm/utils/__mock__/Test1.js.map +1 -0
- package/lib/esm/utils/{data → __mock__}/Test2.js +0 -0
- package/lib/esm/utils/__mock__/Test2.js.map +1 -0
- package/lib/esm/utils/createContext.js +3 -3
- package/lib/esm/utils/createHandlerMetadata.js +2 -2
- package/lib/esm/utils/createHttpServer.js +2 -2
- package/lib/esm/utils/createHttpsServer.js +2 -2
- package/lib/esm/utils/createInjector.js +7 -7
- package/lib/esm/utils/useCtxHandler.js +1 -1
- package/lib/types/builder/PlatformBuilder.d.ts +1 -1
- package/lib/types/config/services/PlatformConfiguration.d.ts +2 -1
- package/lib/types/decorators/method/endpointFn.d.ts +1 -1
- package/lib/types/exports.d.ts +12 -0
- package/lib/types/index.d.ts +73 -19
- package/lib/types/interfaces/PlatformRouteOptions.d.ts +1 -1
- package/lib/types/middlewares/PlatformMulterMiddleware.d.ts +1 -1
- package/lib/types/middlewares/bindEndpointMiddleware.d.ts +2 -1
- package/lib/types/services/Platform.d.ts +1 -1
- package/lib/types/services/PlatformRouter.d.ts +3 -2
- package/lib/types/utils/{data → __mock__}/Test1.d.ts +0 -0
- package/lib/types/utils/{data → __mock__}/Test2.d.ts +0 -0
- package/package.json +28 -23
- package/tsconfig.compile.esm.json +1 -0
- package/lib/cjs/config/index.js +0 -7
- package/lib/cjs/config/index.js.map +0 -1
- package/lib/cjs/config/interfaces/index.js +0 -8
- package/lib/cjs/config/interfaces/index.js.map +0 -1
- package/lib/cjs/decorators/index.js.map +0 -1
- package/lib/cjs/decorators/multer/index.js +0 -7
- package/lib/cjs/decorators/multer/index.js.map +0 -1
- package/lib/cjs/domain/index.js +0 -11
- package/lib/cjs/domain/index.js.map +0 -1
- package/lib/cjs/interfaces/PathType.js +0 -3
- package/lib/cjs/interfaces/PathType.js.map +0 -1
- package/lib/cjs/interfaces/index.js +0 -21
- package/lib/cjs/interfaces/index.js.map +0 -1
- package/lib/cjs/middlewares/index.js +0 -9
- package/lib/cjs/middlewares/index.js.map +0 -1
- package/lib/cjs/services/index.js +0 -12
- package/lib/cjs/services/index.js.map +0 -1
- package/lib/cjs/utils/data/Test1.js.map +0 -1
- package/lib/cjs/utils/data/Test2.js.map +0 -1
- package/lib/cjs/utils/index.js +0 -13
- package/lib/cjs/utils/index.js.map +0 -1
- package/lib/esm/config/index.js +0 -4
- package/lib/esm/config/index.js.map +0 -1
- package/lib/esm/config/interfaces/index.js +0 -5
- package/lib/esm/config/interfaces/index.js.map +0 -1
- package/lib/esm/decorators/index.js +0 -16
- package/lib/esm/decorators/index.js.map +0 -1
- package/lib/esm/decorators/multer/index.js +0 -4
- package/lib/esm/decorators/multer/index.js.map +0 -1
- package/lib/esm/domain/index.js +0 -8
- package/lib/esm/domain/index.js.map +0 -1
- package/lib/esm/interfaces/PathType.js +0 -2
- package/lib/esm/interfaces/PathType.js.map +0 -1
- package/lib/esm/interfaces/index.js +0 -18
- package/lib/esm/interfaces/index.js.map +0 -1
- package/lib/esm/middlewares/index.js +0 -6
- package/lib/esm/middlewares/index.js.map +0 -1
- package/lib/esm/services/index.js +0 -9
- package/lib/esm/services/index.js.map +0 -1
- package/lib/esm/utils/data/Test1.js.map +0 -1
- package/lib/esm/utils/data/Test2.js.map +0 -1
- package/lib/esm/utils/index.js +0 -10
- package/lib/esm/utils/index.js.map +0 -1
- package/lib/types/config/index.d.ts +0 -3
- package/lib/types/config/interfaces/index.d.ts +0 -97
- package/lib/types/decorators/index.d.ts +0 -12
- package/lib/types/decorators/multer/index.d.ts +0 -3
- package/lib/types/domain/index.d.ts +0 -7
- package/lib/types/interfaces/PathType.d.ts +0 -1
- package/lib/types/interfaces/index.d.ts +0 -17
- package/lib/types/middlewares/index.d.ts +0 -5
- package/lib/types/services/index.d.ts +0 -8
- package/lib/types/utils/index.d.ts +0 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DITest } from "@tsed/di";
|
|
2
|
-
import { PlatformBuilder } from "../builder/PlatformBuilder";
|
|
3
|
-
import { PlatformContext } from "../domain/PlatformContext";
|
|
4
|
-
import { createInjector } from "../utils/createInjector";
|
|
5
|
-
import { PlatformApplication } from "./PlatformApplication";
|
|
6
|
-
import { getConfiguration } from "../utils/getConfiguration";
|
|
2
|
+
import { PlatformBuilder } from "../builder/PlatformBuilder.js";
|
|
3
|
+
import { PlatformContext } from "../domain/PlatformContext.js";
|
|
4
|
+
import { createInjector } from "../utils/createInjector.js";
|
|
5
|
+
import { PlatformApplication } from "./PlatformApplication.js";
|
|
6
|
+
import { getConfiguration } from "../utils/getConfiguration.js";
|
|
7
7
|
import accepts from "accepts";
|
|
8
8
|
/**
|
|
9
9
|
* @platform
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Test1.js","sourceRoot":"","sources":["../../../../src/utils/__mock__/Test1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAM,OAAO,KAAK;CAAG","sourcesContent":["export const value1 = \"value\";\n\nexport class Test1 {}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Test2.js","sourceRoot":"","sources":["../../../../src/utils/__mock__/Test2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAM,OAAO,KAAK;CAAG","sourcesContent":["export const value2 = \"value\";\n\nexport class Test2 {}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PlatformContext } from "../domain/PlatformContext";
|
|
2
|
-
import { PlatformRequest } from "../services/PlatformRequest";
|
|
3
|
-
import { PlatformResponse } from "../services/PlatformResponse";
|
|
1
|
+
import { PlatformContext } from "../domain/PlatformContext.js";
|
|
2
|
+
import { PlatformRequest } from "../services/PlatformRequest.js";
|
|
3
|
+
import { PlatformResponse } from "../services/PlatformResponse.js";
|
|
4
4
|
import { v4 } from "uuid";
|
|
5
5
|
const defaultReqIdBuilder = (req) => req.get("x-request-id") || v4().replace(/-/gi, "");
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EndpointMetadata } from "@tsed/schema";
|
|
2
|
-
import { HandlerMetadata } from "../domain/HandlerMetadata";
|
|
3
|
-
import { HandlerType } from "../interfaces/HandlerType";
|
|
2
|
+
import { HandlerMetadata } from "../domain/HandlerMetadata.js";
|
|
3
|
+
import { HandlerType } from "../interfaces/HandlerType.js";
|
|
4
4
|
function isMetadata(input) {
|
|
5
5
|
return input instanceof HandlerMetadata;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProviderScope } from "@tsed/di";
|
|
2
2
|
import { getHostInfoFromPort } from "@tsed/core";
|
|
3
3
|
import Http from "http";
|
|
4
|
-
import { HttpServer } from "../decorators/httpServer";
|
|
5
|
-
import { listenServer } from "./listenServer";
|
|
4
|
+
import { HttpServer } from "../decorators/httpServer.js";
|
|
5
|
+
import { listenServer } from "./listenServer.js";
|
|
6
6
|
export function createHttpServer(injector, requestListener) {
|
|
7
7
|
const { settings } = injector;
|
|
8
8
|
const httpPort = settings.getRaw("httpPort");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProviderScope } from "@tsed/di";
|
|
2
2
|
import { getHostInfoFromPort } from "@tsed/core";
|
|
3
3
|
import Https from "https";
|
|
4
|
-
import { HttpsServer } from "../decorators/httpsServer";
|
|
5
|
-
import { listenServer } from "./listenServer";
|
|
4
|
+
import { HttpsServer } from "../decorators/httpsServer.js";
|
|
5
|
+
import { listenServer } from "./listenServer.js";
|
|
6
6
|
export function createHttpsServer(injector, requestListener) {
|
|
7
7
|
const { settings } = injector;
|
|
8
8
|
const httpsPort = settings.getRaw("httpsPort");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { InjectorService, setLoggerLevel } from "@tsed/di";
|
|
2
2
|
import { $log } from "@tsed/logger";
|
|
3
3
|
import { toMap } from "@tsed/core";
|
|
4
|
-
import { PlatformConfiguration } from "../config/services/PlatformConfiguration";
|
|
5
|
-
import { PlatformHandler } from "../services/PlatformHandler";
|
|
6
|
-
import { PlatformResponse } from "../services/PlatformResponse";
|
|
7
|
-
import { PlatformRouter } from "../services/PlatformRouter";
|
|
8
|
-
import { PlatformApplication } from "../services/PlatformApplication";
|
|
9
|
-
import { Platform } from "../services/Platform";
|
|
10
|
-
import { PlatformRequest } from "../services/PlatformRequest";
|
|
4
|
+
import { PlatformConfiguration } from "../config/services/PlatformConfiguration.js";
|
|
5
|
+
import { PlatformHandler } from "../services/PlatformHandler.js";
|
|
6
|
+
import { PlatformResponse } from "../services/PlatformResponse.js";
|
|
7
|
+
import { PlatformRouter } from "../services/PlatformRouter.js";
|
|
8
|
+
import { PlatformApplication } from "../services/PlatformApplication.js";
|
|
9
|
+
import { Platform } from "../services/Platform.js";
|
|
10
|
+
import { PlatformRequest } from "../services/PlatformRequest.js";
|
|
11
11
|
$log.name = "TSED";
|
|
12
12
|
const DEFAULT_PROVIDERS = [
|
|
13
13
|
{ provide: PlatformHandler },
|
|
@@ -42,7 +42,7 @@ export declare class PlatformBuilder<App = TsED.Application, Router = TsED.Route
|
|
|
42
42
|
*/
|
|
43
43
|
get settings(): TsED.Configuration & import("@tsed/di").DIConfiguration;
|
|
44
44
|
get logger(): import("@tsed/di").DILogger;
|
|
45
|
-
get disableBootstrapLog():
|
|
45
|
+
get disableBootstrapLog(): any;
|
|
46
46
|
static create<App = TsED.Application, Router = TsED.Router>(module: Type<any>, settings: PlatformBuilderSettings<App, Router>): PlatformBuilder<App, Router>;
|
|
47
47
|
static build<App = TsED.Application, Router = TsED.Router>(module: Type<any>, { adapter, ...settings }: PlatformBuilderSettings<App, Router>): PlatformBuilder<App, Router>;
|
|
48
48
|
/**
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { Env, getHostInfoFromPort } from "@tsed/core";
|
|
3
3
|
import { DIConfiguration } from "@tsed/di";
|
|
4
4
|
import Https from "https";
|
|
5
|
-
import { EndpointDirectoriesSettings, PlatformLoggerSettings } from "../interfaces";
|
|
6
5
|
import { ConverterSettings } from "../interfaces/ConverterSettings";
|
|
6
|
+
import { EndpointDirectoriesSettings } from "../interfaces/EndpointDirectoriesSettings";
|
|
7
|
+
import { PlatformLoggerSettings } from "../interfaces/PlatformLoggerSettings";
|
|
7
8
|
/**
|
|
8
9
|
* `PlatformConfiguration` contains all information about your Server configuration.
|
|
9
10
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "@tsed/logger";
|
|
2
|
+
import "@tsed/logger-file";
|
|
3
|
+
export * from "@tsed/di";
|
|
4
|
+
export * from "@tsed/platform-params";
|
|
5
|
+
export * from "@tsed/platform-exceptions";
|
|
6
|
+
export * from "@tsed/platform-response-filter";
|
|
7
|
+
export * from "@tsed/platform-cache";
|
|
8
|
+
export * from "@tsed/platform-middlewares";
|
|
9
|
+
export * from "@tsed/components-scan";
|
|
10
|
+
export * from "@tsed/platform-log-middleware";
|
|
11
|
+
export { $log, Logger } from "@tsed/logger";
|
|
12
|
+
export { AcceptMime, Location, Redirect, View, Get, Post, Put, Patch, Delete, Head, Options, All } from "@tsed/schema";
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,22 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * from "
|
|
5
|
-
export * from "
|
|
6
|
-
export * from "@tsed/platform-response-filter";
|
|
7
|
-
export * from "@tsed/platform-cache";
|
|
8
|
-
export * from "@tsed/platform-middlewares";
|
|
9
|
-
export * from "@tsed/components-scan";
|
|
10
|
-
export * from "@tsed/platform-log-middleware";
|
|
11
|
-
export { $log, Logger } from "@tsed/logger";
|
|
12
|
-
export * from "./config";
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./PlatformModule";
|
|
5
|
+
export * from "./exports";
|
|
13
6
|
export * from "./builder/PlatformBuilder";
|
|
14
7
|
export * from "./builder/PlatformControllerBuilder";
|
|
15
|
-
export * from "./
|
|
8
|
+
export * from "./config/interfaces/ConverterSettings";
|
|
9
|
+
export * from "./config/interfaces/EndpointDirectoriesSettings";
|
|
10
|
+
export * from "./config/interfaces/PlatformLoggerSettings";
|
|
11
|
+
export * from "./config/interfaces/PlatformMulterSettings";
|
|
12
|
+
export * from "./config/interfaces/PlatformStaticsSettings";
|
|
13
|
+
export * from "./config/services/PlatformConfiguration";
|
|
16
14
|
export * from "./constants/routerOptions";
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
15
|
+
export * from "./decorators/httpServer";
|
|
16
|
+
export * from "./decorators/httpsServer";
|
|
17
|
+
export * from "./decorators/method/endpointFn";
|
|
18
|
+
export * from "./decorators/multer/multerFileSize";
|
|
19
|
+
export * from "./decorators/multer/multerOptions";
|
|
20
|
+
export * from "./decorators/multer/multipartFile";
|
|
21
|
+
export * from "./decorators/params/endpointInfo";
|
|
22
|
+
export * from "./decorators/params/error";
|
|
23
|
+
export * from "./decorators/params/next";
|
|
24
|
+
export * from "./decorators/params/request";
|
|
25
|
+
export * from "./decorators/params/response";
|
|
26
|
+
export * from "./decorators/params/responseData";
|
|
27
|
+
export * from "./domain/AnyToPromiseWithCtx";
|
|
28
|
+
export * from "./domain/ControllerProvider";
|
|
29
|
+
export * from "./domain/EndpointMetadata";
|
|
30
|
+
export * from "./domain/HandlerMetadata";
|
|
31
|
+
export * from "./domain/PlatformContext";
|
|
32
|
+
export * from "./domain/PlatformRouteDetails";
|
|
33
|
+
export * from "./domain/PropertyMetadata";
|
|
34
|
+
export * from "./interfaces/AfterInit";
|
|
35
|
+
export * from "./interfaces/AfterListen";
|
|
36
|
+
export * from "./interfaces/AfterRoutesInit";
|
|
37
|
+
export * from "./interfaces/BeforeInit";
|
|
38
|
+
export * from "./interfaces/BeforeListen";
|
|
39
|
+
export * from "./interfaces/BeforeRoutesInit";
|
|
40
|
+
export * from "./interfaces/HandlerType";
|
|
41
|
+
export * from "./interfaces/IncomingEvent";
|
|
42
|
+
export * from "./interfaces/OnReady";
|
|
43
|
+
export * from "./interfaces/OnRequest";
|
|
44
|
+
export * from "./interfaces/OnResponse";
|
|
45
|
+
export * from "./interfaces/OnRoutesInit";
|
|
46
|
+
export * from "./interfaces/PlatformAdapter";
|
|
47
|
+
export * from "./interfaces/PlatformRouteOptions";
|
|
48
|
+
export * from "./interfaces/ResponseErrorObject";
|
|
49
|
+
export * from "./interfaces/Route";
|
|
50
|
+
export * from "./middlewares/AcceptMimesMiddleware";
|
|
51
|
+
export * from "./middlewares/GlobalAcceptMimesMiddleware";
|
|
52
|
+
export * from "./middlewares/PlatformAcceptMimesMiddleware";
|
|
53
|
+
export * from "./middlewares/PlatformMulterMiddleware";
|
|
54
|
+
export * from "./middlewares/bindEndpointMiddleware";
|
|
55
|
+
export * from "./services/FakeRawDriver";
|
|
56
|
+
export * from "./services/Platform";
|
|
57
|
+
export * from "./services/PlatformApplication";
|
|
58
|
+
export * from "./services/PlatformHandler";
|
|
59
|
+
export * from "./services/PlatformMiddlewaresChain";
|
|
60
|
+
export * from "./services/PlatformRequest";
|
|
61
|
+
export * from "./services/PlatformResponse";
|
|
62
|
+
export * from "./services/PlatformRouter";
|
|
63
|
+
export * from "./services/PlatformTest";
|
|
64
|
+
export * from "./utils/createContext";
|
|
65
|
+
export * from "./utils/createHandlerMetadata";
|
|
66
|
+
export * from "./utils/createHttpServer";
|
|
67
|
+
export * from "./utils/createHttpsServer";
|
|
68
|
+
export * from "./utils/createInjector";
|
|
69
|
+
export * from "./utils/getStaticsOptions";
|
|
70
|
+
export * from "./utils/importProviders";
|
|
71
|
+
export * from "./utils/listenServer";
|
|
72
|
+
export * from "./utils/loadInjector";
|
|
73
|
+
export * from "./utils/mapReturnedResponse";
|
|
74
|
+
export * from "./utils/printRoutes";
|
|
75
|
+
export * from "./utils/setResponseHeaders";
|
|
76
|
+
export * from "./utils/useCtxHandler";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MiddlewareMethods } from "@tsed/platform-middlewares";
|
|
2
2
|
import { Context } from "@tsed/platform-params";
|
|
3
|
-
import { PlatformMulterField, PlatformMulterSettings } from "../config";
|
|
3
|
+
import { PlatformMulterField, PlatformMulterSettings } from "../config/interfaces/PlatformMulterSettings";
|
|
4
4
|
import { PlatformApplication } from "../services/PlatformApplication";
|
|
5
5
|
export interface MulterInputOptions {
|
|
6
6
|
fields: PlatformMulterField[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectorService, TokenProvider } from "@tsed/di";
|
|
2
|
-
import { PlatformRouteDetails } from "../domain";
|
|
2
|
+
import { PlatformRouteDetails } from "../domain/PlatformRouteDetails";
|
|
3
3
|
import { Route, RouteController } from "../interfaces/Route";
|
|
4
4
|
import { PlatformApplication } from "./PlatformApplication";
|
|
5
5
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { InjectorService, PathType } from "@tsed/di";
|
|
2
|
-
import { PlatformMulter, PlatformMulterSettings, PlatformStaticsOptions } from "../config";
|
|
3
|
-
import { PlatformRouteOptions, PlatformRouteWithoutHandlers } from "../interfaces";
|
|
4
2
|
import { PlatformHandler } from "./PlatformHandler";
|
|
3
|
+
import { PlatformRouteOptions, PlatformRouteWithoutHandlers } from "../interfaces/PlatformRouteOptions";
|
|
4
|
+
import { PlatformStaticsOptions } from "../config/interfaces/PlatformStaticsSettings";
|
|
5
|
+
import { PlatformMulter, PlatformMulterSettings } from "../config/interfaces/PlatformMulterSettings";
|
|
5
6
|
/**
|
|
6
7
|
* @ignore
|
|
7
8
|
*/
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/common",
|
|
3
|
-
"version": "6.102.
|
|
3
|
+
"version": "6.102.8-rc.3",
|
|
4
4
|
"description": "A TypeScript Framework on top of Express",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
|
+
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
"types": "./lib/types/index.d.ts",
|
|
@@ -13,9 +14,10 @@
|
|
|
13
14
|
"default": "./lib/esm/index.js"
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
|
-
"build": "yarn run build:esm && yarn run build:cjs",
|
|
17
|
+
"build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
|
|
17
18
|
"build:cjs": "tsc --build tsconfig.compile.json",
|
|
18
|
-
"build:esm": "tsc --build tsconfig.compile.esm.json"
|
|
19
|
+
"build:esm": "tsc --build tsconfig.compile.esm.json",
|
|
20
|
+
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\" -e \"getConfiguration\""
|
|
19
21
|
},
|
|
20
22
|
"keywords": [
|
|
21
23
|
"Express",
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
"bugs": {
|
|
47
49
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
48
50
|
},
|
|
49
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
51
|
+
"homepage": "https://github.com/tsedio/tsed/tree/rc/packages/platform/common",
|
|
50
52
|
"repository": "https://github.com/tsedio/tsed",
|
|
51
53
|
"funding": [
|
|
52
54
|
{
|
|
@@ -59,21 +61,21 @@
|
|
|
59
61
|
}
|
|
60
62
|
],
|
|
61
63
|
"dependencies": {
|
|
62
|
-
"@tsed/components-scan": "6.102.
|
|
63
|
-
"@tsed/core": "6.102.
|
|
64
|
-
"@tsed/exceptions": "6.102.
|
|
65
|
-
"@tsed/json-mapper": "6.102.
|
|
66
|
-
"@tsed/logger": ">=6.0
|
|
67
|
-
"@tsed/logger-file": ">=6.0
|
|
68
|
-
"@tsed/perf": "6.102.
|
|
69
|
-
"@tsed/platform-cache": "6.102.
|
|
70
|
-
"@tsed/platform-exceptions": "6.102.
|
|
71
|
-
"@tsed/platform-log-middleware": "6.102.
|
|
72
|
-
"@tsed/platform-middlewares": "6.102.
|
|
73
|
-
"@tsed/platform-params": "6.102.
|
|
74
|
-
"@tsed/platform-response-filter": "6.102.
|
|
75
|
-
"@tsed/platform-views": "6.102.
|
|
76
|
-
"@tsed/schema": "6.102.
|
|
64
|
+
"@tsed/components-scan": "6.102.8-rc.3",
|
|
65
|
+
"@tsed/core": "6.102.8-rc.3",
|
|
66
|
+
"@tsed/exceptions": "6.102.8-rc.3",
|
|
67
|
+
"@tsed/json-mapper": "6.102.8-rc.3",
|
|
68
|
+
"@tsed/logger": ">=6.1.0",
|
|
69
|
+
"@tsed/logger-file": ">=6.1.0",
|
|
70
|
+
"@tsed/perf": "6.102.8-rc.3",
|
|
71
|
+
"@tsed/platform-cache": "6.102.8-rc.3",
|
|
72
|
+
"@tsed/platform-exceptions": "6.102.8-rc.3",
|
|
73
|
+
"@tsed/platform-log-middleware": "6.102.8-rc.3",
|
|
74
|
+
"@tsed/platform-middlewares": "6.102.8-rc.3",
|
|
75
|
+
"@tsed/platform-params": "6.102.8-rc.3",
|
|
76
|
+
"@tsed/platform-response-filter": "6.102.8-rc.3",
|
|
77
|
+
"@tsed/platform-views": "6.102.8-rc.3",
|
|
78
|
+
"@tsed/schema": "6.102.8-rc.3",
|
|
77
79
|
"@types/json-schema": "7.0.7",
|
|
78
80
|
"@types/on-finished": "2.3.1",
|
|
79
81
|
"on-finished": "2.3.0",
|
|
@@ -81,11 +83,14 @@
|
|
|
81
83
|
"uuid": "8.3.2"
|
|
82
84
|
},
|
|
83
85
|
"devDependencies": {
|
|
84
|
-
"@tsed/core": "6.102.
|
|
86
|
+
"@tsed/core": "6.102.8-rc.3"
|
|
85
87
|
},
|
|
86
88
|
"peerDependencies": {
|
|
87
|
-
"@tsed/di": "^6.102.
|
|
88
|
-
"@tsed/logger": ">=6.0
|
|
89
|
-
"@tsed/logger-file": ">=6.0
|
|
89
|
+
"@tsed/di": "^6.102.8-rc.3",
|
|
90
|
+
"@tsed/logger": ">=6.1.0",
|
|
91
|
+
"@tsed/logger-file": ">=6.1.0"
|
|
92
|
+
},
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"tag": "rc"
|
|
90
95
|
}
|
|
91
96
|
}
|
package/lib/cjs/config/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./interfaces"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./services/PlatformConfiguration"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./services/PlatformConfiguration"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":";;;AAAA,4DAA6B;AAC7B,gFAAiD;AACjD,gFAAiD","sourcesContent":["export * from \"./interfaces\";\nexport * from \"./services/PlatformConfiguration\";\nexport * from \"./services/PlatformConfiguration\";\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./PlatformLoggerSettings"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./EndpointDirectoriesSettings"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./PlatformStaticsSettings"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./PlatformMulterSettings"), exports);
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/config/interfaces/index.ts"],"names":[],"mappings":";;;AA6FA,wEAAyC;AACzC,6EAA8C;AAC9C,yEAA0C;AAC1C,wEAAyC","sourcesContent":["import {Env} from \"@tsed/core\";\nimport {ConverterSettings} from \"./ConverterSettings\";\nimport {EndpointDirectoriesSettings} from \"./EndpointDirectoriesSettings\";\nimport {PlatformLoggerSettings} from \"./PlatformLoggerSettings\";\nimport {PlatformMulterSettings} from \"./PlatformMulterSettings\";\nimport {PlatformStaticsSettings} from \"./PlatformStaticsSettings\";\nimport type Http from \"http\";\nimport type Https from \"https\";\n\ndeclare global {\n namespace TsED {\n interface LoggerConfiguration extends Partial<PlatformLoggerSettings> {}\n interface Configuration {\n /**\n * The root directory where you build run project. By default, it's equal to `process.cwd().\n */\n rootDir: string;\n /**\n * The environment profile. By default the environment profile is equals to `NODE_ENV`.\n */\n env: Env;\n /**\n * Port number for the [HTTP.Server](https://nodejs.org/api/http.html#http_class_http_server).\n */\n port: string | number;\n /**\n * Port number for the [HTTP.Server](https://nodejs.org/api/http.html#http_class_http_server).\n */\n httpPort: string | number | boolean;\n /**\n * [Https.ServerOptions](https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener)):\n * - `key` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | <Object[]>: The private key of the server in PEM format. To support multiple keys using different algorithms an array can be provided either as a plain array of key strings or an array of objects in the format `{pem: key, passphrase: passphrase}`. This option is required for ciphers that make use of private keys.\n * - `passphrase` <string> A string containing the passphrase for the private key or pfx.\n * - `cert` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers containing the certificate key of the server in PEM format. (Required)\n * - `ca` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers of trusted certificates in PEM format. If this is omitted several well known \"root\" CAs (like VeriSign) will be used. These are used to authorize connections.\n */\n httpOptions: Http.ServerOptions;\n /**\n * Port number for the [HTTPs.Server](https://nodejs.org/api/https.html#https_class_https_server).\n */\n httpsPort: string | number | boolean;\n /**\n * [Https.ServerOptions](https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener)):\n * - `key` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | <Object[]>: The private key of the server in PEM format. To support multiple keys using different algorithms an array can be provided either as a plain array of key strings or an array of objects in the format `{pem: key, passphrase: passphrase}`. This option is required for ciphers that make use of private keys.\n * - `passphrase` <string> A string containing the passphrase for the private key or pfx.\n * - `cert` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers containing the certificate key of the server in PEM format. (Required)\n * - `ca` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers of trusted certificates in PEM format. If this is omitted several well known \"root\" CAs (like VeriSign) will be used. These are used to authorize connections.\n */\n httpsOptions: Https.ServerOptions;\n /**\n * Mount all controllers under a directories to an endpoint.\n */\n mount: EndpointDirectoriesSettings;\n /**\n * List of directories to scan [Services](/docs/services.md), [Middlewares](/docs/middlewares.md) or [Converters](/docs/converters.md).\n */\n componentsScan: (string | RegExp)[];\n /**\n * Disable the glob pattern. In v7 the componentsScan options will be removed in favor of external module loader.\n */\n disableComponentsScan: boolean;\n /**\n * List of glob patterns. Exclude all files which matching with this list when Server scan all components with the `mount` or `scanComponents` options.\n */\n exclude: string[];\n /**\n * Configure the mimes accepted by default by the server.\n */\n acceptMimes: string[];\n /**\n * Enable debug mode. By default debug is false.\n */\n debug: boolean;\n /**\n * Converter configuration.\n */\n converter: Partial<ConverterSettings>;\n /**\n * Logger configuration.\n */\n logger?: LoggerConfiguration;\n /**\n * Object to mount all directories under to his endpoints. See more on [Serve Static](/tutorials/serve-static-files.md).\n */\n statics: PlatformStaticsSettings;\n /**\n * Object configure Multer. See more on [Upload file](/tutorials/serve-static-files.md).\n */\n multer: PlatformMulterSettings;\n }\n }\n}\n\nexport * from \"./PlatformLoggerSettings\";\nexport * from \"./EndpointDirectoriesSettings\";\nexport * from \"./PlatformStaticsSettings\";\nexport * from \"./PlatformMulterSettings\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;;AAAA,4DAA6B;AAC7B,6DAA8B;AAE9B,wDAAyB;AAEzB,SAAS;AACT,uCAAqH;AAA7G,oGAAA,UAAU,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,kGAAA,QAAQ,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,6FAAA,GAAG,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,6FAAA,GAAG,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,8FAAA,IAAI,OAAA;AAAE,iGAAA,OAAO,OAAA;AAAE,6FAAA,GAAG,OAAA;AAC/F,mEAAoC;AAEpC,SAAS;AACT,qEAAsC;AACtC,iEAAkC;AAClC,gEAAiC;AACjC,6DAA8B;AAC9B,8DAA+B;AAC/B,qEAAsC;AAEtC,QAAQ;AACR,4EAA6C","sourcesContent":["export * from \"./httpServer\";\nexport * from \"./httpsServer\";\n\nexport * from \"./multer\";\n\n// Method\nexport {AcceptMime, Location, Redirect, View, Get, Post, Put, Patch, Delete, Head, Options, All} from \"@tsed/schema\";\nexport * from \"./method/endpointFn\";\n\n// Params\nexport * from \"./params/responseData\";\nexport * from \"./params/response\";\nexport * from \"./params/request\";\nexport * from \"./params/next\";\nexport * from \"./params/error\";\nexport * from \"./params/endpointInfo\";\n\n// utils\nexport * from \"../utils/mapReturnedResponse\";\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./multerFileSize"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./multerOptions"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./multipartFile"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/decorators/multer/index.ts"],"names":[],"mappings":";;;AAAA,gEAAiC;AACjC,+DAAgC;AAChC,+DAAgC","sourcesContent":["export * from \"./multerFileSize\";\nexport * from \"./multerOptions\";\nexport * from \"./multipartFile\";\n"]}
|
package/lib/cjs/domain/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./AnyToPromiseWithCtx"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./PlatformContext"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./PlatformRouteDetails"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./ControllerProvider"), exports);
|
|
8
|
-
(0, tslib_1.__exportStar)(require("./EndpointMetadata"), exports);
|
|
9
|
-
(0, tslib_1.__exportStar)(require("./HandlerMetadata"), exports);
|
|
10
|
-
(0, tslib_1.__exportStar)(require("./PropertyMetadata"), exports);
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":";;;AAAA,qEAAsC;AACtC,iEAAkC;AAClC,sEAAuC;AACvC,oEAAqC;AACrC,kEAAmC;AACnC,iEAAkC;AAClC,kEAAmC","sourcesContent":["export * from \"./AnyToPromiseWithCtx\";\nexport * from \"./PlatformContext\";\nexport * from \"./PlatformRouteDetails\";\nexport * from \"./ControllerProvider\";\nexport * from \"./EndpointMetadata\";\nexport * from \"./HandlerMetadata\";\nexport * from \"./PropertyMetadata\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PathType.js","sourceRoot":"","sources":["../../../src/interfaces/PathType.ts"],"names":[],"mappings":"","sourcesContent":["export type PathType = string | RegExp | (string | RegExp)[];\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./ResponseErrorObject"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./HandlerType"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./PlatformRouteOptions"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./BeforeInit"), exports);
|
|
8
|
-
(0, tslib_1.__exportStar)(require("./AfterInit"), exports);
|
|
9
|
-
(0, tslib_1.__exportStar)(require("./AfterRoutesInit"), exports);
|
|
10
|
-
(0, tslib_1.__exportStar)(require("./BeforeListen"), exports);
|
|
11
|
-
(0, tslib_1.__exportStar)(require("./AfterListen"), exports);
|
|
12
|
-
(0, tslib_1.__exportStar)(require("./BeforeRoutesInit"), exports);
|
|
13
|
-
(0, tslib_1.__exportStar)(require("./AfterRoutesInit"), exports);
|
|
14
|
-
(0, tslib_1.__exportStar)(require("./OnRoutesInit"), exports);
|
|
15
|
-
(0, tslib_1.__exportStar)(require("./OnReady"), exports);
|
|
16
|
-
(0, tslib_1.__exportStar)(require("./OnRequest"), exports);
|
|
17
|
-
(0, tslib_1.__exportStar)(require("./OnResponse"), exports);
|
|
18
|
-
(0, tslib_1.__exportStar)(require("./Route"), exports);
|
|
19
|
-
(0, tslib_1.__exportStar)(require("./IncomingEvent"), exports);
|
|
20
|
-
(0, tslib_1.__exportStar)(require("./PlatformAdapter"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,qEAAsC;AACtC,6DAA8B;AAC9B,sEAAuC;AACvC,4DAA6B;AAC7B,2DAA4B;AAC5B,iEAAkC;AAClC,8DAA+B;AAC/B,6DAA8B;AAC9B,kEAAmC;AACnC,iEAAkC;AAClC,8DAA+B;AAC/B,yDAA0B;AAC1B,2DAA4B;AAC5B,4DAA6B;AAC7B,uDAAwB;AACxB,+DAAgC;AAChC,iEAAkC","sourcesContent":["export * from \"./ResponseErrorObject\";\nexport * from \"./HandlerType\";\nexport * from \"./PlatformRouteOptions\";\nexport * from \"./BeforeInit\";\nexport * from \"./AfterInit\";\nexport * from \"./AfterRoutesInit\";\nexport * from \"./BeforeListen\";\nexport * from \"./AfterListen\";\nexport * from \"./BeforeRoutesInit\";\nexport * from \"./AfterRoutesInit\";\nexport * from \"./OnRoutesInit\";\nexport * from \"./OnReady\";\nexport * from \"./OnRequest\";\nexport * from \"./OnResponse\";\nexport * from \"./Route\";\nexport * from \"./IncomingEvent\";\nexport * from \"./PlatformAdapter\";\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./bindEndpointMiddleware"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./PlatformMulterMiddleware"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./GlobalAcceptMimesMiddleware"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./PlatformAcceptMimesMiddleware"), exports);
|
|
8
|
-
(0, tslib_1.__exportStar)(require("./AcceptMimesMiddleware"), exports);
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,wEAAyC;AACzC,0EAA2C;AAC3C,6EAA8C;AAC9C,+EAAgD;AAChD,uEAAwC","sourcesContent":["export * from \"./bindEndpointMiddleware\";\nexport * from \"./PlatformMulterMiddleware\";\nexport * from \"./GlobalAcceptMimesMiddleware\";\nexport * from \"./PlatformAcceptMimesMiddleware\";\nexport * from \"./AcceptMimesMiddleware\";\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./Platform"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./PlatformApplication"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./PlatformHandler"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./PlatformRequest"), exports);
|
|
8
|
-
(0, tslib_1.__exportStar)(require("./PlatformResponse"), exports);
|
|
9
|
-
(0, tslib_1.__exportStar)(require("./PlatformRouter"), exports);
|
|
10
|
-
(0, tslib_1.__exportStar)(require("./PlatformTest"), exports);
|
|
11
|
-
(0, tslib_1.__exportStar)(require("./PlatformMiddlewaresChain"), exports);
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,0DAA2B;AAC3B,qEAAsC;AACtC,iEAAkC;AAClC,iEAAkC;AAClC,kEAAmC;AACnC,gEAAiC;AACjC,8DAA+B;AAC/B,0EAA2C","sourcesContent":["export * from \"./Platform\";\nexport * from \"./PlatformApplication\";\nexport * from \"./PlatformHandler\";\nexport * from \"./PlatformRequest\";\nexport * from \"./PlatformResponse\";\nexport * from \"./PlatformRouter\";\nexport * from \"./PlatformTest\";\nexport * from \"./PlatformMiddlewaresChain\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test1.js","sourceRoot":"","sources":["../../../../src/utils/data/Test1.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAa,KAAK;CAAG;AAArB,sBAAqB","sourcesContent":["export const value1 = \"value\";\n\nexport class Test1 {}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Test2.js","sourceRoot":"","sources":["../../../../src/utils/data/Test2.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,OAAO,CAAC;AAE9B,MAAa,KAAK;CAAG;AAArB,sBAAqB","sourcesContent":["export const value2 = \"value\";\n\nexport class Test2 {}\n"]}
|
package/lib/cjs/utils/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./createInjector"), exports);
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./createHttpServer"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./createHttpsServer"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./loadInjector"), exports);
|
|
8
|
-
(0, tslib_1.__exportStar)(require("./printRoutes"), exports);
|
|
9
|
-
(0, tslib_1.__exportStar)(require("./listenServer"), exports);
|
|
10
|
-
(0, tslib_1.__exportStar)(require("./createContext"), exports);
|
|
11
|
-
(0, tslib_1.__exportStar)(require("./useCtxHandler"), exports);
|
|
12
|
-
(0, tslib_1.__exportStar)(require("./importProviders"), exports);
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,gEAAiC;AACjC,kEAAmC;AACnC,mEAAoC;AACpC,8DAA+B;AAC/B,6DAA8B;AAC9B,8DAA+B;AAC/B,+DAAgC;AAChC,+DAAgC;AAChC,iEAAkC","sourcesContent":["export * from \"./createInjector\";\nexport * from \"./createHttpServer\";\nexport * from \"./createHttpsServer\";\nexport * from \"./loadInjector\";\nexport * from \"./printRoutes\";\nexport * from \"./listenServer\";\nexport * from \"./createContext\";\nexport * from \"./useCtxHandler\";\nexport * from \"./importProviders\";\n"]}
|
package/lib/esm/config/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC","sourcesContent":["export * from \"./interfaces\";\nexport * from \"./services/PlatformConfiguration\";\nexport * from \"./services/PlatformConfiguration\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/config/interfaces/index.ts"],"names":[],"mappings":"AA6FA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC","sourcesContent":["import {Env} from \"@tsed/core\";\nimport {ConverterSettings} from \"./ConverterSettings\";\nimport {EndpointDirectoriesSettings} from \"./EndpointDirectoriesSettings\";\nimport {PlatformLoggerSettings} from \"./PlatformLoggerSettings\";\nimport {PlatformMulterSettings} from \"./PlatformMulterSettings\";\nimport {PlatformStaticsSettings} from \"./PlatformStaticsSettings\";\nimport type Http from \"http\";\nimport type Https from \"https\";\n\ndeclare global {\n namespace TsED {\n interface LoggerConfiguration extends Partial<PlatformLoggerSettings> {}\n interface Configuration {\n /**\n * The root directory where you build run project. By default, it's equal to `process.cwd().\n */\n rootDir: string;\n /**\n * The environment profile. By default the environment profile is equals to `NODE_ENV`.\n */\n env: Env;\n /**\n * Port number for the [HTTP.Server](https://nodejs.org/api/http.html#http_class_http_server).\n */\n port: string | number;\n /**\n * Port number for the [HTTP.Server](https://nodejs.org/api/http.html#http_class_http_server).\n */\n httpPort: string | number | boolean;\n /**\n * [Https.ServerOptions](https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener)):\n * - `key` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | <Object[]>: The private key of the server in PEM format. To support multiple keys using different algorithms an array can be provided either as a plain array of key strings or an array of objects in the format `{pem: key, passphrase: passphrase}`. This option is required for ciphers that make use of private keys.\n * - `passphrase` <string> A string containing the passphrase for the private key or pfx.\n * - `cert` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers containing the certificate key of the server in PEM format. (Required)\n * - `ca` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers of trusted certificates in PEM format. If this is omitted several well known \"root\" CAs (like VeriSign) will be used. These are used to authorize connections.\n */\n httpOptions: Http.ServerOptions;\n /**\n * Port number for the [HTTPs.Server](https://nodejs.org/api/https.html#https_class_https_server).\n */\n httpsPort: string | number | boolean;\n /**\n * [Https.ServerOptions](https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener)):\n * - `key` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | <Object[]>: The private key of the server in PEM format. To support multiple keys using different algorithms an array can be provided either as a plain array of key strings or an array of objects in the format `{pem: key, passphrase: passphrase}`. This option is required for ciphers that make use of private keys.\n * - `passphrase` <string> A string containing the passphrase for the private key or pfx.\n * - `cert` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers containing the certificate key of the server in PEM format. (Required)\n * - `ca` <string> | <string[]> | [<Buffer>](https://nodejs.org/api/buffer.html#buffer_class_buffer) | [<Buffer[]>](https://nodejs.org/api/buffer.html#buffer_class_buffer): A string, Buffer, array of strings, or array of Buffers of trusted certificates in PEM format. If this is omitted several well known \"root\" CAs (like VeriSign) will be used. These are used to authorize connections.\n */\n httpsOptions: Https.ServerOptions;\n /**\n * Mount all controllers under a directories to an endpoint.\n */\n mount: EndpointDirectoriesSettings;\n /**\n * List of directories to scan [Services](/docs/services.md), [Middlewares](/docs/middlewares.md) or [Converters](/docs/converters.md).\n */\n componentsScan: (string | RegExp)[];\n /**\n * Disable the glob pattern. In v7 the componentsScan options will be removed in favor of external module loader.\n */\n disableComponentsScan: boolean;\n /**\n * List of glob patterns. Exclude all files which matching with this list when Server scan all components with the `mount` or `scanComponents` options.\n */\n exclude: string[];\n /**\n * Configure the mimes accepted by default by the server.\n */\n acceptMimes: string[];\n /**\n * Enable debug mode. By default debug is false.\n */\n debug: boolean;\n /**\n * Converter configuration.\n */\n converter: Partial<ConverterSettings>;\n /**\n * Logger configuration.\n */\n logger?: LoggerConfiguration;\n /**\n * Object to mount all directories under to his endpoints. See more on [Serve Static](/tutorials/serve-static-files.md).\n */\n statics: PlatformStaticsSettings;\n /**\n * Object configure Multer. See more on [Upload file](/tutorials/serve-static-files.md).\n */\n multer: PlatformMulterSettings;\n }\n }\n}\n\nexport * from \"./PlatformLoggerSettings\";\nexport * from \"./EndpointDirectoriesSettings\";\nexport * from \"./PlatformStaticsSettings\";\nexport * from \"./PlatformMulterSettings\";\n"]}
|