@truedat/core 8.1.4 → 8.2.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@testing-library/jest-dom": "^6.6.3",
|
|
49
49
|
"@testing-library/react": "^16.3.0",
|
|
50
50
|
"@testing-library/user-event": "^14.6.1",
|
|
51
|
-
"@truedat/test": "8.
|
|
51
|
+
"@truedat/test": "8.2.0",
|
|
52
52
|
"identity-obj-proxy": "^3.0.0",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@apollo/client": "^3.13.8",
|
|
58
58
|
"@xyflow/react": "^12.6.4",
|
|
59
|
-
"axios": "^1.
|
|
59
|
+
"axios": "^1.13.5",
|
|
60
60
|
"elkjs": "^0.10.0",
|
|
61
61
|
"graphql": "^16.11.0",
|
|
62
62
|
"immutable": "^4.3.7",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"slate-react": "^0.22.10",
|
|
86
86
|
"swr": "^2.3.3"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "a0b6d89f64e82602a1f3c5e250691526fe0c558a"
|
|
89
89
|
}
|
|
@@ -130,8 +130,20 @@ const ErrorDetail = ({ response }) => {
|
|
|
130
130
|
details.implementation_key ?? details.item_key,
|
|
131
131
|
],
|
|
132
132
|
],
|
|
133
|
-
implementation_creation_error: (details) =>
|
|
134
|
-
details?.map(
|
|
133
|
+
implementation_creation_error: (details) => {
|
|
134
|
+
return details?.map(detail => {
|
|
135
|
+
if (_.isArray(detail)) {
|
|
136
|
+
const [field, [error]] = detail;
|
|
137
|
+
return [field, error]
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (_.isObject(detail)) {
|
|
141
|
+
return [detail.field, detail.message]
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return detail;
|
|
145
|
+
}) || []
|
|
146
|
+
},
|
|
135
147
|
duplicate_field_names: (details) => [
|
|
136
148
|
[
|
|
137
149
|
formatMessage({ id: `${messagePrefix}.duplicatedNames` }),
|