@nocobase/plugin-error-handler 0.9.2-alpha.2 → 0.9.2-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/lib/locale/en_US.d.ts +4 -4
- package/lib/locale/en_US.js +4 -4
- package/lib/locale/pt-BR.d.ts +4 -4
- package/lib/locale/pt-BR.js +4 -4
- package/package.json +3 -3
- package/src/locale/en_US.ts +4 -4
- package/src/locale/pt-BR.ts +4 -4
- package/src/server.ts +1 -1
package/lib/locale/en_US.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
'unique violation': string;
|
|
3
|
+
'notNull violation': string;
|
|
4
|
+
'Validation error': string;
|
|
5
|
+
'notNull Violation': string;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
package/lib/locale/en_US.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
'unique violation': '{{field}} must be unique',
|
|
9
|
+
'notNull violation': 'notNull violation',
|
|
10
|
+
'Validation error': '{{field}} validation error',
|
|
11
|
+
'notNull Violation': '{{field}} cannot be null'
|
|
12
12
|
};
|
|
13
13
|
exports.default = _default;
|
package/lib/locale/pt-BR.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
'unique violation': string;
|
|
3
|
+
'notNull violation': string;
|
|
4
|
+
'Validation error': string;
|
|
5
|
+
'notNull Violation': string;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
'unique violation': '{{field}} deve ser único',
|
|
9
|
+
'notNull violation': 'violação de não nulo',
|
|
10
|
+
'Validation error': 'erro de validação de {{field}}',
|
|
11
|
+
'notNull Violation': '{{field}} não pode ser nulo'
|
|
12
12
|
};
|
|
13
13
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-error-handler",
|
|
3
|
-
"version": "0.9.2-alpha.
|
|
3
|
+
"version": "0.9.2-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@formily/json-schema": "^2.0.15",
|
|
10
|
-
"@nocobase/server": "0.9.2-alpha.
|
|
10
|
+
"@nocobase/server": "0.9.2-alpha.3"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
15
15
|
"directory": "packages/plugin-error-handler"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "b6b5f9372202d942c97d2d90a4197e060db05124"
|
|
18
18
|
}
|
package/src/locale/en_US.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
'unique violation': '{{field}} must be unique',
|
|
3
|
+
'notNull violation': 'notNull violation',
|
|
4
|
+
'Validation error': '{{field}} validation error',
|
|
5
|
+
'notNull Violation': '{{field}} cannot be null',
|
|
6
6
|
};
|
package/src/locale/pt-BR.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
'unique violation': '{{field}} deve ser único',
|
|
3
|
+
'notNull violation': 'violação de não nulo',
|
|
4
|
+
'Validation error': 'erro de validação de {{field}}',
|
|
5
|
+
'notNull Violation': '{{field}} não pode ser nulo',
|
|
6
6
|
};
|
package/src/server.ts
CHANGED
|
@@ -8,7 +8,7 @@ import zhCN from './locale/zh_CN';
|
|
|
8
8
|
|
|
9
9
|
export class PluginErrorHandler extends Plugin {
|
|
10
10
|
errorHandler: ErrorHandler = new ErrorHandler();
|
|
11
|
-
i18nNs
|
|
11
|
+
i18nNs = 'error-handler';
|
|
12
12
|
|
|
13
13
|
beforeLoad() {
|
|
14
14
|
this.registerSequelizeValidationErrorHandler();
|