monkey-front-core 0.0.378 → 0.0.380
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/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +6 -2
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +1 -7
- package/fesm2015/monkey-front-core.mjs +4 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +5 -7
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.380.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.378.tgz +0 -0
|
@@ -2456,9 +2456,6 @@ const seederReducer = (keys) => {
|
|
|
2456
2456
|
return (state, action) => {
|
|
2457
2457
|
const handledState = reducer(state, action);
|
|
2458
2458
|
if (action.type === INIT) {
|
|
2459
|
-
console.log('=============');
|
|
2460
|
-
console.log(handledState);
|
|
2461
|
-
console.log(action.type);
|
|
2462
2459
|
let data = null;
|
|
2463
2460
|
try {
|
|
2464
2461
|
const storage = localStorage.getItem('mecx-store');
|
|
@@ -2501,9 +2498,6 @@ const seederReducer = (keys) => {
|
|
|
2501
2498
|
catch (e) {
|
|
2502
2499
|
localStorage.removeItem('mecx-store');
|
|
2503
2500
|
}
|
|
2504
|
-
console.log('@@@@@@@@@@@@');
|
|
2505
|
-
console.log(handledState);
|
|
2506
|
-
console.log(action.type);
|
|
2507
2501
|
return handledState;
|
|
2508
2502
|
};
|
|
2509
2503
|
};
|
|
@@ -3643,8 +3637,12 @@ class MonkeyEcxTokenStorageService {
|
|
|
3643
3637
|
}
|
|
3644
3638
|
const config = await monkeyecxConfigService.config()
|
|
3645
3639
|
.pipe(take(1)).toPromise();
|
|
3640
|
+
const accessType = localStorage.getItem('accessType');
|
|
3641
|
+
const companyType = localStorage.getItem('companyType');
|
|
3646
3642
|
const handledData = {
|
|
3647
|
-
...data
|
|
3643
|
+
...data,
|
|
3644
|
+
accessType,
|
|
3645
|
+
companyType
|
|
3648
3646
|
};
|
|
3649
3647
|
if (!data?.program && config?.program) {
|
|
3650
3648
|
handledData.program = config?.program?.token;
|