@nocobase/server 2.2.0-beta.5 → 2.2.0-beta.6
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.
|
@@ -351,7 +351,7 @@ var resource_default = {
|
|
|
351
351
|
await next();
|
|
352
352
|
},
|
|
353
353
|
async list(ctx, next) {
|
|
354
|
-
const { mode } = ctx.action.params;
|
|
354
|
+
const { mode, v2 } = ctx.action.params;
|
|
355
355
|
if (mode === "summary") {
|
|
356
356
|
ctx.body = await (0, import_utils2.pmListSummary)(ctx.app);
|
|
357
357
|
return next();
|
|
@@ -359,7 +359,18 @@ var resource_default = {
|
|
|
359
359
|
const locale = ctx.getCurrentLocale();
|
|
360
360
|
const pm = ctx.app.pm;
|
|
361
361
|
const plugin = pm.get("nocobase");
|
|
362
|
-
|
|
362
|
+
const plugins = await plugin.getAllPlugins(locale);
|
|
363
|
+
ctx.body = plugins.filter((item) => {
|
|
364
|
+
var _a;
|
|
365
|
+
if (process.env.NOCOBASE_SHOW_DEPRECATED_PLUGINS === "true") {
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
if (!v2) {
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
const nocobaseConfig = ((_a = item == null ? void 0 : item.packageJson) == null ? void 0 : _a.nocobase) || {};
|
|
372
|
+
return nocobaseConfig.internal !== true && nocobaseConfig.deprecated !== true;
|
|
373
|
+
});
|
|
363
374
|
await next();
|
|
364
375
|
},
|
|
365
376
|
async listEnabled(ctx, next) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.2.0-beta.
|
|
3
|
+
"version": "2.2.0-beta.6",
|
|
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-beta.
|
|
14
|
-
"@nocobase/actions": "2.2.0-beta.
|
|
15
|
-
"@nocobase/ai": "2.2.0-beta.
|
|
16
|
-
"@nocobase/auth": "2.2.0-beta.
|
|
17
|
-
"@nocobase/cache": "2.2.0-beta.
|
|
18
|
-
"@nocobase/data-source-manager": "2.2.0-beta.
|
|
19
|
-
"@nocobase/database": "2.2.0-beta.
|
|
20
|
-
"@nocobase/evaluators": "2.2.0-beta.
|
|
21
|
-
"@nocobase/lock-manager": "2.2.0-beta.
|
|
22
|
-
"@nocobase/logger": "2.2.0-beta.
|
|
23
|
-
"@nocobase/resourcer": "2.2.0-beta.
|
|
24
|
-
"@nocobase/sdk": "2.2.0-beta.
|
|
25
|
-
"@nocobase/snowflake-id": "2.2.0-beta.
|
|
26
|
-
"@nocobase/telemetry": "2.2.0-beta.
|
|
27
|
-
"@nocobase/utils": "2.2.0-beta.
|
|
13
|
+
"@nocobase/acl": "2.2.0-beta.6",
|
|
14
|
+
"@nocobase/actions": "2.2.0-beta.6",
|
|
15
|
+
"@nocobase/ai": "2.2.0-beta.6",
|
|
16
|
+
"@nocobase/auth": "2.2.0-beta.6",
|
|
17
|
+
"@nocobase/cache": "2.2.0-beta.6",
|
|
18
|
+
"@nocobase/data-source-manager": "2.2.0-beta.6",
|
|
19
|
+
"@nocobase/database": "2.2.0-beta.6",
|
|
20
|
+
"@nocobase/evaluators": "2.2.0-beta.6",
|
|
21
|
+
"@nocobase/lock-manager": "2.2.0-beta.6",
|
|
22
|
+
"@nocobase/logger": "2.2.0-beta.6",
|
|
23
|
+
"@nocobase/resourcer": "2.2.0-beta.6",
|
|
24
|
+
"@nocobase/sdk": "2.2.0-beta.6",
|
|
25
|
+
"@nocobase/snowflake-id": "2.2.0-beta.6",
|
|
26
|
+
"@nocobase/telemetry": "2.2.0-beta.6",
|
|
27
|
+
"@nocobase/utils": "2.2.0-beta.6",
|
|
28
28
|
"@types/decompress": "4.2.7",
|
|
29
29
|
"@types/ini": "^1.3.31",
|
|
30
30
|
"@types/koa-send": "^4.1.3",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"koa-send": "^5.0.1",
|
|
48
48
|
"koa-static": "^5.0.0",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
|
-
"multer": "^1.
|
|
50
|
+
"multer": "^2.1.1",
|
|
51
51
|
"nanoid": "^3.3.11",
|
|
52
52
|
"p-queue": "^6.6.2",
|
|
53
53
|
"redis": "^5.10.0",
|
|
@@ -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": "dc9246516f8a3efd6056f22fe7b3bc947bd4575b"
|
|
65
65
|
}
|