Skip to content

Commit 588b738

Browse files
committed
Use Response instead of AxiosResponse
1 parent 0397544 commit 588b738

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

source/response.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import minimatch from "minimatch";
2-
import { AxiosResponse } from "axios";
32
import {
43
FileStat,
54
Response,
@@ -16,7 +15,7 @@ export function handleResponseCode(context: WebDAVClientContext, response: Respo
1615
`Invalid response: ${status} ${response.statusText}`
1716
) as WebDAVClientError;
1817
err.status = status;
19-
err.response = response as AxiosResponse;
18+
err.response = response;
2019
throw err;
2120
}
2221
return response;

source/types.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Stream from "stream";
2-
import { AxiosResponse } from "axios";
32

43
export type AuthHeader = string;
54

@@ -251,8 +250,8 @@ export interface WebDAVClientContext {
251250
}
252251

253252
export interface WebDAVClientError extends Error {
254-
response?: AxiosResponse;
255253
status?: number;
254+
response?: Response;
256255
}
257256

258257
export interface WebDAVClientOptions {

0 commit comments

Comments
 (0)