@nocobase/server 2.2.0-alpha.2 → 2.2.0-alpha.4
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.
|
@@ -49,6 +49,7 @@ export declare class AppSupervisor extends EventEmitter implements AsyncEmitter
|
|
|
49
49
|
private commandAdapterName;
|
|
50
50
|
private appDbCreator;
|
|
51
51
|
private appConditions;
|
|
52
|
+
private appSsoIssuer?;
|
|
52
53
|
appOptionsFactory: AppOptionsFactory;
|
|
53
54
|
private environmentHeartbeatInterval;
|
|
54
55
|
private environmentHeartbeatTimer;
|
|
@@ -81,6 +82,8 @@ export declare class AppSupervisor extends EventEmitter implements AsyncEmitter
|
|
|
81
82
|
registerAppDbCreator(condition: Predicate<AppDbCreatorOptions>, creator: AppDbCreator, priority?: number): void;
|
|
82
83
|
createDatabase(options: AppDbCreatorOptions): Promise<void>;
|
|
83
84
|
setAppOptionsFactory(factory: AppOptionsFactory): void;
|
|
85
|
+
setAppSsoIssuer(issuer?: string): void;
|
|
86
|
+
getAppSsoIssuer(): string;
|
|
84
87
|
bootstrapApp(appName: string): Promise<void>;
|
|
85
88
|
initApp({ appName, options }: {
|
|
86
89
|
appName: string;
|
|
@@ -70,6 +70,7 @@ const _AppSupervisor = class _AppSupervisor extends import_events.EventEmitter {
|
|
|
70
70
|
commandAdapterName;
|
|
71
71
|
appDbCreator = new import_condition_registry.ConditionalRegistry();
|
|
72
72
|
appConditions = /* @__PURE__ */ new Map();
|
|
73
|
+
appSsoIssuer;
|
|
73
74
|
appOptionsFactory = import_app_options_factory.appOptionsFactory;
|
|
74
75
|
environmentHeartbeatInterval = 2 * 60 * 1e3;
|
|
75
76
|
environmentHeartbeatTimer = null;
|
|
@@ -228,6 +229,13 @@ const _AppSupervisor = class _AppSupervisor extends import_events.EventEmitter {
|
|
|
228
229
|
setAppOptionsFactory(factory) {
|
|
229
230
|
this.appOptionsFactory = factory ?? import_app_options_factory.appOptionsFactory;
|
|
230
231
|
}
|
|
232
|
+
setAppSsoIssuer(issuer) {
|
|
233
|
+
const normalized = String(issuer || "").trim().replace(/\/+$/, "");
|
|
234
|
+
this.appSsoIssuer = normalized || void 0;
|
|
235
|
+
}
|
|
236
|
+
getAppSsoIssuer() {
|
|
237
|
+
return this.appSsoIssuer;
|
|
238
|
+
}
|
|
231
239
|
async bootstrapApp(appName) {
|
|
232
240
|
return this.processAdapter.bootstrapApp(appName);
|
|
233
241
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.4",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"@koa/cors": "^5.0.0",
|
|
11
11
|
"@koa/multer": "^3.1.0",
|
|
12
12
|
"@koa/router": "^13.1.0",
|
|
13
|
-
"@nocobase/acl": "2.2.0-alpha.
|
|
14
|
-
"@nocobase/actions": "2.2.0-alpha.
|
|
15
|
-
"@nocobase/ai": "2.2.0-alpha.
|
|
16
|
-
"@nocobase/auth": "2.2.0-alpha.
|
|
17
|
-
"@nocobase/cache": "2.2.0-alpha.
|
|
18
|
-
"@nocobase/data-source-manager": "2.2.0-alpha.
|
|
19
|
-
"@nocobase/database": "2.2.0-alpha.
|
|
20
|
-
"@nocobase/evaluators": "2.2.0-alpha.
|
|
21
|
-
"@nocobase/lock-manager": "2.2.0-alpha.
|
|
22
|
-
"@nocobase/logger": "2.2.0-alpha.
|
|
23
|
-
"@nocobase/resourcer": "2.2.0-alpha.
|
|
24
|
-
"@nocobase/sdk": "2.2.0-alpha.
|
|
25
|
-
"@nocobase/snowflake-id": "2.2.0-alpha.
|
|
26
|
-
"@nocobase/telemetry": "2.2.0-alpha.
|
|
27
|
-
"@nocobase/utils": "2.2.0-alpha.
|
|
13
|
+
"@nocobase/acl": "2.2.0-alpha.4",
|
|
14
|
+
"@nocobase/actions": "2.2.0-alpha.4",
|
|
15
|
+
"@nocobase/ai": "2.2.0-alpha.4",
|
|
16
|
+
"@nocobase/auth": "2.2.0-alpha.4",
|
|
17
|
+
"@nocobase/cache": "2.2.0-alpha.4",
|
|
18
|
+
"@nocobase/data-source-manager": "2.2.0-alpha.4",
|
|
19
|
+
"@nocobase/database": "2.2.0-alpha.4",
|
|
20
|
+
"@nocobase/evaluators": "2.2.0-alpha.4",
|
|
21
|
+
"@nocobase/lock-manager": "2.2.0-alpha.4",
|
|
22
|
+
"@nocobase/logger": "2.2.0-alpha.4",
|
|
23
|
+
"@nocobase/resourcer": "2.2.0-alpha.4",
|
|
24
|
+
"@nocobase/sdk": "2.2.0-alpha.4",
|
|
25
|
+
"@nocobase/snowflake-id": "2.2.0-alpha.4",
|
|
26
|
+
"@nocobase/telemetry": "2.2.0-alpha.4",
|
|
27
|
+
"@nocobase/utils": "2.2.0-alpha.4",
|
|
28
28
|
"@types/decompress": "4.2.7",
|
|
29
29
|
"@types/ini": "^1.3.31",
|
|
30
30
|
"@types/koa-send": "^4.1.3",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@types/serve-handler": "^6.1.1",
|
|
62
62
|
"@types/ws": "^8.5.5"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "81bf8733db4bccf08a6bc5e6d97f274bce349161"
|
|
65
65
|
}
|