@gofreego/tsutils 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,7 @@ declare class HttpClient {
|
|
|
41
41
|
constructor(config?: HttpClientConfig);
|
|
42
42
|
private buildURL;
|
|
43
43
|
private request;
|
|
44
|
+
setOnUnauthorized(handler: (error: HttpError) => void): void;
|
|
44
45
|
setDefaultHeader(key: string, value: string): void;
|
|
45
46
|
removeDefaultHeader(key: string): void;
|
|
46
47
|
getDefaultHeaders(): Record<string, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ declare class HttpClient {
|
|
|
41
41
|
constructor(config?: HttpClientConfig);
|
|
42
42
|
private buildURL;
|
|
43
43
|
private request;
|
|
44
|
+
setOnUnauthorized(handler: (error: HttpError) => void): void;
|
|
44
45
|
setDefaultHeader(key: string, value: string): void;
|
|
45
46
|
removeDefaultHeader(key: string): void;
|
|
46
47
|
getDefaultHeaders(): Record<string, string>;
|