@4lch4/axios-aid
Advanced tools
Comparing version 1.5.0 to 1.5.1
import { AxiosBasicCredentials } from 'axios'; | ||
export declare class AxiosAid { | ||
private client; | ||
readonly headers?: Object; | ||
constructor(baseUrl: string, headers?: Object, auth?: AxiosBasicCredentials); | ||
readonly headers?: RequestHeaders; | ||
constructor(baseUrl: string, headers?: RequestHeaders, auth?: AxiosBasicCredentials); | ||
performRequest(method: RequestMethod, endpoint: string, payload?: RequestPayload, headers?: Object): Promise<import("axios").AxiosResponse<any>>; | ||
@@ -12,4 +12,7 @@ } | ||
} | ||
interface RequestHeaders { | ||
[key: string]: string; | ||
} | ||
declare type RequestMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'link' | 'LINK' | 'unlink' | 'UNLINK'; | ||
export default AxiosAid; | ||
export { AxiosBasicCredentials }; |
{ | ||
"name": "@4lch4/axios-aid", | ||
"displayName": "AxiosAid", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A lightweight wrapper around Axios for type data and ease of use.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4271
57