@nocobase/plugin-multi-app-share-collection 0.14.0-alpha.8 → 0.15.0-alpha.2

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
2
  "@formily/react": "2.2.27",
3
- "@nocobase/client": "0.14.0-alpha.8",
4
- "@nocobase/plugin-multi-app-manager": "0.14.0-alpha.8",
3
+ "@nocobase/client": "0.15.0-alpha.2",
4
+ "@nocobase/plugin-multi-app-manager": "0.15.0-alpha.2",
5
5
  "antd": "5.8.6",
6
6
  "react": "18.2.0",
7
- "@nocobase/utils": "0.14.0-alpha.8",
7
+ "@nocobase/utils": "0.15.0-alpha.2",
8
8
  "react-i18next": "11.18.6",
9
- "@nocobase/server": "0.14.0-alpha.8",
9
+ "@nocobase/server": "0.15.0-alpha.2",
10
10
  "lodash": "4.17.21",
11
- "@nocobase/database": "0.14.0-alpha.8"
11
+ "@nocobase/database": "0.15.0-alpha.2"
12
12
  };
@@ -211,7 +211,9 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
211
211
  this.app.db.on(`afterRemoveCollection`, (collection) => {
212
212
  const subApps = [...import_server.AppSupervisor.getInstance().subApps()];
213
213
  for (const subApp of subApps) {
214
- subApp.db.removeCollection(collection.name);
214
+ if (subApp.db.hasCollection(collection.name)) {
215
+ subApp.db.removeCollection(collection.name);
216
+ }
215
217
  }
216
218
  });
217
219
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "多应用数据表共享",
5
5
  "description": "",
6
6
  "description.zh-CN": "",
7
- "version": "0.14.0-alpha.8",
7
+ "version": "0.15.0-alpha.2",
8
8
  "main": "./dist/server/index.js",
9
9
  "devDependencies": {
10
10
  "@formily/react": "2.x",
@@ -23,5 +23,5 @@
23
23
  "@nocobase/test": "0.x",
24
24
  "@nocobase/utils": "0.x"
25
25
  },
26
- "gitHead": "59c82fef6e34707802b5841f5ec4d9b3b6b68abb"
26
+ "gitHead": "2504887cf82935200bf546b28adf2872cab3e452"
27
27
  }