@nocobase/plugin-multi-app-share-collection 1.3.0-alpha.20240807100243 → 1.3.0-alpha.20240814073548

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.
@@ -9,13 +9,13 @@
9
9
 
10
10
  module.exports = {
11
11
  "@formily/react": "2.3.0",
12
- "@nocobase/client": "1.3.0-alpha.20240807100243",
13
- "@nocobase/plugin-multi-app-manager": "1.3.0-alpha.20240807100243",
12
+ "@nocobase/client": "1.3.0-alpha.20240814073548",
13
+ "@nocobase/plugin-multi-app-manager": "1.3.0-alpha.20240814073548",
14
14
  "antd": "5.12.8",
15
15
  "react": "18.2.0",
16
- "@nocobase/utils": "1.3.0-alpha.20240807100243",
16
+ "@nocobase/utils": "1.3.0-alpha.20240814073548",
17
17
  "react-i18next": "11.18.6",
18
- "@nocobase/database": "1.3.0-alpha.20240807100243",
19
- "@nocobase/server": "1.3.0-alpha.20240807100243",
18
+ "@nocobase/database": "1.3.0-alpha.20240814073548",
19
+ "@nocobase/server": "1.3.0-alpha.20240814073548",
20
20
  "lodash": "4.17.21"
21
21
  };
@@ -38,8 +38,7 @@ class update_apps_collections_default extends import_server.Migration {
38
38
  if (!result) {
39
39
  return;
40
40
  }
41
- if (!this.app.db.getCollection("applications"))
42
- return;
41
+ if (!this.app.db.getCollection("applications")) return;
43
42
  await this.app.db.getCollection("collections").repository.destroy({
44
43
  where: {
45
44
  name: "applications"
@@ -186,8 +186,7 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
186
186
  this.app.on("afterEnablePlugin", (pluginNames) => {
187
187
  traverseSubApps((subApp) => {
188
188
  for (const pluginName of import_lodash.default.castArray(pluginNames)) {
189
- if (subAppFilteredPlugins.includes(pluginName))
190
- return;
189
+ if (subAppFilteredPlugins.includes(pluginName)) return;
191
190
  subApp.runAsCLI(["pm", "enable", pluginName], { from: "user" });
192
191
  }
193
192
  });
@@ -195,8 +194,7 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
195
194
  this.app.on("afterDisablePlugin", (pluginNames) => {
196
195
  traverseSubApps((subApp) => {
197
196
  for (const pluginName of import_lodash.default.castArray(pluginNames)) {
198
- if (subAppFilteredPlugins.includes(pluginName))
199
- return;
197
+ if (subAppFilteredPlugins.includes(pluginName)) return;
200
198
  subApp.runAsCLI(["pm", "disable", pluginName], { from: "user" });
201
199
  }
202
200
  });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "多应用数据表共享",
5
5
  "description": "",
6
6
  "description.zh-CN": "",
7
- "version": "1.3.0-alpha.20240807100243",
7
+ "version": "1.3.0-alpha.20240814073548",
8
8
  "main": "./dist/server/index.js",
9
9
  "devDependencies": {
10
10
  "@formily/react": "2.x",
@@ -23,7 +23,7 @@
23
23
  "@nocobase/test": "1.x",
24
24
  "@nocobase/utils": "1.x"
25
25
  },
26
- "gitHead": "540c3fe4cfb7c20de0e6639f935a98b736d7b754",
26
+ "gitHead": "cb195a2da766088e2a368f60ee2e933579d0987c",
27
27
  "keywords": [
28
28
  "System management"
29
29
  ]