@fctc/interface-logic 1.5.9 → 1.6.2
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.
- package/dist/environment.d.mts +2 -16
- package/dist/environment.d.ts +2 -16
- package/dist/environment.js +2771 -2760
- package/dist/environment.mjs +2771 -2760
- package/dist/hooks.js +2828 -2817
- package/dist/hooks.mjs +2828 -2817
- package/dist/provider.js +14 -3
- package/dist/provider.mjs +14 -3
- package/dist/services.js +2781 -2770
- package/dist/services.mjs +2781 -2770
- package/package.json +1 -1
package/dist/provider.js
CHANGED
|
@@ -3062,17 +3062,28 @@ 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;
|
|
3068
|
-
|
|
3069
|
+
let env2 = {
|
|
3069
3070
|
...envConfig,
|
|
3070
3071
|
localStorageUtils: this.localStorageUtils,
|
|
3071
3072
|
sessionStorageUtils: this.sessionStorageUtils
|
|
3072
3073
|
};
|
|
3073
3074
|
const requests = axiosClient.init(env2);
|
|
3074
|
-
|
|
3075
|
-
this.
|
|
3075
|
+
env2 = { ...env2, requests };
|
|
3076
|
+
this.baseUrl = env2?.baseUrl;
|
|
3077
|
+
this.requests = env2?.requests;
|
|
3078
|
+
this.context = env2?.context;
|
|
3079
|
+
this.defaultCompany = env2?.defaultCompany;
|
|
3080
|
+
this.config = env2?.config;
|
|
3081
|
+
this.companies = env2?.companies || [];
|
|
3082
|
+
this.user = env2?.user;
|
|
3083
|
+
this.db = env2?.db;
|
|
3084
|
+
this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
|
|
3085
|
+
console.log("env from interface-logic", env2);
|
|
3086
|
+
dispatch(setEnv(env2));
|
|
3076
3087
|
}
|
|
3077
3088
|
setUid(uid) {
|
|
3078
3089
|
const dispatch = envStore.dispatch;
|
package/dist/provider.mjs
CHANGED
|
@@ -3024,17 +3024,28 @@ 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;
|
|
3030
|
-
|
|
3031
|
+
let env2 = {
|
|
3031
3032
|
...envConfig,
|
|
3032
3033
|
localStorageUtils: this.localStorageUtils,
|
|
3033
3034
|
sessionStorageUtils: this.sessionStorageUtils
|
|
3034
3035
|
};
|
|
3035
3036
|
const requests = axiosClient.init(env2);
|
|
3036
|
-
|
|
3037
|
-
this.
|
|
3037
|
+
env2 = { ...env2, requests };
|
|
3038
|
+
this.baseUrl = env2?.baseUrl;
|
|
3039
|
+
this.requests = env2?.requests;
|
|
3040
|
+
this.context = env2?.context;
|
|
3041
|
+
this.defaultCompany = env2?.defaultCompany;
|
|
3042
|
+
this.config = env2?.config;
|
|
3043
|
+
this.companies = env2?.companies || [];
|
|
3044
|
+
this.user = env2?.user;
|
|
3045
|
+
this.db = env2?.db;
|
|
3046
|
+
this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
|
|
3047
|
+
console.log("env from interface-logic", env2);
|
|
3048
|
+
dispatch(setEnv(env2));
|
|
3038
3049
|
}
|
|
3039
3050
|
setUid(uid) {
|
|
3040
3051
|
const dispatch = envStore.dispatch;
|