@vtex/faststore-plugin-buyer-portal 1.1.102 → 1.1.103
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 +1 -1
- package/src/features/org-units/clients/OrgUnitClient.ts +0 -1
- package/src/features/profile/layouts/ProfileLayout/profile-layout.scss +1 -0
- package/src/features/shared/clients/Client.ts +4 -19
- package/src/features/shared/components/Error/error.scss +3 -0
- package/src/features/shared/layouts/ErrorTabsLayout/error-tabs-layout.scss +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
getAuthFromCookie,
|
|
4
4
|
getCookieWithoutSessionObjects,
|
|
5
5
|
} from "../utils/cookie";
|
|
6
|
-
import { extractErrorMessage } from "../utils/extractErrorMessage";
|
|
7
6
|
|
|
8
7
|
interface RequestConfig<Input = unknown> {
|
|
9
8
|
url: string;
|
|
@@ -108,25 +107,11 @@ class Client {
|
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
if (!response.ok) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
response,
|
|
116
|
-
responseData,
|
|
117
|
-
{
|
|
118
|
-
url,
|
|
119
|
-
method,
|
|
120
|
-
data,
|
|
121
|
-
headers,
|
|
122
|
-
params,
|
|
123
|
-
ignoreContentType,
|
|
124
|
-
cache,
|
|
125
|
-
componentName,
|
|
126
|
-
}
|
|
110
|
+
console.error(`Request to ${url} failed:`, responseData);
|
|
111
|
+
console.error(response.status, response.statusText);
|
|
112
|
+
throw new Error(
|
|
113
|
+
responseData ? JSON.stringify(responseData) : "Request failed"
|
|
127
114
|
);
|
|
128
|
-
|
|
129
|
-
throw clientError;
|
|
130
115
|
}
|
|
131
116
|
|
|
132
117
|
return responseData as Return;
|
|
@@ -55,17 +55,20 @@
|
|
|
55
55
|
font-size: var(--fs-text-size-2);
|
|
56
56
|
font-weight: var(--fs-text-weight-medium);
|
|
57
57
|
color: #e2e2e2;
|
|
58
|
+
text-wrap: wrap;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
[data-fs-bp-error-details-stack] {
|
|
61
62
|
font-size: var(--fs-text-size-2);
|
|
62
63
|
margin: var(--fs-spacing-4) 0;
|
|
63
64
|
font-weight: var(--fs-text-weight-medium);
|
|
65
|
+
text-wrap: wrap;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
[data-fs-bp-error-details-component] {
|
|
67
69
|
font-size: var(--fs-text-size-2);
|
|
68
70
|
font-weight: var(--fs-text-weight-medium);
|
|
71
|
+
text-wrap: wrap;
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "../../components
|
|
1
|
+
@import "../../components/Error/error.scss";
|