@lark-apaas/fullstack-nestjs-core 1.1.9-alpha.1 → 1.1.10-alpha.0
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 +4 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -5
- package/package.json +3 -4
package/dist/index.cjs
CHANGED
|
@@ -54,7 +54,6 @@ var import_nestjs_logger2 = require("@lark-apaas/nestjs-logger");
|
|
|
54
54
|
var import_nestjs_datapaas = require("@lark-apaas/nestjs-datapaas");
|
|
55
55
|
var import_nestjs_authnpaas = require("@lark-apaas/nestjs-authnpaas");
|
|
56
56
|
var import_nestjs_trigger = require("@lark-apaas/nestjs-trigger");
|
|
57
|
-
var import_nestjs_integration = require("@lark-apaas/nestjs-integration");
|
|
58
57
|
var import_nestjs_common4 = require("@lark-apaas/nestjs-common");
|
|
59
58
|
|
|
60
59
|
// src/middlewares/user-context/index.ts
|
|
@@ -102,7 +101,8 @@ var UserContextMiddleware = class {
|
|
|
102
101
|
env: webUser?.env ?? "runtime",
|
|
103
102
|
userName: webUser?.user_name?.zh_cn ?? "",
|
|
104
103
|
userNameEn: webUser?.user_name?.en_us ?? "",
|
|
105
|
-
userNameI18n: webUser?.user_name ?? {}
|
|
104
|
+
userNameI18n: webUser?.user_name ?? {},
|
|
105
|
+
isSystemAccount: webUser?.is_system_account ?? false
|
|
106
106
|
};
|
|
107
107
|
next();
|
|
108
108
|
}
|
|
@@ -779,8 +779,7 @@ var PlatformModule = class _PlatformModule {
|
|
|
779
779
|
}, "useFactory")
|
|
780
780
|
}),
|
|
781
781
|
import_nestjs_authnpaas.AuthNPaasModule.forRoot(),
|
|
782
|
-
import_nestjs_trigger.AutomationModule.forRoot()
|
|
783
|
-
import_nestjs_integration.IntegrationModule.forRoot()
|
|
782
|
+
import_nestjs_trigger.AutomationModule.forRoot()
|
|
784
783
|
],
|
|
785
784
|
providers: [
|
|
786
785
|
{
|
|
@@ -870,6 +869,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
870
869
|
console.error("[OpenAPI] OpenAPI \u751F\u6210\u5931\u8D25:", err);
|
|
871
870
|
}
|
|
872
871
|
}
|
|
872
|
+
console.log("App Started Successfully.");
|
|
873
873
|
}
|
|
874
874
|
__name(configureApp, "configureApp");
|
|
875
875
|
|
|
@@ -877,7 +877,6 @@ __name(configureApp, "configureApp");
|
|
|
877
877
|
var import_nestjs_openapi_devtools2 = require("@lark-apaas/nestjs-openapi-devtools");
|
|
878
878
|
__reExport(index_exports, require("@lark-apaas/nestjs-authnpaas"), module.exports);
|
|
879
879
|
__reExport(index_exports, require("@lark-apaas/nestjs-datapaas"), module.exports);
|
|
880
|
-
__reExport(index_exports, require("@lark-apaas/nestjs-integration"), module.exports);
|
|
881
880
|
__reExport(index_exports, require("@lark-apaas/nestjs-observable"), module.exports);
|
|
882
881
|
__reExport(index_exports, require("@lark-apaas/nestjs-trigger"), module.exports);
|
|
883
882
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -892,7 +891,6 @@ __reExport(index_exports, require("@lark-apaas/nestjs-trigger"), module.exports)
|
|
|
892
891
|
configureApp,
|
|
893
892
|
...require("@lark-apaas/nestjs-authnpaas"),
|
|
894
893
|
...require("@lark-apaas/nestjs-datapaas"),
|
|
895
|
-
...require("@lark-apaas/nestjs-integration"),
|
|
896
894
|
...require("@lark-apaas/nestjs-observable"),
|
|
897
895
|
...require("@lark-apaas/nestjs-trigger")
|
|
898
896
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,6 @@ import { Request, Response, NextFunction } from 'express';
|
|
|
6
6
|
import { PlatformHttpClient } from '@lark-apaas/nestjs-common';
|
|
7
7
|
export * from '@lark-apaas/nestjs-authnpaas';
|
|
8
8
|
export * from '@lark-apaas/nestjs-datapaas';
|
|
9
|
-
export * from '@lark-apaas/nestjs-integration';
|
|
10
9
|
export * from '@lark-apaas/nestjs-observable';
|
|
11
10
|
export * from '@lark-apaas/nestjs-trigger';
|
|
12
11
|
|
|
@@ -29,6 +28,7 @@ declare global {
|
|
|
29
28
|
userName?: string; // 默认中文名
|
|
30
29
|
userNameEn?: string; // 冗余一份英文名
|
|
31
30
|
userNameI18n?: Record<string, string>; // 带多语的用户名
|
|
31
|
+
isSystemAccount?: boolean; // trigger 场景写入值为 true,user 访问场景不写入
|
|
32
32
|
},
|
|
33
33
|
csrfToken?: string;
|
|
34
34
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { Request, Response, NextFunction } from 'express';
|
|
|
6
6
|
import { PlatformHttpClient } from '@lark-apaas/nestjs-common';
|
|
7
7
|
export * from '@lark-apaas/nestjs-authnpaas';
|
|
8
8
|
export * from '@lark-apaas/nestjs-datapaas';
|
|
9
|
-
export * from '@lark-apaas/nestjs-integration';
|
|
10
9
|
export * from '@lark-apaas/nestjs-observable';
|
|
11
10
|
export * from '@lark-apaas/nestjs-trigger';
|
|
12
11
|
|
|
@@ -29,6 +28,7 @@ declare global {
|
|
|
29
28
|
userName?: string; // 默认中文名
|
|
30
29
|
userNameEn?: string; // 冗余一份英文名
|
|
31
30
|
userNameI18n?: Record<string, string>; // 带多语的用户名
|
|
31
|
+
isSystemAccount?: boolean; // trigger 场景写入值为 true,user 访问场景不写入
|
|
32
32
|
},
|
|
33
33
|
csrfToken?: string;
|
|
34
34
|
}
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,6 @@ import { LoggerModule, AppLogger as AppLogger2, LoggerContextMiddleware } from "
|
|
|
12
12
|
import { DataPaasModule, SqlExecutionContextMiddleware } from "@lark-apaas/nestjs-datapaas";
|
|
13
13
|
import { AuthNPaasModule } from "@lark-apaas/nestjs-authnpaas";
|
|
14
14
|
import { AutomationModule } from "@lark-apaas/nestjs-trigger";
|
|
15
|
-
import { IntegrationModule } from "@lark-apaas/nestjs-integration";
|
|
16
15
|
import { PLATFORM_HTTP_CLIENT as PLATFORM_HTTP_CLIENT2 } from "@lark-apaas/nestjs-common";
|
|
17
16
|
|
|
18
17
|
// src/middlewares/user-context/index.ts
|
|
@@ -60,7 +59,8 @@ var UserContextMiddleware = class {
|
|
|
60
59
|
env: webUser?.env ?? "runtime",
|
|
61
60
|
userName: webUser?.user_name?.zh_cn ?? "",
|
|
62
61
|
userNameEn: webUser?.user_name?.en_us ?? "",
|
|
63
|
-
userNameI18n: webUser?.user_name ?? {}
|
|
62
|
+
userNameI18n: webUser?.user_name ?? {},
|
|
63
|
+
isSystemAccount: webUser?.is_system_account ?? false
|
|
64
64
|
};
|
|
65
65
|
next();
|
|
66
66
|
}
|
|
@@ -737,8 +737,7 @@ var PlatformModule = class _PlatformModule {
|
|
|
737
737
|
}, "useFactory")
|
|
738
738
|
}),
|
|
739
739
|
AuthNPaasModule.forRoot(),
|
|
740
|
-
AutomationModule.forRoot()
|
|
741
|
-
IntegrationModule.forRoot()
|
|
740
|
+
AutomationModule.forRoot()
|
|
742
741
|
],
|
|
743
742
|
providers: [
|
|
744
743
|
{
|
|
@@ -828,6 +827,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
828
827
|
console.error("[OpenAPI] OpenAPI \u751F\u6210\u5931\u8D25:", err);
|
|
829
828
|
}
|
|
830
829
|
}
|
|
830
|
+
console.log("App Started Successfully.");
|
|
831
831
|
}
|
|
832
832
|
__name(configureApp, "configureApp");
|
|
833
833
|
|
|
@@ -835,7 +835,6 @@ __name(configureApp, "configureApp");
|
|
|
835
835
|
import { DevToolsModule, DevToolsV2Module as DevToolsV2Module2 } from "@lark-apaas/nestjs-openapi-devtools";
|
|
836
836
|
export * from "@lark-apaas/nestjs-authnpaas";
|
|
837
837
|
export * from "@lark-apaas/nestjs-datapaas";
|
|
838
|
-
export * from "@lark-apaas/nestjs-integration";
|
|
839
838
|
export * from "@lark-apaas/nestjs-observable";
|
|
840
839
|
export * from "@lark-apaas/nestjs-trigger";
|
|
841
840
|
export {
|
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.10-alpha.0",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,9 +42,8 @@
|
|
|
42
42
|
"@lark-apaas/http-client": "0.1.2",
|
|
43
43
|
"@lark-apaas/nestjs-authnpaas": "^1.0.2",
|
|
44
44
|
"@lark-apaas/nestjs-common": "^0.1.0",
|
|
45
|
-
"@lark-apaas/nestjs-datapaas": "^1.0.
|
|
46
|
-
"@lark-apaas/nestjs-
|
|
47
|
-
"@lark-apaas/nestjs-logger": "^1.0.3",
|
|
45
|
+
"@lark-apaas/nestjs-datapaas": "^1.0.6",
|
|
46
|
+
"@lark-apaas/nestjs-logger": "^1.0.4",
|
|
48
47
|
"@lark-apaas/nestjs-observable": "^0.0.1",
|
|
49
48
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.9",
|
|
50
49
|
"@lark-apaas/nestjs-trigger": "^0.0.1",
|