@nocobase/plugin-error-handler 1.4.0-alpha → 1.4.0-alpha.0

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,9 +8,9 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.4.0-alpha",
11
+ "@nocobase/client": "1.4.0-alpha.0",
12
12
  "@formily/json-schema": "2.3.0",
13
- "@nocobase/database": "1.4.0-alpha",
14
- "@nocobase/server": "1.4.0-alpha",
13
+ "@nocobase/database": "1.4.0-alpha.0",
14
+ "@nocobase/server": "1.4.0-alpha.0",
15
15
  "lodash": "4.17.21"
16
16
  };
@@ -91,7 +91,7 @@ class PluginErrorHandlerServer extends import_server.Plugin {
91
91
  );
92
92
  }
93
93
  async load() {
94
- this.app.use(this.errorHandler.middleware(), { before: "cors", tag: "errorHandler" });
94
+ this.app.use(this.errorHandler.middleware(), { after: "i18n", tag: "errorHandler", before: "cors" });
95
95
  }
96
96
  }
97
97
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "错误处理器",
5
5
  "description": "Handling application errors and exceptions.",
6
6
  "description.zh-CN": "处理应用程序中的错误和异常。",
7
- "version": "1.4.0-alpha",
7
+ "version": "1.4.0-alpha.0",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "devDependencies": {
@@ -23,5 +23,5 @@
23
23
  "url": "git+https://github.com/nocobase/nocobase.git",
24
24
  "directory": "packages/plugin-error-handler"
25
25
  },
26
- "gitHead": "f097a2bddec152522b5645bd5d451f4c866d2060"
26
+ "gitHead": "8ffa7b54bbaf720c0c9857da4b19a99110dffc4b"
27
27
  }