@8base/utils
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.5.0](https://github.com/8base/sdk/compare/v2.4.0...v2.5.0) (2021-08-23) | ||
### Features | ||
* add web native auth client ([7d61180](https://github.com/8base/sdk/commit/7d61180086bb8cb6adde65e0930f220a715b8a4f)) | ||
# [2.4.0](https://github.com/8base/sdk/compare/v2.3.0...v2.4.0) (2021-08-17) | ||
@@ -8,0 +19,0 @@ |
@@ -100,6 +100,5 @@ import { FIELD_TYPE, SWITCH_FORMATS, TEXT_FORMATS, NUMBER_FORMATS, FILE_FORMATS, DATE_FORMATS, MUTATION_TYPE, SMART_FORMATS, APP_STATUS, FIELD_KINDS, TABLE_ORIGIN_TYPES } from './constants'; | ||
}; | ||
export interface IAuthState { | ||
export declare type IAuthState<T extends Record<string, any> = Record<string, any>> = T & { | ||
token?: string; | ||
[additionalProperty: string]: any; | ||
} | ||
}; | ||
export interface IStorageOptions<T> { | ||
@@ -110,5 +109,5 @@ storage?: IStorage; | ||
} | ||
export interface IAuthClient { | ||
getState: () => IAuthState; | ||
setState: (state: IAuthState) => void; | ||
export interface IAuthClient<S extends IAuthState = IAuthState> { | ||
getState: () => S; | ||
setState: (state: S) => void; | ||
purgeState: () => void; | ||
@@ -115,0 +114,0 @@ checkIsAuthorized: () => boolean; |
{ | ||
"name": "@8base/utils", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"repository": "https://github.com/8base/sdk", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/8base/sdk/tree/master/packages/core/utils", |
@@ -127,6 +127,5 @@ import { | ||
export interface IAuthState { | ||
export type IAuthState<T extends Record<string, any> = Record<string, any>> = T & { | ||
token?: string; | ||
[additionalProperty: string]: any; | ||
} | ||
}; | ||
@@ -139,5 +138,5 @@ export interface IStorageOptions<T> { | ||
export interface IAuthClient { | ||
getState: () => IAuthState; | ||
setState: (state: IAuthState) => void; | ||
export interface IAuthClient<S extends IAuthState = IAuthState> { | ||
getState: () => S; | ||
setState: (state: S) => void; | ||
purgeState: () => void; | ||
@@ -144,0 +143,0 @@ checkIsAuthorized: () => boolean; |
Sorry, the diff of this file is not supported yet
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
330762
5298