@nocobase/plugin-license 2.0.0-alpha.53 → 2.0.0-alpha.55
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/externalVersion.js
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "2.0.0-alpha.
|
|
12
|
+
"@nocobase/client": "2.0.0-alpha.55",
|
|
13
13
|
"antd": "5.24.2",
|
|
14
14
|
"ahooks": "3.7.8",
|
|
15
15
|
"@ant-design/icons": "5.6.1",
|
|
16
16
|
"@formily/react": "2.3.7",
|
|
17
|
-
"@nocobase/license-kit": "0.3.
|
|
17
|
+
"@nocobase/license-kit": "0.3.3",
|
|
18
18
|
"react-i18next": "11.18.6",
|
|
19
|
-
"@nocobase/server": "2.0.0-alpha.
|
|
19
|
+
"@nocobase/server": "2.0.0-alpha.55",
|
|
20
20
|
"lodash": "4.17.21",
|
|
21
21
|
"koa": "2.16.0",
|
|
22
22
|
"axios": "1.7.7",
|
|
23
|
-
"@nocobase/logger": "2.0.0-alpha.
|
|
23
|
+
"@nocobase/logger": "2.0.0-alpha.55"
|
|
24
24
|
};
|
|
@@ -11,6 +11,6 @@ import { KeyData } from './interface';
|
|
|
11
11
|
export declare function getClientDomain(ctx: any): string;
|
|
12
12
|
export declare function isDomainMatch(currentDomain: string, keyData: KeyData): boolean;
|
|
13
13
|
export declare function isEnvMatch(env: Env, keyData: KeyData): boolean;
|
|
14
|
-
export declare function isDbMatch(env:
|
|
14
|
+
export declare function isDbMatch(env: any, keyData: any): boolean;
|
|
15
15
|
export declare function isSysMatch(env: Env, keyData: KeyData): boolean;
|
|
16
16
|
export declare function getEnvOnce(): any;
|
package/dist/server/utils/env.js
CHANGED
|
@@ -93,7 +93,7 @@ function isDbMatch(env, keyData) {
|
|
|
93
93
|
const a = env == null ? void 0 : env.db;
|
|
94
94
|
const b = (_a = keyData == null ? void 0 : keyData.instanceData) == null ? void 0 : _a.db;
|
|
95
95
|
if (!a || !b) return false;
|
|
96
|
-
if (a.id && b.id) return a.id === b.id;
|
|
96
|
+
if ((a == null ? void 0 : a.id) && (b == null ? void 0 : b.id)) return a.id === b.id;
|
|
97
97
|
return (0, import_isEqual.default)((0, import_omit.default)(a, ["id"]), (0, import_omit.default)(b, ["id"]));
|
|
98
98
|
}
|
|
99
99
|
function isSysMatch(env, keyData) {
|
|
@@ -71,7 +71,7 @@ async function getLicenseValidate({ key, ctx }) {
|
|
|
71
71
|
plugins,
|
|
72
72
|
pluginsLicensed,
|
|
73
73
|
keyStatus,
|
|
74
|
-
licenseStatus: (_a = keyData == null ? void 0 : keyData.licenseKey) == null ? void 0 : _a.licenseStatus
|
|
74
|
+
licenseStatus: ((_a = keyData == null ? void 0 : keyData.licenseKey) == null ? void 0 : _a.licenseStatus) || "active"
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
// Annotate the CommonJS export names for ESM import in node:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-license",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.55",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"displayName": "License settings",
|
|
6
6
|
"displayName.ru-RU": "Настройки лицензии",
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
"description": "Instance ID and license key settings",
|
|
9
9
|
"description.ru-RU": "Настройка идентификатора экземпляра и ключа лицензии",
|
|
10
10
|
"description.zh-CN": "实例 ID 和授权密钥设置",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@nocobase/license-kit": "^0.3.2"
|
|
13
|
-
},
|
|
14
11
|
"peerDependencies": {
|
|
15
12
|
"@nocobase/client": "2.x",
|
|
16
13
|
"@nocobase/server": "2.x",
|
|
@@ -19,5 +16,5 @@
|
|
|
19
16
|
"scripts": {
|
|
20
17
|
"ts:env": "tsc -p tsconfig.env.json"
|
|
21
18
|
},
|
|
22
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "7e65ad6b6e4e76a51f82c69b04b563fbcc7e1c25"
|
|
23
20
|
}
|