@certd/lib-server 1.39.10 → 1.39.11
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.
|
@@ -14,10 +14,10 @@ import { SysSettingsEntity } from '../entity/sys-settings.js';
|
|
|
14
14
|
import { SysInstallInfo, SysPrivateSettings, SysPublicSettings, SysSecret, SysSecretBackup } from './models.js';
|
|
15
15
|
import { getAllSslProviderDomains, setSslProviderReverseProxies } from '@certd/acme-client';
|
|
16
16
|
import { cache, logger, mergeUtils, setGlobalProxy } from '@certd/basic';
|
|
17
|
+
import { isPlus } from '@certd/plus-core';
|
|
17
18
|
import * as dns from 'node:dns';
|
|
18
19
|
import { BaseService, setAdminMode } from '../../../basic/index.js';
|
|
19
20
|
import { executorQueue } from '../../basic/service/executor-queue.js';
|
|
20
|
-
import { isComm, isPlus } from '@certd/plus-core';
|
|
21
21
|
const { merge } = mergeUtils;
|
|
22
22
|
let lastSaveEnvVars = {};
|
|
23
23
|
/**
|
|
@@ -113,11 +113,11 @@ let SysSettingsService = class SysSettingsService extends BaseService {
|
|
|
113
113
|
return await this.getSetting(SysPublicSettings);
|
|
114
114
|
}
|
|
115
115
|
async savePublicSettings(bean) {
|
|
116
|
-
if (isComm()) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
116
|
+
// if (isComm()) {
|
|
117
|
+
// if (bean.adminMode === 'enterprise') {
|
|
118
|
+
// throw new Error("商业版不支持使用企业管理模式")
|
|
119
|
+
// }
|
|
120
|
+
// }
|
|
121
121
|
await this.saveSetting(bean);
|
|
122
122
|
//让设置生效
|
|
123
123
|
await this.reloadPublicSettings();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certd/lib-server",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.11",
|
|
4
4
|
"description": "midway with flyway, sql upgrade way ",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "AGPL",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@certd/acme-client": "^1.39.
|
|
32
|
-
"@certd/basic": "^1.39.
|
|
33
|
-
"@certd/pipeline": "^1.39.
|
|
34
|
-
"@certd/plugin-lib": "^1.39.
|
|
35
|
-
"@certd/plus-core": "^1.39.
|
|
31
|
+
"@certd/acme-client": "^1.39.11",
|
|
32
|
+
"@certd/basic": "^1.39.11",
|
|
33
|
+
"@certd/pipeline": "^1.39.11",
|
|
34
|
+
"@certd/plugin-lib": "^1.39.11",
|
|
35
|
+
"@certd/plus-core": "^1.39.11",
|
|
36
36
|
"@midwayjs/cache": "3.14.0",
|
|
37
37
|
"@midwayjs/core": "3.20.11",
|
|
38
38
|
"@midwayjs/i18n": "3.20.13",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"typeorm": "^0.3.11",
|
|
65
65
|
"typescript": "^5.4.2"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "ec466dc818eace59825d8ae2ebbc9fc75a94a6b0"
|
|
68
68
|
}
|