@nocobase/plugin-data-source-main 1.4.0-alpha.20241105010837 → 1.4.0-alpha.20241105230315

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.
@@ -8,14 +8,14 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.4.0-alpha.20241105010837",
12
- "@nocobase/database": "1.4.0-alpha.20241105010837",
13
- "@nocobase/plugin-error-handler": "1.4.0-alpha.20241105010837",
14
- "@nocobase/server": "1.4.0-alpha.20241105010837",
11
+ "@nocobase/client": "1.4.0-alpha.20241105230315",
12
+ "@nocobase/database": "1.4.0-alpha.20241105230315",
13
+ "@nocobase/plugin-error-handler": "1.4.0-alpha.20241105230315",
14
+ "@nocobase/server": "1.4.0-alpha.20241105230315",
15
15
  "async-mutex": "0.3.2",
16
16
  "lodash": "4.17.21",
17
- "@nocobase/test": "1.4.0-alpha.20241105010837",
18
- "@nocobase/utils": "1.4.0-alpha.20241105010837",
17
+ "@nocobase/test": "1.4.0-alpha.20241105230315",
18
+ "@nocobase/utils": "1.4.0-alpha.20241105230315",
19
19
  "sequelize": "6.35.2",
20
20
  "dayjs": "1.11.10"
21
21
  };
@@ -265,7 +265,7 @@ class PluginDataSourceMainServer extends import_server.Plugin {
265
265
  });
266
266
  };
267
267
  this.app.on("beforeStart", loadCollections);
268
- this.app.resourcer.use(async (ctx, next) => {
268
+ this.app.resourceManager.use(async function pushUISchemaWhenUpdateCollectionField(ctx, next) {
269
269
  const { resourceName, actionName } = ctx.action;
270
270
  if (resourceName === "collections.fields" && actionName === "update") {
271
271
  const { updateAssociationValues = [] } = ctx.action.params;
@@ -336,7 +336,7 @@ class PluginDataSourceMainServer extends import_server.Plugin {
336
336
  };
337
337
  }
338
338
  );
339
- this.app.resourcer.use(async (ctx, next) => {
339
+ this.app.resourceManager.use(async function mergeReverseFieldWhenSaveCollectionField(ctx, next) {
340
340
  if (ctx.action.resourceName === "collections.fields" && ["create", "update"].includes(ctx.action.actionName)) {
341
341
  ctx.action.mergeParams({
342
342
  updateAssociationValues: ["reverseField"]
@@ -366,7 +366,7 @@ class PluginDataSourceMainServer extends import_server.Plugin {
366
366
  }
367
367
  }
368
368
  };
369
- this.app.resourcer.use(async (ctx, next) => {
369
+ this.app.resourceManager.use(async function handleFieldSourceMiddleware(ctx, next) {
370
370
  var _a, _b;
371
371
  await next();
372
372
  if (ctx.action.resourceName === "collections" && ctx.action.actionName == "list" && ((_a = ctx.action.params) == null ? void 0 : _a.paginate) == "false") {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "数据源:主数据库",
5
5
  "description": "NocoBase main database, supports relational databases such as PostgreSQL, MySQL, MariaDB and so on.",
6
6
  "description.zh-CN": "NocoBase 主数据库,支持 PostgreSQL、MySQL、MariaDB 等关系型数据库。",
7
- "version": "1.4.0-alpha.20241105010837",
7
+ "version": "1.4.0-alpha.20241105230315",
8
8
  "main": "./dist/server/index.js",
9
9
  "homepage": "https://docs.nocobase.com/handbook/data-source-main",
10
10
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/data-source-main",
@@ -22,7 +22,7 @@
22
22
  "@nocobase/test": "1.x",
23
23
  "@nocobase/utils": "1.x"
24
24
  },
25
- "gitHead": "bde4cf8662b0109cffeac2d578d685c5bc01d0ae",
25
+ "gitHead": "45a0f247ae2dab0d1c9d200cb8bfedae3fe49535",
26
26
  "keywords": [
27
27
  "Data sources"
28
28
  ]