@nocobase/plugin-multi-app-share-collection 0.14.0-alpha.8 → 0.15.0-alpha.1
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/dist/externalVersion.js +5 -5
- package/dist/server/plugin.js +3 -1
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"@formily/react": "2.2.27",
|
|
3
|
-
"@nocobase/client": "0.
|
|
4
|
-
"@nocobase/plugin-multi-app-manager": "0.
|
|
3
|
+
"@nocobase/client": "0.15.0-alpha.1",
|
|
4
|
+
"@nocobase/plugin-multi-app-manager": "0.15.0-alpha.1",
|
|
5
5
|
"antd": "5.8.6",
|
|
6
6
|
"react": "18.2.0",
|
|
7
|
-
"@nocobase/utils": "0.
|
|
7
|
+
"@nocobase/utils": "0.15.0-alpha.1",
|
|
8
8
|
"react-i18next": "11.18.6",
|
|
9
|
-
"@nocobase/server": "0.
|
|
9
|
+
"@nocobase/server": "0.15.0-alpha.1",
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
|
-
"@nocobase/database": "0.
|
|
11
|
+
"@nocobase/database": "0.15.0-alpha.1"
|
|
12
12
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -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.
|
|
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.
|
|
7
|
+
"version": "0.15.0-alpha.1",
|
|
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": "
|
|
26
|
+
"gitHead": "8bbeab858a818fbe0a1f954ecf1f61337d06c065"
|
|
27
27
|
}
|