@innv/nest-initializer 0.5.4 → 0.5.5
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/dist/cjs/features/health.controller.js +2 -0
- package/dist/cjs/features/health.controller.js.map +1 -1
- package/dist/cjs/features/index-page.factory.js +3 -1
- package/dist/cjs/features/index-page.factory.js.map +1 -1
- package/dist/esm/features/health.controller.js +2 -0
- package/dist/esm/features/health.controller.js.map +1 -1
- package/dist/esm/features/index-page.factory.js +3 -1
- package/dist/esm/features/index-page.factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const common_1 = require("@nestjs/common");
|
|
6
6
|
const terminus_1 = require("@nestjs/terminus");
|
|
7
7
|
const terminusHealthCheckModule = tslib_1.__importStar(require("./terminus-health-check.module"));
|
|
8
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
8
9
|
exports.HEALTH_CHECK_OPTIONS = 'HEALTH_CHECK_OPTIONS';
|
|
9
10
|
let HealthController = class HealthController {
|
|
10
11
|
options;
|
|
@@ -40,6 +41,7 @@ tslib_1.__decorate([
|
|
|
40
41
|
], HealthController.prototype, "check", null);
|
|
41
42
|
exports.HealthController = HealthController = tslib_1.__decorate([
|
|
42
43
|
(0, common_1.Controller)('health'),
|
|
44
|
+
(0, swagger_1.ApiExcludeController)(),
|
|
43
45
|
tslib_1.__param(0, (0, common_1.Inject)(exports.HEALTH_CHECK_OPTIONS)),
|
|
44
46
|
tslib_1.__param(2, (0, common_1.Optional)()),
|
|
45
47
|
tslib_1.__metadata("design:paramtypes", [Object, terminus_1.HealthCheckService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.controller.js","sourceRoot":"","sources":["../../../src/features/health.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAmE;AACnE,+CAM0B;AAE1B,kGAA4E;
|
|
1
|
+
{"version":3,"file":"health.controller.js","sourceRoot":"","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AY3B;IAFC,IAAA,YAAG,GAAE;IACL,IAAA,sBAAW,GAAE;;;;6CAmBb;2BA9BU,gBAAgB;IAF5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,8BAAoB,GAAE;IAGlB,mBAAA,IAAA,eAAM,EAAC,4BAAoB,CAAC,CAAA;IAG5B,mBAAA,IAAA,iBAAQ,GAAE,CAAA;qDADc,6BAAkB;QAEtB,iCAAsB;QAClB,gCAAqB;GAPrC,gBAAgB,CA+B5B"}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
require("reflect-metadata");
|
|
6
6
|
const common_1 = require("@nestjs/common");
|
|
7
7
|
const path_1 = require("path");
|
|
8
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
8
9
|
function createIndexPageController(options = {}) {
|
|
9
10
|
const routePath = options.path ?? '/';
|
|
10
11
|
const htmlFile = options.filename ?? 'index.html';
|
|
@@ -23,7 +24,8 @@ function createIndexPageController(options = {}) {
|
|
|
23
24
|
tslib_1.__metadata("design:returntype", void 0)
|
|
24
25
|
], DynamicIndexController.prototype, "serveIndex", null);
|
|
25
26
|
DynamicIndexController = tslib_1.__decorate([
|
|
26
|
-
(0, common_1.Controller)({ path: routePath, version: common_1.VERSION_NEUTRAL })
|
|
27
|
+
(0, common_1.Controller)({ path: routePath, version: common_1.VERSION_NEUTRAL }),
|
|
28
|
+
(0, swagger_1.ApiExcludeController)()
|
|
27
29
|
], DynamicIndexController);
|
|
28
30
|
return DynamicIndexController;
|
|
29
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-page.factory.js","sourceRoot":"","sources":["../../../src/features/index-page.factory.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index-page.factory.js","sourceRoot":"","sources":["../../../src/features/index-page.factory.ts"],"names":[],"mappings":";;AAwBA,8DAmBC;;AA3CD,4BAA0B;AAC1B,2CAA6E;AAE7E,+BAA4B;AAC5B,6CAAuD;AAoBvD,SAAgB,yBAAyB,CACvC,UAA4B,EAAE;IAE9B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC;IACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,YAAY,CAAC;IAClD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,QAAQ,CAAC;IAEhD,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAI1D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;QAE1B,UAAU,CAAQ,GAAa;YAC7B,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzB,CAAC;KACF,CAAA;IAHC;QADC,IAAA,YAAG,GAAE;QACM,mBAAA,IAAA,YAAG,GAAE,CAAA;;;;4DAEhB;IAJG,sBAAsB;QAF3B,IAAA,mBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,wBAAe,EAAE,CAAC;QACzD,IAAA,8BAAoB,GAAE;OACjB,sBAAsB,CAK3B;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const common_1 = require("@nestjs/common");
|
|
6
6
|
const terminus_1 = require("@nestjs/terminus");
|
|
7
7
|
const terminusHealthCheckModule = tslib_1.__importStar(require("./terminus-health-check.module"));
|
|
8
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
8
9
|
exports.HEALTH_CHECK_OPTIONS = 'HEALTH_CHECK_OPTIONS';
|
|
9
10
|
let HealthController = class HealthController {
|
|
10
11
|
options;
|
|
@@ -40,6 +41,7 @@ tslib_1.__decorate([
|
|
|
40
41
|
], HealthController.prototype, "check", null);
|
|
41
42
|
exports.HealthController = HealthController = tslib_1.__decorate([
|
|
42
43
|
(0, common_1.Controller)('health'),
|
|
44
|
+
(0, swagger_1.ApiExcludeController)(),
|
|
43
45
|
tslib_1.__param(0, (0, common_1.Inject)(exports.HEALTH_CHECK_OPTIONS)),
|
|
44
46
|
tslib_1.__param(2, (0, common_1.Optional)()),
|
|
45
47
|
tslib_1.__metadata("design:paramtypes", [Object, terminus_1.HealthCheckService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.controller.js","sourceRoot":"","sources":["../../../src/features/health.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAmE;AACnE,+CAM0B;AAE1B,kGAA4E;
|
|
1
|
+
{"version":3,"file":"health.controller.js","sourceRoot":"","sources":["../../../src/features/health.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAmE;AACnE,+CAM0B;AAE1B,kGAA4E;AAC5E,6CAAuD;AAE1C,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAIpD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAGR;IACA;IAEA;IACA;IANnB,YAEmB,OAA6D,EAC7D,MAA0B,EAE1B,EAA0B,EAC1B,MAA6B;QAJ7B,YAAO,GAAP,OAAO,CAAsD;QAC7D,WAAM,GAAN,MAAM,CAAoB;QAE1B,OAAE,GAAF,EAAE,CAAwB;QAC1B,WAAM,GAAN,MAAM,CAAuB;IAC7C,CAAC;IAIJ,KAAK;QACH,MAAM,MAAM,GAA8B,EAAE,CAAC;QAE7C,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,EAAE,aAAa,GAAG,GAAG,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;YACxE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CACf,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC,CAClE,CAAC;YACF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CACf,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC,CAC/D,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CACF,CAAA;AA/BY,4CAAgB;AAY3B;IAFC,IAAA,YAAG,GAAE;IACL,IAAA,sBAAW,GAAE;;;;6CAmBb;2BA9BU,gBAAgB;IAF5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,8BAAoB,GAAE;IAGlB,mBAAA,IAAA,eAAM,EAAC,4BAAoB,CAAC,CAAA;IAG5B,mBAAA,IAAA,iBAAQ,GAAE,CAAA;qDADc,6BAAkB;QAEtB,iCAAsB;QAClB,gCAAqB;GAPrC,gBAAgB,CA+B5B"}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
require("reflect-metadata");
|
|
6
6
|
const common_1 = require("@nestjs/common");
|
|
7
7
|
const path_1 = require("path");
|
|
8
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
8
9
|
function createIndexPageController(options = {}) {
|
|
9
10
|
const routePath = options.path ?? '/';
|
|
10
11
|
const htmlFile = options.filename ?? 'index.html';
|
|
@@ -23,7 +24,8 @@ function createIndexPageController(options = {}) {
|
|
|
23
24
|
tslib_1.__metadata("design:returntype", void 0)
|
|
24
25
|
], DynamicIndexController.prototype, "serveIndex", null);
|
|
25
26
|
DynamicIndexController = tslib_1.__decorate([
|
|
26
|
-
(0, common_1.Controller)({ path: routePath, version: common_1.VERSION_NEUTRAL })
|
|
27
|
+
(0, common_1.Controller)({ path: routePath, version: common_1.VERSION_NEUTRAL }),
|
|
28
|
+
(0, swagger_1.ApiExcludeController)()
|
|
27
29
|
], DynamicIndexController);
|
|
28
30
|
return DynamicIndexController;
|
|
29
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-page.factory.js","sourceRoot":"","sources":["../../../src/features/index-page.factory.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index-page.factory.js","sourceRoot":"","sources":["../../../src/features/index-page.factory.ts"],"names":[],"mappings":";;AAwBA,8DAmBC;;AA3CD,4BAA0B;AAC1B,2CAA6E;AAE7E,+BAA4B;AAC5B,6CAAuD;AAoBvD,SAAgB,yBAAyB,CACvC,UAA4B,EAAE;IAE9B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC;IACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,YAAY,CAAC;IAClD,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,QAAQ,CAAC;IAEhD,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAI1D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;QAE1B,UAAU,CAAQ,GAAa;YAC7B,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzB,CAAC;KACF,CAAA;IAHC;QADC,IAAA,YAAG,GAAE;QACM,mBAAA,IAAA,YAAG,GAAE,CAAA;;;;4DAEhB;IAJG,sBAAsB;QAF3B,IAAA,mBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,wBAAe,EAAE,CAAC;QACzD,IAAA,8BAAoB,GAAE;OACjB,sBAAsB,CAK3B;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED