Bump common (#500)

* Bump common

* CHANGELOG

* Direct rxjs import
This commit is contained in:
Jaco
2021-07-07 10:26:09 +03:00
committed by GitHub
parent ad59098b70
commit 99ea536891
17 changed files with 350 additions and 138 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { BehaviorSubject } from '@polkadot/x-rxjs';
import { BehaviorSubject } from 'rxjs';
const subject = new BehaviorSubject(false);
@@ -5,7 +5,7 @@ import type { KeypairType } from '@polkadot/util-crypto/types';
import type { KeyringJson, KeyringStore } from '../types';
import type { AddressSubject, SingleAddress, SubjectInfo } from './types';
import { BehaviorSubject } from '@polkadot/x-rxjs';
import { BehaviorSubject } from 'rxjs';
import { createOptionItem } from '../options/item';
import { env } from './env';
+3 -4
View File
@@ -3,8 +3,7 @@
import type { SubjectInfo } from './types';
import { combineLatest } from '@polkadot/x-rxjs';
import { map } from '@polkadot/x-rxjs/operators';
import { combineLatest, map } from 'rxjs';
import { accounts } from './accounts';
import { addresses } from './addresses';
@@ -16,11 +15,11 @@ interface Result {
contracts: SubjectInfo;
}
export const obervableAll = combineLatest(
export const obervableAll = combineLatest([
accounts.subject,
addresses.subject,
contracts.subject
).pipe(
]).pipe(
map(([accounts, addresses, contracts]): Result => ({
accounts,
addresses,
+1 -1
View File
@@ -1,8 +1,8 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BehaviorSubject } from 'rxjs';
import type { KeypairType } from '@polkadot/util-crypto/types';
import type { BehaviorSubject } from '@polkadot/x-rxjs';
import type { KeyringSectionOption } from '../options/types';
import type { KeyringJson, KeyringStore } from '../types';
+2 -1
View File
@@ -5,8 +5,9 @@ import type { SingleAddress } from '../observable/types';
import type { KeyringStruct } from '../types';
import type { KeyringOptionInstance, KeyringOptions, KeyringSectionOption, KeyringSectionOptions } from './types';
import { BehaviorSubject } from 'rxjs';
import { assert } from '@polkadot/util';
import { BehaviorSubject } from '@polkadot/x-rxjs';
import { obervableAll } from '../observable';