@nocobase/plugin-license 2.0.0-alpha.55 → 2.0.0-alpha.57
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.57",
|
|
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.5",
|
|
18
18
|
"react-i18next": "11.18.6",
|
|
19
|
-
"@nocobase/server": "2.0.0-alpha.
|
|
19
|
+
"@nocobase/server": "2.0.0-alpha.57",
|
|
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.57"
|
|
24
24
|
};
|
|
@@ -105,11 +105,12 @@ async function getPlugins({ keyData, ctx }) {
|
|
|
105
105
|
const list = (0, import_sortBy.default)(plugins, (plugin2) => [statusOrder[plugin2.status] ?? 999, plugin2.enabled ? 0 : 1, plugin2.name]);
|
|
106
106
|
licensedPlugins.forEach((p) => {
|
|
107
107
|
const plugin2 = plugins.find((plugin3) => plugin3.packageName === p.packageName);
|
|
108
|
-
if (!plugin2) {
|
|
108
|
+
if (p.updateExpirationDate && !plugin2) {
|
|
109
|
+
const isExpired = (0, import_key.isDateExpired)(p.updateExpirationDate);
|
|
109
110
|
list.push({
|
|
110
111
|
name: p.displayName || p.packageName,
|
|
111
112
|
packageName: p.packageName,
|
|
112
|
-
status: "licensed",
|
|
113
|
+
status: isExpired ? "expired" : "licensed",
|
|
113
114
|
expirationDate: p.updateExpirationDate,
|
|
114
115
|
enabled: false,
|
|
115
116
|
installed: false
|
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.57",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"displayName": "License settings",
|
|
6
6
|
"displayName.ru-RU": "Настройки лицензии",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"ts:env": "tsc -p tsconfig.env.json"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "b9ec8bc83fd86a9cadfc4fb2f87a4e015061b289"
|
|
20
20
|
}
|