Skip to content

Commit

Permalink
Use Response instead of AxiosResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
dpakach committed May 18, 2021
1 parent 0397544 commit 588b738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions source/response.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import minimatch from "minimatch";
import { AxiosResponse } from "axios";
import {
FileStat,
Response,
Expand All @@ -16,7 +15,7 @@ export function handleResponseCode(context: WebDAVClientContext, response: Respo
`Invalid response: ${status} ${response.statusText}`
) as WebDAVClientError;
err.status = status;
err.response = response as AxiosResponse;
err.response = response;
throw err;
}
return response;
Expand Down
3 changes: 1 addition & 2 deletions source/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Stream from "stream";
import { AxiosResponse } from "axios";

export type AuthHeader = string;

Expand Down Expand Up @@ -251,8 +250,8 @@ export interface WebDAVClientContext {
}

export interface WebDAVClientError extends Error {
response?: AxiosResponse;
status?: number;
response?: Response;
}

export interface WebDAVClientOptions {
Expand Down

0 comments on commit 588b738

Please sign in to comment.