@lark-apaas/fullstack-nestjs-core 1.1.1-alpha.20 → 1.1.1-alpha.21
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/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -442,7 +442,7 @@ var PlatformModule = class _PlatformModule {
|
|
|
442
442
|
configure(consumer) {
|
|
443
443
|
const options = _PlatformModule.moduleOptions;
|
|
444
444
|
consumer.apply(apiResponseInterceptor).forRoutes("/api/*");
|
|
445
|
-
consumer.apply(UserContextMiddleware, RequestContextMiddleware, import_nestjs_logger.LoggerContextMiddleware,
|
|
445
|
+
consumer.apply(UserContextMiddleware, RequestContextMiddleware, import_nestjs_logger.LoggerContextMiddleware, import_nestjs_datapaas.SqlExecutionContextMiddleware).forRoutes("/*");
|
|
446
446
|
consumer.apply(CsrfTokenMiddleware, ViewContextMiddleware).exclude("/api/(.*)").forRoutes("*");
|
|
447
447
|
if (options.enableCsrf !== false) {
|
|
448
448
|
const csrfRoutes = options.csrfRoutes || "/api/*";
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Global, Module, ValidationPipe } from "@nestjs/common";
|
|
|
6
6
|
import { APP_PIPE } from "@nestjs/core";
|
|
7
7
|
import { CommonModule, OBSERVABLE_SERVICE_TOKEN } from "@lark-apaas/nestjs-common";
|
|
8
8
|
import { ConfigModule, ConfigService } from "@nestjs/config";
|
|
9
|
-
import { NestjsObservableModule as ObservableModule,
|
|
9
|
+
import { NestjsObservableModule as ObservableModule, ObservableService } from "@lark-apaas/nestjs-observable";
|
|
10
10
|
import { LoggerModule, AppLogger, LoggerContextMiddleware } from "@lark-apaas/nestjs-logger";
|
|
11
11
|
import { DataPaasModule, SqlExecutionContextMiddleware } from "@lark-apaas/nestjs-datapaas";
|
|
12
12
|
import { AuthNPaasModule } from "@lark-apaas/nestjs-authnpaas";
|
|
@@ -400,7 +400,7 @@ var PlatformModule = class _PlatformModule {
|
|
|
400
400
|
configure(consumer) {
|
|
401
401
|
const options = _PlatformModule.moduleOptions;
|
|
402
402
|
consumer.apply(apiResponseInterceptor).forRoutes("/api/*");
|
|
403
|
-
consumer.apply(UserContextMiddleware, RequestContextMiddleware, LoggerContextMiddleware,
|
|
403
|
+
consumer.apply(UserContextMiddleware, RequestContextMiddleware, LoggerContextMiddleware, SqlExecutionContextMiddleware).forRoutes("/*");
|
|
404
404
|
consumer.apply(CsrfTokenMiddleware, ViewContextMiddleware).exclude("/api/(.*)").forRoutes("*");
|
|
405
405
|
if (options.enableCsrf !== false) {
|
|
406
406
|
const csrfRoutes = options.csrfRoutes || "/api/*";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.1.1-alpha.
|
|
3
|
+
"version": "1.1.1-alpha.21",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@lark-apaas/nestjs-authnpaas": "^1.0.1",
|
|
43
43
|
"@lark-apaas/nestjs-common": "0.0.1-alpha.3",
|
|
44
44
|
"@lark-apaas/nestjs-datapaas": "^1.0.5",
|
|
45
|
-
"@lark-apaas/nestjs-logger": "1.0.2-alpha.
|
|
46
|
-
"@lark-apaas/nestjs-observable": "0.0.1-alpha.
|
|
45
|
+
"@lark-apaas/nestjs-logger": "1.0.2-alpha.21",
|
|
46
|
+
"@lark-apaas/nestjs-observable": "0.0.1-alpha.12",
|
|
47
47
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.9",
|
|
48
48
|
"cookie-parser": "^1.4.7"
|
|
49
49
|
},
|