@fctc/interface-logic 1.5.9 → 1.6.0

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.
@@ -1,17 +1,3 @@
1
- declare const localStorageUtils: () => {
2
- setToken: (access_token: string) => Promise<void>;
3
- setRefreshToken: (refresh_token: string) => Promise<void>;
4
- getAccessToken: () => Promise<string | null>;
5
- getRefreshToken: () => Promise<string | null>;
6
- clearToken: () => Promise<void>;
7
- };
8
- type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
-
10
- declare const sessionStorageUtils: () => {
11
- getBrowserSession: () => Promise<string | null>;
12
- };
13
- type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
14
-
15
1
  declare global {
16
2
  interface Global {
17
3
  envStore?: EnvStore;
@@ -44,8 +30,8 @@ declare class EnvStore {
44
30
  }
45
31
  declare let env: EnvStore | null;
46
32
  declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
47
- localStorageUtils?: LocalStorageUtilsType;
48
- sessionStorageUtils?: SessionStorageUtilsType;
33
+ localStorageUtils?: any;
34
+ sessionStorageUtils?: any;
49
35
  }): EnvStore;
50
36
  declare function getEnv(): EnvStore;
51
37
 
@@ -1,17 +1,3 @@
1
- declare const localStorageUtils: () => {
2
- setToken: (access_token: string) => Promise<void>;
3
- setRefreshToken: (refresh_token: string) => Promise<void>;
4
- getAccessToken: () => Promise<string | null>;
5
- getRefreshToken: () => Promise<string | null>;
6
- clearToken: () => Promise<void>;
7
- };
8
- type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
-
10
- declare const sessionStorageUtils: () => {
11
- getBrowserSession: () => Promise<string | null>;
12
- };
13
- type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
14
-
15
1
  declare global {
16
2
  interface Global {
17
3
  envStore?: EnvStore;
@@ -44,8 +30,8 @@ declare class EnvStore {
44
30
  }
45
31
  declare let env: EnvStore | null;
46
32
  declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
47
- localStorageUtils?: LocalStorageUtilsType;
48
- sessionStorageUtils?: SessionStorageUtilsType;
33
+ localStorageUtils?: any;
34
+ sessionStorageUtils?: any;
49
35
  }): EnvStore;
50
36
  declare function getEnv(): EnvStore;
51
37
 
@@ -3026,6 +3026,7 @@ var EnvStore = class {
3026
3026
  this.user = env2?.user;
3027
3027
  this.db = env2?.db;
3028
3028
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3029
+ console.log("env from interface-logic", env2);
3029
3030
  }
3030
3031
  setupEnv(envConfig) {
3031
3032
  const dispatch = envStore.dispatch;
@@ -2987,6 +2987,7 @@ var EnvStore = class {
2987
2987
  this.user = env2?.user;
2988
2988
  this.db = env2?.db;
2989
2989
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
2990
+ console.log("env from interface-logic", env2);
2990
2991
  }
2991
2992
  setupEnv(envConfig) {
2992
2993
  const dispatch = envStore.dispatch;
package/dist/hooks.js CHANGED
@@ -3151,6 +3151,7 @@ var EnvStore = class {
3151
3151
  this.user = env2?.user;
3152
3152
  this.db = env2?.db;
3153
3153
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3154
+ console.log("env from interface-logic", env2);
3154
3155
  }
3155
3156
  setupEnv(envConfig) {
3156
3157
  const dispatch = envStore.dispatch;
package/dist/hooks.mjs CHANGED
@@ -3047,6 +3047,7 @@ var EnvStore = class {
3047
3047
  this.user = env2?.user;
3048
3048
  this.db = env2?.db;
3049
3049
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3050
+ console.log("env from interface-logic", env2);
3050
3051
  }
3051
3052
  setupEnv(envConfig) {
3052
3053
  const dispatch = envStore.dispatch;
package/dist/provider.js CHANGED
@@ -3062,6 +3062,7 @@ var EnvStore = class {
3062
3062
  this.user = env2?.user;
3063
3063
  this.db = env2?.db;
3064
3064
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3065
+ console.log("env from interface-logic", env2);
3065
3066
  }
3066
3067
  setupEnv(envConfig) {
3067
3068
  const dispatch = envStore.dispatch;
package/dist/provider.mjs CHANGED
@@ -3024,6 +3024,7 @@ var EnvStore = class {
3024
3024
  this.user = env2?.user;
3025
3025
  this.db = env2?.db;
3026
3026
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3027
+ console.log("env from interface-logic", env2);
3027
3028
  }
3028
3029
  setupEnv(envConfig) {
3029
3030
  const dispatch = envStore.dispatch;
package/dist/services.js CHANGED
@@ -3066,6 +3066,7 @@ var EnvStore = class {
3066
3066
  this.user = env2?.user;
3067
3067
  this.db = env2?.db;
3068
3068
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3069
+ console.log("env from interface-logic", env2);
3069
3070
  }
3070
3071
  setupEnv(envConfig) {
3071
3072
  const dispatch = envStore.dispatch;
package/dist/services.mjs CHANGED
@@ -3022,6 +3022,7 @@ var EnvStore = class {
3022
3022
  this.user = env2?.user;
3023
3023
  this.db = env2?.db;
3024
3024
  this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
3025
+ console.log("env from interface-logic", env2);
3025
3026
  }
3026
3027
  setupEnv(envConfig) {
3027
3028
  const dispatch = envStore.dispatch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.5.9",
3
+ "version": "1.6.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",