@tachybase/plugin-multi-app-share-collection 1.2.16-alpha.1 → 1.2.16-alpha.3
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 +6 -6
- package/dist/server/plugin.js +3 -3
- package/package.json +11 -11
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "1.2.16-alpha.
|
|
4
|
-
"@tachybase/module-multi-app": "1.2.16-alpha.
|
|
5
|
-
"@tachybase/schema": "1.2.16-alpha.
|
|
3
|
+
"@tachybase/client": "1.2.16-alpha.3",
|
|
4
|
+
"@tachybase/module-multi-app": "1.2.16-alpha.3",
|
|
5
|
+
"@tachybase/schema": "1.2.16-alpha.3",
|
|
6
6
|
"antd": "5.22.5",
|
|
7
|
-
"@tachybase/utils": "1.2.16-alpha.
|
|
7
|
+
"@tachybase/utils": "1.2.16-alpha.3",
|
|
8
8
|
"react-i18next": "15.2.0",
|
|
9
|
-
"@tachybase/database": "1.2.16-alpha.
|
|
10
|
-
"@tachybase/server": "1.2.16-alpha.
|
|
9
|
+
"@tachybase/database": "1.2.16-alpha.3",
|
|
10
|
+
"@tachybase/server": "1.2.16-alpha.3",
|
|
11
11
|
"lodash": "4.17.21"
|
|
12
12
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -97,7 +97,7 @@ class SubAppPlugin extends import_server.Plugin {
|
|
|
97
97
|
INSERT INTO ${subAppPluginsCollection.quotedTableName()} (${columnsInSql})
|
|
98
98
|
SELECT ${columnsInSql}
|
|
99
99
|
FROM ${mainAppPluginsCollection.quotedTableName()}
|
|
100
|
-
WHERE "name" not in ('multi-app
|
|
100
|
+
WHERE "name" not in ('multi-app', 'multi-app-share-collection');
|
|
101
101
|
`);
|
|
102
102
|
const sequenceNameSql = `SELECT pg_get_serial_sequence('"${subAppPluginsCollection.collectionSchema()}"."${subAppPluginsCollection.model.tableName}"', 'id')`;
|
|
103
103
|
const sequenceName = await subApp.db.sequelize.query(sequenceNameSql, { type: "SELECT" });
|
|
@@ -116,9 +116,9 @@ class MultiAppShareCollectionPlugin extends import_server.Plugin {
|
|
|
116
116
|
if (!this.db.inDialect("postgres")) {
|
|
117
117
|
throw new Error("multi-app-share-collection plugin only support postgres");
|
|
118
118
|
}
|
|
119
|
-
const plugin = this.pm.get("multi-app
|
|
119
|
+
const plugin = this.pm.get("multi-app");
|
|
120
120
|
if (!plugin.enabled) {
|
|
121
|
-
throw new Error(`${this.name} plugin need multi-app
|
|
121
|
+
throw new Error(`${this.name} plugin need multi-app plugin enabled`);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
async beforeLoad() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-multi-app-share-collection",
|
|
3
3
|
"displayName": "Multi-app share collection",
|
|
4
|
-
"version": "1.2.16-alpha.
|
|
4
|
+
"version": "1.2.16-alpha.3",
|
|
5
5
|
"description": "Multi-app share collection",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"System management"
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"react": "~18.3.1",
|
|
15
15
|
"react-i18next": "^15.2.0",
|
|
16
|
-
"@tachybase/schema": "1.2.16-alpha.
|
|
16
|
+
"@tachybase/schema": "1.2.16-alpha.3"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@tachybase/client": "1.2.16-alpha.
|
|
20
|
-
"@tachybase/database": "1.2.16-alpha.
|
|
21
|
-
"@tachybase/module-collection": "1.2.16-alpha.
|
|
22
|
-
"@tachybase/module-error-handler": "1.2.16-alpha.
|
|
23
|
-
"@tachybase/module-
|
|
24
|
-
"@tachybase/module-
|
|
25
|
-
"@tachybase/server": "1.2.16-alpha.
|
|
26
|
-
"@tachybase/
|
|
27
|
-
"@tachybase/
|
|
19
|
+
"@tachybase/client": "1.2.16-alpha.3",
|
|
20
|
+
"@tachybase/database": "1.2.16-alpha.3",
|
|
21
|
+
"@tachybase/module-collection": "1.2.16-alpha.3",
|
|
22
|
+
"@tachybase/module-error-handler": "1.2.16-alpha.3",
|
|
23
|
+
"@tachybase/module-multi-app": "1.2.16-alpha.3",
|
|
24
|
+
"@tachybase/module-user": "1.2.16-alpha.3",
|
|
25
|
+
"@tachybase/server": "1.2.16-alpha.3",
|
|
26
|
+
"@tachybase/test": "1.2.16-alpha.3",
|
|
27
|
+
"@tachybase/utils": "1.2.16-alpha.3"
|
|
28
28
|
},
|
|
29
29
|
"description.zh-CN": "多应用数据共享",
|
|
30
30
|
"displayName.zh-CN": "多应用数据共享",
|