monkey-front-core 0.0.310 → 0.0.312
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 +3 -10
- package/fesm2015/monkey-front-core.mjs +1 -8
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +1 -8
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +0 -1
- package/monkey-front-core-0.0.312.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.310.tgz +0 -0
|
@@ -3610,7 +3610,6 @@ class MonkeyEcxTokenStorageService {
|
|
|
3610
3610
|
constructor(monkeyecxConfigService, store) {
|
|
3611
3611
|
this.monkeyecxConfigService = monkeyecxConfigService;
|
|
3612
3612
|
this.store = store;
|
|
3613
|
-
this.config = null;
|
|
3614
3613
|
this.token = {
|
|
3615
3614
|
username: '',
|
|
3616
3615
|
program: '',
|
|
@@ -3631,9 +3630,6 @@ class MonkeyEcxTokenStorageService {
|
|
|
3631
3630
|
};
|
|
3632
3631
|
this.token$ = new BehaviorSubject(null);
|
|
3633
3632
|
this.me$ = new BehaviorSubject(null);
|
|
3634
|
-
this.monkeyecxConfigService.config().subscribe((_) => {
|
|
3635
|
-
this.config = _;
|
|
3636
|
-
});
|
|
3637
3633
|
}
|
|
3638
3634
|
setAllTokens(token) {
|
|
3639
3635
|
const { token$, store } = this;
|
|
@@ -3676,10 +3672,7 @@ class MonkeyEcxTokenStorageService {
|
|
|
3676
3672
|
}
|
|
3677
3673
|
console.log('6666');
|
|
3678
3674
|
const config = await monkeyecxConfigService.config()
|
|
3679
|
-
.pipe(
|
|
3680
|
-
return !!val && JSON.stringify(val) !== '{}';
|
|
3681
|
-
}))
|
|
3682
|
-
.toPromise();
|
|
3675
|
+
.pipe(take(1)).toPromise();
|
|
3683
3676
|
console.log('7777');
|
|
3684
3677
|
if (data && !data?.program && config?.program) {
|
|
3685
3678
|
data.program = config?.program?.token;
|