@nocobase/server 1.3.15-beta → 1.3.17-beta
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/lib/plugin-manager/options/resource.js +12 -12
- package/package.json +14 -14
|
@@ -41,8 +41,8 @@ __export(resource_exports, {
|
|
|
41
41
|
module.exports = __toCommonJS(resource_exports);
|
|
42
42
|
var import_utils = require("@nocobase/utils");
|
|
43
43
|
var import_fs = __toESM(require("fs"));
|
|
44
|
+
var import_fs_extra = __toESM(require("fs-extra"));
|
|
44
45
|
var import_path = __toESM(require("path"));
|
|
45
|
-
var import_clientStaticUtils = require("../clientStaticUtils");
|
|
46
46
|
var resource_default = {
|
|
47
47
|
name: "pm",
|
|
48
48
|
actions: {
|
|
@@ -157,19 +157,19 @@ var resource_default = {
|
|
|
157
157
|
enabled: true
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
const arr = [];
|
|
161
|
+
for (const item of items) {
|
|
162
|
+
const pkgPath = import_path.default.resolve(process.env.NODE_MODULES_PATH, item.packageName);
|
|
163
|
+
const r = await import_fs_extra.default.exists(pkgPath);
|
|
164
|
+
if (r) {
|
|
165
|
+
const url = `${process.env.APP_SERVER_BASE_URL}${process.env.PLUGIN_STATICS_PATH}${item.packageName}/${PLUGIN_CLIENT_ENTRY_FILE}?version=${item.version}`;
|
|
166
|
+
arr.push({
|
|
163
167
|
...item.toJSON(),
|
|
164
|
-
url
|
|
165
|
-
|
|
166
|
-
PLUGIN_CLIENT_ENTRY_FILE
|
|
167
|
-
)}?version=${item.version}`
|
|
168
|
-
};
|
|
169
|
-
} catch {
|
|
170
|
-
return false;
|
|
168
|
+
url
|
|
169
|
+
});
|
|
171
170
|
}
|
|
172
|
-
}
|
|
171
|
+
}
|
|
172
|
+
ctx.body = arr;
|
|
173
173
|
await next();
|
|
174
174
|
},
|
|
175
175
|
async get(ctx, next) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.17-beta",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"@koa/cors": "^3.1.0",
|
|
11
11
|
"@koa/multer": "^3.0.2",
|
|
12
12
|
"@koa/router": "^9.4.0",
|
|
13
|
-
"@nocobase/acl": "1.3.
|
|
14
|
-
"@nocobase/actions": "1.3.
|
|
15
|
-
"@nocobase/auth": "1.3.
|
|
16
|
-
"@nocobase/cache": "1.3.
|
|
17
|
-
"@nocobase/data-source-manager": "1.3.
|
|
18
|
-
"@nocobase/database": "1.3.
|
|
19
|
-
"@nocobase/evaluators": "1.3.
|
|
20
|
-
"@nocobase/logger": "1.3.
|
|
21
|
-
"@nocobase/resourcer": "1.3.
|
|
22
|
-
"@nocobase/sdk": "1.3.
|
|
23
|
-
"@nocobase/telemetry": "1.3.
|
|
24
|
-
"@nocobase/utils": "1.3.
|
|
13
|
+
"@nocobase/acl": "1.3.17-beta",
|
|
14
|
+
"@nocobase/actions": "1.3.17-beta",
|
|
15
|
+
"@nocobase/auth": "1.3.17-beta",
|
|
16
|
+
"@nocobase/cache": "1.3.17-beta",
|
|
17
|
+
"@nocobase/data-source-manager": "1.3.17-beta",
|
|
18
|
+
"@nocobase/database": "1.3.17-beta",
|
|
19
|
+
"@nocobase/evaluators": "1.3.17-beta",
|
|
20
|
+
"@nocobase/logger": "1.3.17-beta",
|
|
21
|
+
"@nocobase/resourcer": "1.3.17-beta",
|
|
22
|
+
"@nocobase/sdk": "1.3.17-beta",
|
|
23
|
+
"@nocobase/telemetry": "1.3.17-beta",
|
|
24
|
+
"@nocobase/utils": "1.3.17-beta",
|
|
25
25
|
"@types/decompress": "4.2.4",
|
|
26
26
|
"@types/ini": "^1.3.31",
|
|
27
27
|
"@types/koa-send": "^4.1.3",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@types/serve-handler": "^6.1.1",
|
|
55
55
|
"@types/ws": "^8.5.5"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "9c2f4d3b7b8d920f75a6c1514de047f36ec66ecc"
|
|
58
58
|
}
|