@globalfishingwatch/api-client
Advanced tools
Comparing version 1.6.3 to 1.6.4
# @globalfishingwatch/api-client | ||
## 1.6.4 | ||
### Patch Changes | ||
- d3685955: support local requests | ||
- Updated dependencies [d3685955] | ||
- @globalfishingwatch/api-types@2.4.1 | ||
## 1.6.3 | ||
@@ -4,0 +12,0 @@ |
@@ -22,2 +22,3 @@ import { UserData, ResourceResponseType } from '@globalfishingwatch/api-types'; | ||
body?: T; | ||
local?: boolean; | ||
}; | ||
@@ -24,0 +25,0 @@ export declare type RequestStatus = 'idle' | 'refreshingToken' | 'logging' | 'downloading'; |
@@ -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-b7780e8d.js"; | ||
export{G as GFWAPI,b as USER_REFRESH_TOKEN_STORAGE_KEY,U as USER_TOKEN_STORAGE_KEY,a as default}from"./api-client-f52dc73d.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-b7780e8d.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-f52dc73d.js"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@globalfishingwatch/api-client", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "", | ||
@@ -31,3 +31,3 @@ "author": "satellitestudio <contact@satellitestud.io>", | ||
"dependencies": { | ||
"@globalfishingwatch/api-types": "^2.0.4", | ||
"@globalfishingwatch/api-types": "^2.4.1", | ||
"file-saver": "^2.0.2" | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
"gitHead": "4ce755ac8c658cb5991704665302bb616d289ac8" | ||
"gitHead": "b11cd47829672b546c925d4e0ae2c44efa63bd63" | ||
} |
@@ -133,2 +133,11 @@ # GFW API CLIENT | ||
### Use it locally | ||
Send `local:true` in the FetchOptions and ensure you have the following .env variables | ||
``` | ||
REACT_APP_LOCAL_API_USER_ID= | ||
REACT_APP_LOCAL_API_USER_TYPE= | ||
REACT_APP_LOCAL_API_USER_EMAIL= | ||
``` | ||
## FAQ | ||
@@ -135,0 +144,0 @@ |
Sorry, the diff of this file is not supported yet
56118
155
226