@nocobase/plugin-api-doc 0.14.0-alpha.2 → 0.14.0-alpha.4

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.
@@ -1,12 +1,12 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.14.0-alpha.2",
2
+ "@nocobase/client": "0.14.0-alpha.4",
3
3
  "antd": "5.8.6",
4
4
  "react": "18.2.0",
5
5
  "@ant-design/icons": "5.1.4",
6
6
  "antd-style": "3.4.5",
7
7
  "react-i18next": "11.18.6",
8
- "@nocobase/actions": "0.14.0-alpha.2",
9
- "@nocobase/server": "0.14.0-alpha.2",
10
- "@nocobase/utils": "0.14.0-alpha.2",
11
- "@nocobase/database": "0.14.0-alpha.2"
8
+ "@nocobase/actions": "0.14.0-alpha.4",
9
+ "@nocobase/server": "0.14.0-alpha.4",
10
+ "@nocobase/utils": "0.14.0-alpha.4",
11
+ "@nocobase/database": "0.14.0-alpha.4"
12
12
  };
@@ -23,7 +23,6 @@ __export(loader_exports, {
23
23
  mergeObjects: () => mergeObjects
24
24
  });
25
25
  module.exports = __toCommonJS(loader_exports);
26
- var import_server = require("@nocobase/server");
27
26
  var import_utils = require("@nocobase/utils");
28
27
  var import_merge = require("./merge");
29
28
  const loadSwagger = (packageName) => {
@@ -52,7 +51,10 @@ const getPluginsSwagger = async (db, pluginNames) => {
52
51
  });
53
52
  const swaggers = {};
54
53
  for (const plugin of plugins) {
55
- const packageName = import_server.PluginManager.getPackageName(plugin.get("name"));
54
+ const packageName = plugin.get("packageName");
55
+ if (!packageName) {
56
+ continue;
57
+ }
56
58
  const res = loadSwagger(packageName);
57
59
  if (Object.keys(res).length) {
58
60
  swaggers[plugin.get("name")] = res;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-api-doc",
3
- "version": "0.14.0-alpha.2",
3
+ "version": "0.14.0-alpha.4",
4
4
  "displayName": "API documentation",
5
5
  "displayName.zh-CN": "API 文档",
6
6
  "description": "An OpenAPI documentation generator for NocoBase HTTP API",
@@ -21,5 +21,5 @@
21
21
  "url": "git+https://github.com/nocobase/nocobase.git",
22
22
  "directory": "packages/plugins/api-doc"
23
23
  },
24
- "gitHead": "ea841d4a1e8c37aa77b4fbae6a6a4937e2aa3c0a"
24
+ "gitHead": "e2aab7863bbdfd76afc7164272b275e868ac59c0"
25
25
  }