@rxap/plugin-nestjs 19.1.3-dev.3 → 19.1.3-dev.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [19.1.3-dev.5](https://gitlab.com/rxap/packages/compare/@rxap/plugin-nestjs@19.1.3-dev.4...@rxap/plugin-nestjs@19.1.3-dev.5) (2024-08-15)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- use typed logger ([76a0fe1](https://gitlab.com/rxap/packages/commit/76a0fe1510c2866d3934a30d56d920bc265ce46d))
|
|
11
|
+
|
|
12
|
+
## [19.1.3-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/plugin-nestjs@19.1.3-dev.3...@rxap/plugin-nestjs@19.1.3-dev.4) (2024-08-15)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @rxap/plugin-nestjs
|
|
15
|
+
|
|
6
16
|
## [19.1.3-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/plugin-nestjs@19.1.3-dev.2...@rxap/plugin-nestjs@19.1.3-dev.3) (2024-08-15)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.1.3-dev.
|
|
2
|
+
"version": "19.1.3-dev.5",
|
|
3
3
|
"name": "@rxap/plugin-nestjs",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"@nx/nest": "19.4.2",
|
|
9
9
|
"@rxap/node-utilities": "^1.3.3",
|
|
10
10
|
"@rxap/plugin-application": "^19.1.1",
|
|
11
|
-
"@rxap/plugin-library": "^19.4.1-dev.
|
|
12
|
-
"@rxap/plugin-open-api": "^19.1.5-dev.
|
|
11
|
+
"@rxap/plugin-library": "^19.4.1-dev.3",
|
|
12
|
+
"@rxap/plugin-open-api": "^19.1.5-dev.3",
|
|
13
13
|
"@rxap/plugin-utilities": "^19.0.6",
|
|
14
|
-
"@rxap/ts-morph": "^1.
|
|
14
|
+
"@rxap/ts-morph": "^1.5.0-dev.0",
|
|
15
15
|
"@rxap/utilities": "^16.3.0",
|
|
16
|
-
"@rxap/workspace-ts-morph": "^19.1.4-dev.
|
|
16
|
+
"@rxap/workspace-ts-morph": "^19.1.4-dev.2",
|
|
17
17
|
"@rxap/workspace-utilities": "^19.4.0",
|
|
18
18
|
"colors": "1.4.0",
|
|
19
19
|
"semver": "7.5.3",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
},
|
|
55
55
|
"schematics": "./generators.json",
|
|
56
56
|
"type": "commonjs",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "2a9f22dde4eb8489e2f328717dfcf91c085e8058",
|
|
58
58
|
"main": "./src/index.js"
|
|
59
59
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.assertMainStatements = exports.MAIN_BOOTSTRAP_STATEMENT = void 0;
|
|
4
4
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
5
5
|
const MAIN_BOOTSTRAP_OPTIONS_STATEMENT = 'const bootstrapOptions: Partial<MonolithicBootstrapOptions> = {};';
|
|
6
|
-
const MAIN_SERVER_STATEMENT = 'const server = new Monolithic<NestApplicationOptions, NestExpressApplication>(AppModule, environment, options, bootstrapOptions);';
|
|
6
|
+
const MAIN_SERVER_STATEMENT = 'const server = new Monolithic<NestApplicationOptions, RxapLogger, NestExpressApplication>(AppModule, environment, options, bootstrapOptions);';
|
|
7
7
|
exports.MAIN_BOOTSTRAP_STATEMENT = 'server.bootstrap().catch((e) => console.error(\'Server bootstrap failed: \' + e.message));';
|
|
8
8
|
const MAIN_SETUP_HELMET_STATEMENT = 'server.after(SetupHelmet());';
|
|
9
9
|
const MAIN_SETUP_COOKIE_STATEMENT = 'server.after(SetupCookieParser());';
|
|
@@ -12,9 +12,9 @@ const MAIN_NEST_APP_OPTIONS_STATEMENT = 'const options: NestApplicationOptions =
|
|
|
12
12
|
function assertMainStatements(sourceFile) {
|
|
13
13
|
var _a;
|
|
14
14
|
const statements = [];
|
|
15
|
-
statements.push('
|
|
16
|
-
statements.push('
|
|
17
|
-
statements.push(
|
|
15
|
+
statements.push(MAIN_NEST_APP_OPTIONS_STATEMENT.replace('};', ''));
|
|
16
|
+
statements.push(MAIN_BOOTSTRAP_OPTIONS_STATEMENT.replace('};', ''));
|
|
17
|
+
statements.push(MAIN_SERVER_STATEMENT);
|
|
18
18
|
const existingStatements = (_a = sourceFile.getStatements().map(s => s.getText())) !== null && _a !== void 0 ? _a : [];
|
|
19
19
|
for (const statement of statements) {
|
|
20
20
|
if (!existingStatements.includes(statement)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-main-statements.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/nestjs/src/generators/init-application/assert-main-statements.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;AAG/C,MAAM,gCAAgC,GAAG,mEAAmE,CAAC;AAC7G,MAAM,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"file":"assert-main-statements.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/nestjs/src/generators/init-application/assert-main-statements.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;AAG/C,MAAM,gCAAgC,GAAG,mEAAmE,CAAC;AAC7G,MAAM,qBAAqB,GAAG,+IAA+I,CAAC;AACjK,QAAA,wBAAwB,GAAG,4FAA4F,CAAC;AACrI,MAAM,2BAA2B,GAAG,8BAA8B,CAAC;AACnE,MAAM,2BAA2B,GAAG,oCAAoC,CAAC;AACzE,MAAM,yBAAyB,GAAG,4BAA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