@lark-apaas/fullstack-nestjs-core 1.2.0-alpha.20261114090621 → 1.2.0-alpha.20261114091433

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/README.md CHANGED
@@ -44,14 +44,6 @@ export class BusinessService {
44
44
 
45
45
  业务模块无需重复注册该 provider。未建立请求上下文时,`get()` 返回 `undefined`。
46
46
 
47
- ### 网关附加信息 `extraInfo`
48
-
49
- 网关在 `x-larkgw-suda-webuser` 的 `extra_info` 中注入附加信息,SDK 原样透传到 `req.userContext.extraInfo` 与请求上下文的 `extraInfo`(`Record<string, unknown>`),未注入时为 `{}`。SDK 不约束附加信息的内部结构。
50
-
51
- ```typescript
52
- const extraInfo = this.requestContext.get('extraInfo') ?? {};
53
- ```
54
-
55
47
  ## 环境要求
56
48
 
57
49
  - Node.js >= 18.0.0
package/dist/index.cjs CHANGED
@@ -125,8 +125,7 @@ var UserContextMiddleware = class {
125
125
  userNameEn: webUser?.user_name?.en_us ?? "",
126
126
  userNameI18n: webUser?.user_name ?? {},
127
127
  isSystemAccount: webUser?.is_system_account ?? false,
128
- roles: webUser?.roles,
129
- extraInfo: webUser?.extra_info ?? {}
128
+ roles: webUser?.roles
130
129
  };
131
130
  next();
132
131
  }
@@ -565,7 +564,6 @@ var RequestContextMiddleware = class {
565
564
  tenantId: userContext.tenantId,
566
565
  appId: userContext.appId,
567
566
  isSystemAccount: userContext.isSystemAccount,
568
- extraInfo: userContext.extraInfo ?? {},
569
567
  ttEnv,
570
568
  pageRoute,
571
569
  refererPath,
package/dist/index.d.cts CHANGED
@@ -44,7 +44,6 @@ declare global {
44
44
  userNameI18n?: Record<string, string>; // 带多语的用户名
45
45
  isSystemAccount?: boolean; // 是否为系统账号,trigger 场景下为 true
46
46
  roles?: string[]; // 用户角色 id 列表
47
- extraInfo?: Record<string, unknown>;
48
47
  };
49
48
  csrfToken?: string;
50
49
  }
package/dist/index.d.ts CHANGED
@@ -44,7 +44,6 @@ declare global {
44
44
  userNameI18n?: Record<string, string>; // 带多语的用户名
45
45
  isSystemAccount?: boolean; // 是否为系统账号,trigger 场景下为 true
46
46
  roles?: string[]; // 用户角色 id 列表
47
- extraInfo?: Record<string, unknown>;
48
47
  };
49
48
  csrfToken?: string;
50
49
  }
package/dist/index.js CHANGED
@@ -65,8 +65,7 @@ var UserContextMiddleware = class {
65
65
  userNameEn: webUser?.user_name?.en_us ?? "",
66
66
  userNameI18n: webUser?.user_name ?? {},
67
67
  isSystemAccount: webUser?.is_system_account ?? false,
68
- roles: webUser?.roles,
69
- extraInfo: webUser?.extra_info ?? {}
68
+ roles: webUser?.roles
70
69
  };
71
70
  next();
72
71
  }
@@ -505,7 +504,6 @@ var RequestContextMiddleware = class {
505
504
  tenantId: userContext.tenantId,
506
505
  appId: userContext.appId,
507
506
  isSystemAccount: userContext.isSystemAccount,
508
- extraInfo: userContext.extraInfo ?? {},
509
507
  ttEnv,
510
508
  pageRoute,
511
509
  refererPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-nestjs-core",
3
- "version": "1.2.0-alpha.20261114090621",
3
+ "version": "1.2.0-alpha.20261114091433",
4
4
  "description": "FullStack Nestjs Core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,18 +39,18 @@
39
39
  "prepublishOnly": "npm run build"
40
40
  },
41
41
  "dependencies": {
42
- "@lark-apaas/cache-service": "0.1.9-alpha.20261114090617",
42
+ "@lark-apaas/cache-service": "^0.1.8",
43
43
  "@lark-apaas/file-service": "^0.1.2",
44
44
  "@lark-apaas/http-client": "^0.1.9",
45
- "@lark-apaas/nestjs-authnpaas": "1.0.11-alpha.20261114090613",
46
- "@lark-apaas/nestjs-authzpaas": "0.1.18-alpha.20261114090618",
47
- "@lark-apaas/nestjs-capability": "0.1.16-alpha.20261114090612",
48
- "@lark-apaas/nestjs-common": "0.1.11-alpha.20261114090608",
49
- "@lark-apaas/nestjs-datapaas": "1.0.30-alpha.20261114090607",
50
- "@lark-apaas/nestjs-http-forwarder": "0.1.6-alpha.20261114090623",
51
- "@lark-apaas/nestjs-logger": "1.0.25-alpha.20261114090615",
52
- "@lark-apaas/nestjs-mcp": "0.2.0-alpha.20261114090622",
53
- "@lark-apaas/nestjs-observable": "0.0.19-alpha.20261114090620",
45
+ "@lark-apaas/nestjs-authnpaas": "^1.0.10",
46
+ "@lark-apaas/nestjs-authzpaas": "^0.1.17",
47
+ "@lark-apaas/nestjs-capability": "^0.1.15",
48
+ "@lark-apaas/nestjs-common": "^0.1.10",
49
+ "@lark-apaas/nestjs-datapaas": "1.0.30-alpha.20261114091430",
50
+ "@lark-apaas/nestjs-http-forwarder": "^0.1.5",
51
+ "@lark-apaas/nestjs-logger": "^1.0.24",
52
+ "@lark-apaas/nestjs-mcp": "^0.1.3",
53
+ "@lark-apaas/nestjs-observable": "^0.0.18",
54
54
  "@lark-apaas/nestjs-openapi-devtools": "^1.0.10",
55
55
  "@lark-apaas/nestjs-trigger": "^0.0.3",
56
56
  "@nestjs/axios": "^4.0.1",