@globalfishingwatch/api-client
Advanced tools
Comparing version 1.3.2 to 1.4.0
# @globalfishingwatch/api-client | ||
## 1.4.0 | ||
### Minor Changes | ||
- 0712c3a: Expose refreshAPIToken in api-client | ||
## 1.3.2 | ||
### Patch Changes | ||
- fb27da7: Changeset first release |
@@ -23,2 +23,3 @@ import { UserData } from './types'; | ||
}; | ||
export declare type RequestStatus = 'idle' | 'refreshingToken' | 'logging' | 'downloading'; | ||
export declare class GFWAPI { | ||
@@ -36,2 +37,3 @@ debug: boolean; | ||
logging: Promise<UserData> | null; | ||
status: RequestStatus; | ||
constructor({ debug, baseUrl, tokenStorageKey, refreshTokenStorageKey, }?: { | ||
@@ -44,2 +46,3 @@ debug?: boolean | undefined; | ||
getBaseUrl(): string; | ||
getStatus(): RequestStatus; | ||
getLoginUrl(callbackUrl: string, client?: string): string; | ||
@@ -65,2 +68,3 @@ getConfig(): { | ||
}>; | ||
refreshAPIToken(): Promise<string | undefined>; | ||
fetch<T>(url: string, options?: FetchOptions): Promise<T>; | ||
@@ -67,0 +71,0 @@ download(downloadUrl: string, fileName?: string): Promise<boolean>; |
@@ -1,2 +0,2 @@ | ||
export{G as GFWAPI,b as USER_REFRESH_TOKEN_STORAGE_KEY,U as USER_TOKEN_STORAGE_KEY,a as default}from"./api-client-e711205b.js"; | ||
export{G as GFWAPI,b as USER_REFRESH_TOKEN_STORAGE_KEY,U as USER_TOKEN_STORAGE_KEY,a as default}from"./api-client-69a72fc8.js"; | ||
//# sourceMappingURL=api-client.js.map |
@@ -1,2 +0,2 @@ | ||
export{A as ACCESS_TOKEN_STRING,b as USER_REFRESH_TOKEN_STORAGE_KEY,U as USER_TOKEN_STORAGE_KEY,a as default,g as getAccessTokenFromUrl,r as removeAccessTokenFromUrl}from"./api-client-e711205b.js"; | ||
export{A as ACCESS_TOKEN_STRING,b as USER_REFRESH_TOKEN_STORAGE_KEY,U as USER_TOKEN_STORAGE_KEY,a as default,g as getAccessTokenFromUrl,r as removeAccessTokenFromUrl}from"./api-client-69a72fc8.js"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@globalfishingwatch/api-client", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "", | ||
@@ -37,3 +37,3 @@ "author": "satellitestudio <contact@satellitestud.io>", | ||
}, | ||
"gitHead": "43ce66995f742127da6b32d5e769ee15b2980232" | ||
"gitHead": "0e635c784002c443468472b40fce7d49711935f2" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
346363
365
5