@tsed/common 6.115.0 → 6.115.1
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/jest.config.js +4 -4
- package/lib/cjs/domain/PlatformRouteDetails.js +1 -1
- package/lib/cjs/domain/PlatformRouteDetails.js.map +1 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/domain/PlatformRouteDetails.js +1 -1
- package/lib/esm/domain/PlatformRouteDetails.js.map +1 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/types/domain/PlatformRouteDetails.d.ts +1 -7
- package/lib/types/index.d.ts +0 -1
- package/package.json +15 -15
- package/lib/cjs/utils/loadInjector.js +0 -14
- package/lib/cjs/utils/loadInjector.js.map +0 -1
- package/lib/esm/utils/loadInjector.js +0 -10
- package/lib/esm/utils/loadInjector.js.map +0 -1
- package/lib/types/utils/loadInjector.d.ts +0 -6
package/jest.config.js
CHANGED
|
@@ -5,10 +5,10 @@ module.exports = {
|
|
|
5
5
|
...require("@tsed/jest-config")(__dirname, "common"),
|
|
6
6
|
coverageThreshold: {
|
|
7
7
|
global: {
|
|
8
|
-
statements:
|
|
9
|
-
branches:
|
|
10
|
-
functions:
|
|
11
|
-
lines:
|
|
8
|
+
statements: 92.37,
|
|
9
|
+
branches: 76.27,
|
|
10
|
+
functions: 88.85,
|
|
11
|
+
lines: 92.39
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -6,7 +6,7 @@ const schema_1 = require("@tsed/schema");
|
|
|
6
6
|
class PlatformRouteDetails extends schema_1.JsonOperationRoute {
|
|
7
7
|
rawBody;
|
|
8
8
|
provider;
|
|
9
|
-
constructor(options
|
|
9
|
+
constructor(options) {
|
|
10
10
|
super(options);
|
|
11
11
|
this.rawBody = !!this.endpoint.parameters.find((param) => param.paramType === platform_params_1.ParamTypes.RAW_BODY);
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformRouteDetails.js","sourceRoot":"","sources":["../../../src/domain/PlatformRouteDetails.ts"],"names":[],"mappings":";;;AAAA,2DAAiD;AACjD,yCAAkE;
|
|
1
|
+
{"version":3,"file":"PlatformRouteDetails.js","sourceRoot":"","sources":["../../../src/domain/PlatformRouteDetails.ts"],"names":[],"mappings":";;;AAAA,2DAAiD;AACjD,yCAAkE;AAGlE,MAAa,oBAAqB,SAAQ,2BAAoC;IACnE,OAAO,CAAU;IACjB,QAAQ,CAAqB;IAEtC,YAAY,OAAsC;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,KAAK,4BAAU,CAAC,QAAQ,CAAC,CAAC;IACrG,CAAC;IAED,MAAM;QACJ,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AApBD,oDAoBC","sourcesContent":["import {ParamTypes} from \"@tsed/platform-params\";\nimport {EndpointMetadata, JsonOperationRoute} from \"@tsed/schema\";\nimport {ControllerProvider} from \"./ControllerProvider\";\n\nexport class PlatformRouteDetails extends JsonOperationRoute<EndpointMetadata> {\n readonly rawBody: boolean;\n readonly provider: ControllerProvider;\n\n constructor(options: Partial<PlatformRouteDetails>) {\n super(options);\n this.rawBody = !!this.endpoint.parameters.find((param) => param.paramType === ParamTypes.RAW_BODY);\n }\n\n toJSON() {\n return {\n method: this.method,\n name: this.name,\n url: this.url,\n className: this.className,\n methodClassName: this.methodClassName,\n parameters: this.parameters,\n rawBody: this.rawBody\n };\n }\n}\n"]}
|
package/lib/cjs/index.js
CHANGED
|
@@ -70,7 +70,6 @@ tslib_1.__exportStar(require("./utils/createHttpsServer"), exports);
|
|
|
70
70
|
tslib_1.__exportStar(require("./utils/createInjector"), exports);
|
|
71
71
|
tslib_1.__exportStar(require("./utils/getStaticsOptions"), exports);
|
|
72
72
|
tslib_1.__exportStar(require("./utils/listenServer"), exports);
|
|
73
|
-
tslib_1.__exportStar(require("./utils/loadInjector"), exports);
|
|
74
73
|
tslib_1.__exportStar(require("./utils/mapReturnedResponse"), exports);
|
|
75
74
|
tslib_1.__exportStar(require("./utils/printRoutes"), exports);
|
|
76
75
|
tslib_1.__exportStar(require("./utils/setResponseHeaders"), exports);
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,2DAAiC;AACjC,oDAA0B;AAC1B,oEAA0C;AAC1C,8EAAoD;AACpD,gFAAsD;AACtD,qFAA2D;AAC3D,qFAA2D;AAC3D,sFAA4D;AAC5D,kFAAwD;AACxD,oEAA0C;AAC1C,kEAAwC;AACxC,mEAAyC;AACzC,yEAA+C;AAC/C,6EAAmD;AACnD,4EAAkD;AAClD,4EAAkD;AAClD,2EAAiD;AACjD,oEAA0C;AAC1C,mEAAyC;AACzC,sEAA4C;AAC5C,uEAA6C;AAC7C,2EAAiD;AACjD,uEAA6C;AAC7C,sEAA4C;AAC5C,oEAA0C;AAC1C,mEAAyC;AACzC,mEAAyC;AACzC,wEAA8C;AAC9C,oEAA0C;AAC1C,iEAAuC;AACvC,mEAAyC;AACzC,uEAA6C;AAC7C,kEAAwC;AACxC,oEAA0C;AAC1C,wEAA8C;AAC9C,mEAAyC;AACzC,qEAA2C;AAC3C,+DAAqC;AACrC,iEA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D;AACrD,iEAAuC;AACvC,8DAAoC;AACpC,qEAA2C;AAC3C,yEAA+C;AAC/C,qEAA2C;AAC3C,8EAAoD;AACpD,qEAA2C;AAC3C,sEAA4C;AAC5C,oEAA0C;AAC1C,kEAAwC;AACxC,gEAAsC;AACtC,wEAA8C;AAC9C,mEAAyC;AACzC,oEAA0C;AAC1C,iEAAuC;AACvC,oEAA0C;AAC1C,+DAAqC;AACrC,sEAA4C;AAC5C,8DAAoC;AACpC,qEAA2C;AAC3C,gEAAsC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./PlatformModule\";\nexport * from \"./exports\";\nexport * from \"./builder/PlatformBuilder\";\nexport * from \"./builder/PlatformControllerBuilder\";\nexport * from \"./config/interfaces/ConverterSettings\";\nexport * from \"./config/interfaces/PlatformLoggerSettings\";\nexport * from \"./config/interfaces/PlatformMulterSettings\";\nexport * from \"./config/interfaces/PlatformStaticsSettings\";\nexport * from \"./config/services/PlatformConfiguration\";\nexport * from \"./constants/routerOptions\";\nexport * from \"./decorators/httpServer\";\nexport * from \"./decorators/httpsServer\";\nexport * from \"./decorators/method/endpointFn\";\nexport * from \"./decorators/multer/multerFileSize\";\nexport * from \"./decorators/multer/multerOptions\";\nexport * from \"./decorators/multer/multipartFile\";\nexport * from \"./decorators/params/endpointInfo\";\nexport * from \"./decorators/params/error\";\nexport * from \"./decorators/params/next\";\nexport * from \"./decorators/params/request\";\nexport * from \"./decorators/params/response\";\nexport * from \"./decorators/params/responseData\";\nexport * from \"./domain/AnyToPromiseWithCtx\";\nexport * from \"./domain/ControllerProvider\";\nexport * from \"./domain/EndpointMetadata\";\nexport * from \"./domain/HandlerMetadata\";\nexport * from \"./domain/PlatformContext\";\nexport * from \"./domain/PlatformRouteDetails\";\nexport * from \"./domain/PropertyMetadata\";\nexport * from \"./interfaces/AfterInit\";\nexport * from \"./interfaces/AfterListen\";\nexport * from \"./interfaces/AfterRoutesInit\";\nexport * from \"./interfaces/BeforeInit\";\nexport * from \"./interfaces/BeforeListen\";\nexport * from \"./interfaces/BeforeRoutesInit\";\nexport * from \"./interfaces/HandlerType\";\nexport * from \"./interfaces/IncomingEvent\";\nexport * from \"./interfaces/OnReady\";\nexport * from \"./interfaces/OnRequest\";\nexport * from \"./interfaces/OnResponse\";\nexport * from \"./interfaces/OnRoutesInit\";\nexport * from \"./interfaces/PlatformRouteOptions\";\nexport * from \"./interfaces/ResponseErrorObject\";\nexport * from \"./interfaces/Route\";\nexport * from \"./middlewares/AcceptMimesMiddleware\";\nexport * from \"./middlewares/GlobalAcceptMimesMiddleware\";\nexport * from \"./middlewares/PlatformAcceptMimesMiddleware\";\nexport * from \"./middlewares/PlatformMulterMiddleware\";\nexport * from \"./middlewares/bindEndpointMiddleware\";\nexport * from \"./services/FakeAdapter\";\nexport * from \"./services/Platform\";\nexport * from \"./services/PlatformAdapter\";\nexport * from \"./services/PlatformApplication\";\nexport * from \"./services/PlatformHandler\";\nexport * from \"./services/PlatformMiddlewaresChain\";\nexport * from \"./services/PlatformRequest\";\nexport * from \"./services/PlatformResponse\";\nexport * from \"./services/PlatformRouter\";\nexport * from \"./services/PlatformTest\";\nexport * from \"./utils/createContext\";\nexport * from \"./utils/createHandlerMetadata\";\nexport * from \"./utils/createHttpServer\";\nexport * from \"./utils/createHttpsServer\";\nexport * from \"./utils/createInjector\";\nexport * from \"./utils/getStaticsOptions\";\nexport * from \"./utils/listenServer\";\nexport * from \"./utils/mapReturnedResponse\";\nexport * from \"./utils/printRoutes\";\nexport * from \"./utils/setResponseHeaders\";\nexport * from \"./utils/useCtxHandler\";\n"]}
|
|
@@ -3,7 +3,7 @@ import { JsonOperationRoute } from "@tsed/schema";
|
|
|
3
3
|
export class PlatformRouteDetails extends JsonOperationRoute {
|
|
4
4
|
rawBody;
|
|
5
5
|
provider;
|
|
6
|
-
constructor(options
|
|
6
|
+
constructor(options) {
|
|
7
7
|
super(options);
|
|
8
8
|
this.rawBody = !!this.endpoint.parameters.find((param) => param.paramType === ParamTypes.RAW_BODY);
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformRouteDetails.js","sourceRoot":"","sources":["../../../src/domain/PlatformRouteDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAmB,kBAAkB,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"PlatformRouteDetails.js","sourceRoot":"","sources":["../../../src/domain/PlatformRouteDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAmB,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAGlE,MAAM,OAAO,oBAAqB,SAAQ,kBAAoC;IACnE,OAAO,CAAU;IACjB,QAAQ,CAAqB;IAEtC,YAAY,OAAsC;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAC;IACrG,CAAC;IAED,MAAM;QACJ,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {ParamTypes} from \"@tsed/platform-params\";\nimport {EndpointMetadata, JsonOperationRoute} from \"@tsed/schema\";\nimport {ControllerProvider} from \"./ControllerProvider\";\n\nexport class PlatformRouteDetails extends JsonOperationRoute<EndpointMetadata> {\n readonly rawBody: boolean;\n readonly provider: ControllerProvider;\n\n constructor(options: Partial<PlatformRouteDetails>) {\n super(options);\n this.rawBody = !!this.endpoint.parameters.find((param) => param.paramType === ParamTypes.RAW_BODY);\n }\n\n toJSON() {\n return {\n method: this.method,\n name: this.name,\n url: this.url,\n className: this.className,\n methodClassName: this.methodClassName,\n parameters: this.parameters,\n rawBody: this.rawBody\n };\n }\n}\n"]}
|
package/lib/esm/index.js
CHANGED
|
@@ -67,7 +67,6 @@ export * from "./utils/createHttpsServer.js";
|
|
|
67
67
|
export * from "./utils/createInjector.js";
|
|
68
68
|
export * from "./utils/getStaticsOptions.js";
|
|
69
69
|
export * from "./utils/listenServer.js";
|
|
70
|
-
export * from "./utils/loadInjector.js";
|
|
71
70
|
export * from "./utils/mapReturnedResponse.js";
|
|
72
71
|
export * from "./utils/printRoutes.js";
|
|
73
72
|
export * from "./utils/setResponseHeaders.js";
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA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cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./PlatformModule\";\nexport * from \"./exports\";\nexport * from \"./builder/PlatformBuilder\";\nexport * from \"./builder/PlatformControllerBuilder\";\nexport * from \"./config/interfaces/ConverterSettings\";\nexport * from \"./config/interfaces/PlatformLoggerSettings\";\nexport * from \"./config/interfaces/PlatformMulterSettings\";\nexport * from \"./config/interfaces/PlatformStaticsSettings\";\nexport * from \"./config/services/PlatformConfiguration\";\nexport * from \"./constants/routerOptions\";\nexport * from \"./decorators/httpServer\";\nexport * from \"./decorators/httpsServer\";\nexport * from \"./decorators/method/endpointFn\";\nexport * from \"./decorators/multer/multerFileSize\";\nexport * from \"./decorators/multer/multerOptions\";\nexport * from \"./decorators/multer/multipartFile\";\nexport * from \"./decorators/params/endpointInfo\";\nexport * from \"./decorators/params/error\";\nexport * from \"./decorators/params/next\";\nexport * from \"./decorators/params/request\";\nexport * from \"./decorators/params/response\";\nexport * from \"./decorators/params/responseData\";\nexport * from \"./domain/AnyToPromiseWithCtx\";\nexport * from \"./domain/ControllerProvider\";\nexport * from \"./domain/EndpointMetadata\";\nexport * from \"./domain/HandlerMetadata\";\nexport * from \"./domain/PlatformContext\";\nexport * from \"./domain/PlatformRouteDetails\";\nexport * from \"./domain/PropertyMetadata\";\nexport * from \"./interfaces/AfterInit\";\nexport * from \"./interfaces/AfterListen\";\nexport * from \"./interfaces/AfterRoutesInit\";\nexport * from \"./interfaces/BeforeInit\";\nexport * from \"./interfaces/BeforeListen\";\nexport * from \"./interfaces/BeforeRoutesInit\";\nexport * from \"./interfaces/HandlerType\";\nexport * from \"./interfaces/IncomingEvent\";\nexport * from \"./interfaces/OnReady\";\nexport * from \"./interfaces/OnRequest\";\nexport * from \"./interfaces/OnResponse\";\nexport * from \"./interfaces/OnRoutesInit\";\nexport * from \"./interfaces/PlatformRouteOptions\";\nexport * from \"./interfaces/ResponseErrorObject\";\nexport * from \"./interfaces/Route\";\nexport * from \"./middlewares/AcceptMimesMiddleware\";\nexport * from \"./middlewares/GlobalAcceptMimesMiddleware\";\nexport * from \"./middlewares/PlatformAcceptMimesMiddleware\";\nexport * from \"./middlewares/PlatformMulterMiddleware\";\nexport * from \"./middlewares/bindEndpointMiddleware\";\nexport * from \"./services/FakeAdapter\";\nexport * from \"./services/Platform\";\nexport * from \"./services/PlatformAdapter\";\nexport * from \"./services/PlatformApplication\";\nexport * from \"./services/PlatformHandler\";\nexport * from \"./services/PlatformMiddlewaresChain\";\nexport * from \"./services/PlatformRequest\";\nexport * from \"./services/PlatformResponse\";\nexport * from \"./services/PlatformRouter\";\nexport * from \"./services/PlatformTest\";\nexport * from \"./utils/createContext\";\nexport * from \"./utils/createHandlerMetadata\";\nexport * from \"./utils/createHttpServer\";\nexport * from \"./utils/createHttpsServer\";\nexport * from \"./utils/createInjector\";\nexport * from \"./utils/getStaticsOptions\";\nexport * from \"./utils/listenServer\";\nexport * from \"./utils/mapReturnedResponse\";\nexport * from \"./utils/printRoutes\";\nexport * from \"./utils/setResponseHeaders\";\nexport * from \"./utils/useCtxHandler\";\n"]}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { EndpointMetadata, JsonOperationRoute } from "@tsed/schema";
|
|
2
2
|
import { ControllerProvider } from "./ControllerProvider";
|
|
3
|
-
export interface PlatformRouterDetailsOptions {
|
|
4
|
-
provider: ControllerProvider;
|
|
5
|
-
endpoint: EndpointMetadata;
|
|
6
|
-
method: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}
|
|
9
3
|
export declare class PlatformRouteDetails extends JsonOperationRoute<EndpointMetadata> {
|
|
10
4
|
readonly rawBody: boolean;
|
|
11
5
|
readonly provider: ControllerProvider;
|
|
12
|
-
constructor(options
|
|
6
|
+
constructor(options: Partial<PlatformRouteDetails>);
|
|
13
7
|
toJSON(): {
|
|
14
8
|
method: string;
|
|
15
9
|
name: string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -67,7 +67,6 @@ export * from "./utils/createHttpsServer";
|
|
|
67
67
|
export * from "./utils/createInjector";
|
|
68
68
|
export * from "./utils/getStaticsOptions";
|
|
69
69
|
export * from "./utils/listenServer";
|
|
70
|
-
export * from "./utils/loadInjector";
|
|
71
70
|
export * from "./utils/mapReturnedResponse";
|
|
72
71
|
export * from "./utils/printRoutes";
|
|
73
72
|
export * from "./utils/setResponseHeaders";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/common",
|
|
3
|
-
"version": "6.115.
|
|
3
|
+
"version": "6.115.1",
|
|
4
4
|
"description": "A TypeScript Framework on top of Express",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -62,22 +62,22 @@
|
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@tsed/components-scan": "6.115.
|
|
66
|
-
"@tsed/core": "6.115.
|
|
67
|
-
"@tsed/di": "6.115.
|
|
68
|
-
"@tsed/exceptions": "6.115.
|
|
69
|
-
"@tsed/json-mapper": "6.115.
|
|
65
|
+
"@tsed/components-scan": "6.115.1",
|
|
66
|
+
"@tsed/core": "6.115.1",
|
|
67
|
+
"@tsed/di": "6.115.1",
|
|
68
|
+
"@tsed/exceptions": "6.115.1",
|
|
69
|
+
"@tsed/json-mapper": "6.115.1",
|
|
70
70
|
"@tsed/logger": ">=6.1.4",
|
|
71
71
|
"@tsed/logger-file": ">=6.1.4",
|
|
72
|
-
"@tsed/perf": "6.115.
|
|
73
|
-
"@tsed/platform-cache": "6.115.
|
|
74
|
-
"@tsed/platform-exceptions": "6.115.
|
|
75
|
-
"@tsed/platform-log-middleware": "6.115.
|
|
76
|
-
"@tsed/platform-middlewares": "6.115.
|
|
77
|
-
"@tsed/platform-params": "6.115.
|
|
78
|
-
"@tsed/platform-response-filter": "6.115.
|
|
79
|
-
"@tsed/platform-views": "6.115.
|
|
80
|
-
"@tsed/schema": "6.115.
|
|
72
|
+
"@tsed/perf": "6.115.1",
|
|
73
|
+
"@tsed/platform-cache": "6.115.1",
|
|
74
|
+
"@tsed/platform-exceptions": "6.115.1",
|
|
75
|
+
"@tsed/platform-log-middleware": "6.115.1",
|
|
76
|
+
"@tsed/platform-middlewares": "6.115.1",
|
|
77
|
+
"@tsed/platform-params": "6.115.1",
|
|
78
|
+
"@tsed/platform-response-filter": "6.115.1",
|
|
79
|
+
"@tsed/platform-views": "6.115.1",
|
|
80
|
+
"@tsed/schema": "6.115.1",
|
|
81
81
|
"@types/json-schema": "7.0.11",
|
|
82
82
|
"@types/on-finished": "2.3.1",
|
|
83
83
|
"on-finished": "2.4.1",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadInjector = void 0;
|
|
4
|
-
const di_1 = require("@tsed/di");
|
|
5
|
-
/**
|
|
6
|
-
* @ignore
|
|
7
|
-
* @deprecated User injector.load(container, module) instead
|
|
8
|
-
*/
|
|
9
|
-
async function loadInjector(injector, container = (0, di_1.createContainer)()) {
|
|
10
|
-
injector.bootstrap(container);
|
|
11
|
-
return injector.load(container);
|
|
12
|
-
}
|
|
13
|
-
exports.loadInjector = loadInjector;
|
|
14
|
-
//# sourceMappingURL=loadInjector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadInjector.js","sourceRoot":"","sources":["../../../src/utils/loadInjector.ts"],"names":[],"mappings":";;;AAAA,iCAAsF;AAEtF;;;GAGG;AACI,KAAK,UAAU,YAAY,CAAC,QAAyB,EAAE,YAAuB,IAAA,oBAAe,GAAE;IACpG,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAHD,oCAGC","sourcesContent":["import {Container, createContainer, InjectorService, LocalsContainer} from \"@tsed/di\";\n\n/**\n * @ignore\n * @deprecated User injector.load(container, module) instead\n */\nexport async function loadInjector(injector: InjectorService, container: Container = createContainer()): Promise<LocalsContainer<any>> {\n injector.bootstrap(container);\n return injector.load(container);\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createContainer } from "@tsed/di";
|
|
2
|
-
/**
|
|
3
|
-
* @ignore
|
|
4
|
-
* @deprecated User injector.load(container, module) instead
|
|
5
|
-
*/
|
|
6
|
-
export async function loadInjector(injector, container = createContainer()) {
|
|
7
|
-
injector.bootstrap(container);
|
|
8
|
-
return injector.load(container);
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=loadInjector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadInjector.js","sourceRoot":"","sources":["../../../src/utils/loadInjector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,eAAe,EAAmC,MAAM,UAAU,CAAC;AAEtF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,QAAyB,EAAE,YAAuB,eAAe,EAAE;IACpG,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC","sourcesContent":["import {Container, createContainer, InjectorService, LocalsContainer} from \"@tsed/di\";\n\n/**\n * @ignore\n * @deprecated User injector.load(container, module) instead\n */\nexport async function loadInjector(injector: InjectorService, container: Container = createContainer()): Promise<LocalsContainer<any>> {\n injector.bootstrap(container);\n return injector.load(container);\n}\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Container, InjectorService, LocalsContainer } from "@tsed/di";
|
|
2
|
-
/**
|
|
3
|
-
* @ignore
|
|
4
|
-
* @deprecated User injector.load(container, module) instead
|
|
5
|
-
*/
|
|
6
|
-
export declare function loadInjector(injector: InjectorService, container?: Container): Promise<LocalsContainer<any>>;
|