Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@globalfishingwatch/api-client

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalfishingwatch/api-client - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

dist/api-client-69a72fc8.js

7

CHANGELOG.md
# @globalfishingwatch/api-client
## 1.4.0
### Minor Changes
- 0712c3a: Expose refreshAPIToken in api-client
## 1.3.2
### Patch Changes
- fb27da7: Changeset first release

4

dist/api-client.d.ts

@@ -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>;

2

dist/api-client.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc