Commit 5c6c5f8
authored
fix: restore error bubbling behavior from v1.0.0 (#1048)
- Replace FetchConfigurationError throwing with Promise-based error bubbling
- Add cookie handling to .then() chain for successful responses only
- Preserve v1.0.0 behavior where HTTP errors reach caller unchanged
- Fix authentication error handling regression from v1.0.1
Allows .catch((error) => error.data) pattern to work correctly again
for normal HTTP error responses like 401 authentication failures.1 parent 882c0cb commit 5c6c5f8
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
57 | 56 | | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments