danielbonifacio-sdk
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -5,2 +5,3 @@ import { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
protected static getData: typeof getData; | ||
static setBaseUrl(baseURL: string): void; | ||
static setRequestInterceptors(onFulfilled: (request: AxiosRequestConfig) => AxiosRequestConfig | Promise<AxiosRequestConfig>, onRejected?: (error: any) => any): void; | ||
@@ -7,0 +8,0 @@ static setResponseInterceptors(onFulfilled: (response: AxiosResponse) => AxiosResponse | Promise<AxiosResponse>, onRejected: (error: any) => any): void; |
@@ -13,2 +13,5 @@ "use strict"; | ||
} | ||
Service.setBaseUrl = function (baseURL) { | ||
this.Http.defaults.baseURL = baseURL; | ||
}; | ||
Service.setRequestInterceptors = function (onFulfilled, onRejected) { | ||
@@ -15,0 +18,0 @@ Http.interceptors.request.use(onFulfilled, onRejected); |
{ | ||
"name": "danielbonifacio-sdk", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
import { th } from "date-fns/locale"; | ||
import handleAxiosResponseError from "./utils/handleAxiosResponseError"; | ||
@@ -11,2 +12,6 @@ import handleAxiosResponseSuccess from "./utils/handleAxiosResponseSuccess"; | ||
public static setBaseUrl(baseURL: string) { | ||
this.Http.defaults.baseURL = baseURL; | ||
} | ||
public static setRequestInterceptors( | ||
@@ -13,0 +18,0 @@ onFulfilled: ( |
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
177694
4933