Skip to content

Commit cfecdda

Browse files
migration from axios to fetch (#394)
* eslint improvements * #388: removing ~ from dist folder * v5.2.1 * migration from axios to fetch * migration to fetch * incremental fixes * incremental fixes * incremental improvements * incremental improvements * test fixes * few todos fixed * few todos fixed
1 parent ebb1265 commit cfecdda

File tree

274 files changed

+5064
-8356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+5064
-8356
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const client = new Version3Client({
125125

126126
Errors are categorized as:
127127
- `HttpException`: Server responded with an error (includes parsed error details)
128-
- `AxiosError`: Network/configuration issues (e.g., timeouts)
128+
- `Error`: Network/configuration issues (e.g., timeouts)
129129

130130
**Example handling:**
131131

@@ -136,7 +136,7 @@ try {
136136
if (error instanceof HttpException) {
137137
console.error('Server error:', error.message);
138138
console.debug('Response headers:', error.cause.response?.headers);
139-
} else if (error instanceof AxiosError) {
139+
} else if (error instanceof Error) {
140140
console.error('Network error:', error.code);
141141
} else {
142142
console.error('Unexpected error:', error);

examples/.editorconfig

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/.gitignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/README.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)