@lark-apaas/fullstack-nestjs-core 1.1.34-alpha.9 → 1.1.35
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 +3 -0
- package/dist/index.js +4 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -34816,6 +34816,8 @@ var RequestContextMiddleware = class {
|
|
|
34816
34816
|
const path2 = req.originalUrl ?? req.url;
|
|
34817
34817
|
const userContext = req.userContext ?? {};
|
|
34818
34818
|
const ttEnv = req.headers["x-tt-env"];
|
|
34819
|
+
const rawPageRoute = req.get("X-Page-Route");
|
|
34820
|
+
const pageRoute = (0, import_nestjs_common2.stripBasePath)(rawPageRoute, process.env.CLIENT_BASE_PATH) ?? void 0;
|
|
34819
34821
|
const refererPath = req.headers["rpc-persist-apaas-observability-referer-path"];
|
|
34820
34822
|
const observabilityApi = req.headers["rpc-persist-apaas-observability-api"];
|
|
34821
34823
|
this.requestContext.run({
|
|
@@ -34826,6 +34828,7 @@ var RequestContextMiddleware = class {
|
|
|
34826
34828
|
appId: userContext.appId,
|
|
34827
34829
|
isSystemAccount: userContext.isSystemAccount,
|
|
34828
34830
|
ttEnv,
|
|
34831
|
+
pageRoute,
|
|
34829
34832
|
refererPath,
|
|
34830
34833
|
observabilityApi
|
|
34831
34834
|
}, () => next());
|
package/dist/index.js
CHANGED
|
@@ -34769,7 +34769,7 @@ __name(apiResponseInterceptor, "apiResponseInterceptor");
|
|
|
34769
34769
|
|
|
34770
34770
|
// src/middlewares/request-context/index.ts
|
|
34771
34771
|
import { Injectable as Injectable5 } from "@nestjs/common";
|
|
34772
|
-
import { RequestContextService } from "@lark-apaas/nestjs-common";
|
|
34772
|
+
import { RequestContextService, stripBasePath } from "@lark-apaas/nestjs-common";
|
|
34773
34773
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
34774
34774
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34775
34775
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -34793,6 +34793,8 @@ var RequestContextMiddleware = class {
|
|
|
34793
34793
|
const path2 = req.originalUrl ?? req.url;
|
|
34794
34794
|
const userContext = req.userContext ?? {};
|
|
34795
34795
|
const ttEnv = req.headers["x-tt-env"];
|
|
34796
|
+
const rawPageRoute = req.get("X-Page-Route");
|
|
34797
|
+
const pageRoute = stripBasePath(rawPageRoute, process.env.CLIENT_BASE_PATH) ?? void 0;
|
|
34796
34798
|
const refererPath = req.headers["rpc-persist-apaas-observability-referer-path"];
|
|
34797
34799
|
const observabilityApi = req.headers["rpc-persist-apaas-observability-api"];
|
|
34798
34800
|
this.requestContext.run({
|
|
@@ -34803,6 +34805,7 @@ var RequestContextMiddleware = class {
|
|
|
34803
34805
|
appId: userContext.appId,
|
|
34804
34806
|
isSystemAccount: userContext.isSystemAccount,
|
|
34805
34807
|
ttEnv,
|
|
34808
|
+
pageRoute,
|
|
34806
34809
|
refererPath,
|
|
34807
34810
|
observabilityApi
|
|
34808
34811
|
}, () => next());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.35",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@lark-apaas/file-service": "^0.1.2",
|
|
43
43
|
"@lark-apaas/http-client": "^0.1.2",
|
|
44
44
|
"@lark-apaas/nestjs-authnpaas": "^1.0.2",
|
|
45
|
-
"@lark-apaas/nestjs-authzpaas": "0.1.
|
|
46
|
-
"@lark-apaas/nestjs-capability": "0.1.
|
|
47
|
-
"@lark-apaas/nestjs-common": "0.1.
|
|
48
|
-
"@lark-apaas/nestjs-datapaas": "1.0.
|
|
49
|
-
"@lark-apaas/nestjs-logger": "1.0.
|
|
50
|
-
"@lark-apaas/nestjs-observable": "0.0.
|
|
45
|
+
"@lark-apaas/nestjs-authzpaas": "^0.1.6",
|
|
46
|
+
"@lark-apaas/nestjs-capability": "^0.1.11",
|
|
47
|
+
"@lark-apaas/nestjs-common": "^0.1.8",
|
|
48
|
+
"@lark-apaas/nestjs-datapaas": "^1.0.15",
|
|
49
|
+
"@lark-apaas/nestjs-logger": "^1.0.14",
|
|
50
|
+
"@lark-apaas/nestjs-observable": "^0.0.10",
|
|
51
51
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.10",
|
|
52
|
-
"@lark-apaas/nestjs-trigger": "0.0.
|
|
52
|
+
"@lark-apaas/nestjs-trigger": "^0.0.3",
|
|
53
53
|
"@nestjs/axios": "^4.0.1",
|
|
54
54
|
"axios": "^1.13.2",
|
|
55
55
|
"cookie-parser": "^1.4.7"
|