diff --git a/packages/api-format/package.json b/packages/api-format/package.json index d117dc97b9..653eb9912c 100644 --- a/packages/api-format/package.json +++ b/packages/api-format/package.json @@ -35,9 +35,9 @@ }, "dependencies": { "@babel/runtime": "^7.0.0-beta.51", - "@polkadot/jsonrpc": "^0.27.10", - "@polkadot/primitives": "^0.27.10", - "@polkadot/util": "^0.27.10", - "@polkadot/util-keyring": "^0.27.10" + "@polkadot/jsonrpc": "^0.27.11", + "@polkadot/primitives": "^0.27.11", + "@polkadot/util": "^0.27.11", + "@polkadot/util-keyring": "^0.27.11" } } diff --git a/packages/api-provider/package.json b/packages/api-provider/package.json index 68d12494cb..22aa14c861 100644 --- a/packages/api-provider/package.json +++ b/packages/api-provider/package.json @@ -39,10 +39,10 @@ }, "dependencies": { "@babel/runtime": "^7.0.0-beta.51", - "@polkadot/storage": "^0.27.10", - "@polkadot/util": "^0.27.10", - "@polkadot/util-crypto": "^0.27.10", - "@polkadot/util-keyring": "^0.27.10", + "@polkadot/storage": "^0.27.11", + "@polkadot/util": "^0.27.11", + "@polkadot/util-crypto": "^0.27.11", + "@polkadot/util-keyring": "^0.27.11", "@types/nock": "^9.1.3", "eventemitter3": "^2.0.3", "isomorphic-fetch": "^2.2.1", diff --git a/packages/api-rx/src/observable/index.ts b/packages/api-rx/src/observable/index.ts index dc78c5f926..48ffcf030d 100644 --- a/packages/api-rx/src/observable/index.ts +++ b/packages/api-rx/src/observable/index.ts @@ -6,6 +6,8 @@ import { ApiInterface$Section } from '@polkadot/api/types'; import { BehaviorSubject, Observable, from } from 'rxjs'; import isFunction from '@polkadot/util/is/function'; +// import isNull from '@polkadot/util/is/null'; +// import isUndefined from '@polkadot/util/is/undefined'; import cached from './cached'; @@ -16,8 +18,17 @@ export default function observable (subName: string, name: string, section: ApiI return (...params: Array): Observable => from( - section[name].apply(null, params).catch(() => { - // swallow error - mostly storage failures, undefined as result - }) + section[name] + .apply(null, params) + .catch(() => { + // FIXME: swallow error - mostly storage failures, undefined as result. Once nodes + // rollout new versions, can display the error here again (and/or fail explicitly) + }) + // HACK The hammer approach if nothing else works + // .then((value: any) => + // isUndefined(value) || isNull(value) + // ? undefined + // : value + // ) ); } diff --git a/packages/api/package.json b/packages/api/package.json index c372430baa..c604771703 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -37,8 +37,8 @@ "@babel/runtime": "^7.0.0-beta.51", "@polkadot/api-format": "^0.15.7", "@polkadot/api-provider": "^0.15.7", - "@polkadot/jsonrpc": "^0.27.10", - "@polkadot/params": "^0.27.10", - "@polkadot/util": "^0.27.10" + "@polkadot/jsonrpc": "^0.27.11", + "@polkadot/params": "^0.27.11", + "@polkadot/util": "^0.27.11" } } diff --git a/yarn.lock b/yarn.lock index e55cca1819..d6bf7336a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -734,94 +734,94 @@ typedoc "^0.11.1" typescript "^2.9.2" -"@polkadot/extrinsics@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.27.10.tgz#63bc35938a41fc31dcb3a80d43273574a58a0d7c" +"@polkadot/extrinsics@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.27.11.tgz#77459b9866bcde9d54042e4de65c01c72a591ddd" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/params" "^0.27.10" - "@polkadot/primitives" "^0.27.10" - "@polkadot/util" "^0.27.10" + "@polkadot/params" "^0.27.11" + "@polkadot/primitives" "^0.27.11" + "@polkadot/util" "^0.27.11" -"@polkadot/jsonrpc@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.27.10.tgz#371f888a7fdfad341c3752d1485708728bfc9055" +"@polkadot/jsonrpc@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.27.11.tgz#96b1e9478787a0ffeb74394c15e4a6075e6517db" dependencies: - "@polkadot/params" "^0.27.10" + "@polkadot/params" "^0.27.11" babel-runtime "^6.26.0" -"@polkadot/params@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/params/-/params-0.27.10.tgz#05b3dae5cfc315a29b3d7359776259acc057848e" +"@polkadot/params@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/params/-/params-0.27.11.tgz#86433fa85633e6bd0b4ef9e2562fd66c8a4d82eb" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/extrinsics" "^0.27.10" - "@polkadot/primitives" "^0.27.10" - "@polkadot/util" "^0.27.10" + "@polkadot/extrinsics" "^0.27.11" + "@polkadot/primitives" "^0.27.11" + "@polkadot/util" "^0.27.11" -"@polkadot/primitives@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/primitives/-/primitives-0.27.10.tgz#fbf1efd5cdd6aae815c7f311cb9117a1a0815fc5" +"@polkadot/primitives@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/primitives/-/primitives-0.27.11.tgz#cd0fa675c294238adf83f4f453395cc33e98b464" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/trie-hash" "^0.27.10" - "@polkadot/util" "^0.27.10" + "@polkadot/trie-hash" "^0.27.11" + "@polkadot/util" "^0.27.11" -"@polkadot/storage@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.27.10.tgz#abee99ec63f40ca6789c5741e6d6c17c15a450de" +"@polkadot/storage@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.27.11.tgz#7315f76265c1d6610efdbc37f488d148ac499254" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/params" "^0.27.10" - "@polkadot/primitives" "^0.27.10" - "@polkadot/util" "^0.27.10" - "@polkadot/util-crypto" "^0.27.10" - "@polkadot/util-keyring" "^0.27.10" + "@polkadot/params" "^0.27.11" + "@polkadot/primitives" "^0.27.11" + "@polkadot/util" "^0.27.11" + "@polkadot/util-crypto" "^0.27.11" + "@polkadot/util-keyring" "^0.27.11" -"@polkadot/trie-hash@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/trie-hash/-/trie-hash-0.27.10.tgz#41262d8c2b97f385af5c91879540fd601d443605" +"@polkadot/trie-hash@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/trie-hash/-/trie-hash-0.27.11.tgz#133464be6fb45c7d72764b182c568397e3380e33" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/util" "^0.27.10" - "@polkadot/util-crypto" "^0.27.10" - "@polkadot/util-rlp" "^0.27.10" + "@polkadot/util" "^0.27.11" + "@polkadot/util-crypto" "^0.27.11" + "@polkadot/util-rlp" "^0.27.11" "@polkadot/ts@^0.1.10": version "0.1.10" resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.10.tgz#784d460cf4b2e9b38bb1c77f9366dd01425f220d" -"@polkadot/util-crypto@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.27.10.tgz#8ae276f3b7a7ba93b83f4728c7f0ab92afa7659b" +"@polkadot/util-crypto@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.27.11.tgz#9dbfd10f948bb94b4781c8028a75d9154cd47dfe" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/util" "^0.27.10" + "@polkadot/util" "^0.27.11" blakejs "^1.1.0" js-sha3 "^0.7.0" tweetnacl "^1.0.0" xxhashjs "^0.2.2" -"@polkadot/util-keyring@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/util-keyring/-/util-keyring-0.27.10.tgz#da0d698df88898bfd786aaa31e0caad31f1b9b56" +"@polkadot/util-keyring@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/util-keyring/-/util-keyring-0.27.11.tgz#b307579956036f01cc061e0655ae68ed0480da2c" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/util" "^0.27.10" - "@polkadot/util-crypto" "^0.27.10" + "@polkadot/util" "^0.27.11" + "@polkadot/util-crypto" "^0.27.11" "@types/bs58" "^3.0.30" bs58 "^4.0.1" -"@polkadot/util-rlp@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/util-rlp/-/util-rlp-0.27.10.tgz#fe4cd6b603be0a398cc28a6feec6f07577f3ac3e" +"@polkadot/util-rlp@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/util-rlp/-/util-rlp-0.27.11.tgz#fa0887e156ed3262e21e5c9ef5dbeecfe8215266" dependencies: "@babel/runtime" "^7.0.0-beta.51" - "@polkadot/util" "^0.27.10" + "@polkadot/util" "^0.27.11" -"@polkadot/util@^0.27.10": - version "0.27.10" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.27.10.tgz#0dfc2086768948a41c652257cda9a3181b531fbe" +"@polkadot/util@^0.27.11": + version "0.27.11" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.27.11.tgz#cf6e74fe540e4f7e4e3351899b56830f77da5b0f" dependencies: "@babel/runtime" "^7.0.0-beta.51" "@types/bn.js" "^4.11.1"