@nocobase/server 2.1.4 → 2.1.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.
|
@@ -302,12 +302,19 @@ var resource_default = {
|
|
|
302
302
|
if (!keys.length) {
|
|
303
303
|
ctx.throw(400, "plugin name invalid");
|
|
304
304
|
}
|
|
305
|
+
for (const key of keys) {
|
|
306
|
+
try {
|
|
307
|
+
(0, import_utils2.assertSafePluginPackageName)(key);
|
|
308
|
+
} catch (error) {
|
|
309
|
+
ctx.throw(400, "plugin name invalid");
|
|
310
|
+
}
|
|
311
|
+
}
|
|
305
312
|
const awaitResponse = coerceAwaitResponse(awaitResponseRaw);
|
|
306
313
|
const argv = ["pm", "enable", ...keys];
|
|
307
314
|
if (awaitResponse) {
|
|
308
315
|
await app.runAsCLI(argv, { from: "user", throwError: true });
|
|
309
316
|
} else {
|
|
310
|
-
|
|
317
|
+
app.runAsCLI(argv, { from: "user" }).catch((err) => {
|
|
311
318
|
app.log.error(err);
|
|
312
319
|
});
|
|
313
320
|
}
|
|
@@ -326,7 +333,7 @@ var resource_default = {
|
|
|
326
333
|
if (awaitResponse) {
|
|
327
334
|
await app.runAsCLI(argv, { from: "user", throwError: true });
|
|
328
335
|
} else {
|
|
329
|
-
|
|
336
|
+
app.runAsCLI(argv, { from: "user" }).catch((err) => {
|
|
330
337
|
app.log.error(err);
|
|
331
338
|
});
|
|
332
339
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.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.1.
|
|
14
|
-
"@nocobase/actions": "2.1.
|
|
15
|
-
"@nocobase/ai": "2.1.
|
|
16
|
-
"@nocobase/auth": "2.1.
|
|
17
|
-
"@nocobase/cache": "2.1.
|
|
18
|
-
"@nocobase/data-source-manager": "2.1.
|
|
19
|
-
"@nocobase/database": "2.1.
|
|
20
|
-
"@nocobase/evaluators": "2.1.
|
|
21
|
-
"@nocobase/lock-manager": "2.1.
|
|
22
|
-
"@nocobase/logger": "2.1.
|
|
23
|
-
"@nocobase/resourcer": "2.1.
|
|
24
|
-
"@nocobase/sdk": "2.1.
|
|
25
|
-
"@nocobase/snowflake-id": "2.1.
|
|
26
|
-
"@nocobase/telemetry": "2.1.
|
|
27
|
-
"@nocobase/utils": "2.1.
|
|
13
|
+
"@nocobase/acl": "2.1.6",
|
|
14
|
+
"@nocobase/actions": "2.1.6",
|
|
15
|
+
"@nocobase/ai": "2.1.6",
|
|
16
|
+
"@nocobase/auth": "2.1.6",
|
|
17
|
+
"@nocobase/cache": "2.1.6",
|
|
18
|
+
"@nocobase/data-source-manager": "2.1.6",
|
|
19
|
+
"@nocobase/database": "2.1.6",
|
|
20
|
+
"@nocobase/evaluators": "2.1.6",
|
|
21
|
+
"@nocobase/lock-manager": "2.1.6",
|
|
22
|
+
"@nocobase/logger": "2.1.6",
|
|
23
|
+
"@nocobase/resourcer": "2.1.6",
|
|
24
|
+
"@nocobase/sdk": "2.1.6",
|
|
25
|
+
"@nocobase/snowflake-id": "2.1.6",
|
|
26
|
+
"@nocobase/telemetry": "2.1.6",
|
|
27
|
+
"@nocobase/utils": "2.1.6",
|
|
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": "4312d6580cc01378d008072db8285803626dc435"
|
|
65
65
|
}
|