From 0a5382ba0df65e7334b18b8a0934cd42380eb2b3 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 10 Jan 2019 11:52:13 +0100 Subject: [PATCH] Update API, fixing isReady wait (#579) * Update API, fixing isReady wait * Bump (previous version didn't deploy all packages, npm, tsk, tsk) --- packages/ui-app/package.json | 6 +- packages/ui-react-rx/package.json | 4 +- yarn.lock | 162 +++++++++++++++++++++--------- 3 files changed, 119 insertions(+), 53 deletions(-) diff --git a/packages/ui-app/package.json b/packages/ui-app/package.json index e411935fd6..b61a9910dc 100644 --- a/packages/ui-app/package.json +++ b/packages/ui-app/package.json @@ -11,10 +11,10 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/extrinsics": "^0.38.4", + "@polkadot/extrinsics": "^0.38.9", "@polkadot/keyring": "^0.33.30", - "@polkadot/storage": "^0.38.4", - "@polkadot/types": "^0.38.4", + "@polkadot/storage": "^0.38.9", + "@polkadot/types": "^0.38.9", "@polkadot/ui-identicon": "^0.25.1", "@polkadot/ui-keyring": "^0.25.1", "@polkadot/ui-react-rx": "^0.22.2", diff --git a/packages/ui-react-rx/package.json b/packages/ui-react-rx/package.json index 429d804d02..ba02e86ea9 100644 --- a/packages/ui-react-rx/package.json +++ b/packages/ui-react-rx/package.json @@ -31,8 +31,8 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-react-rx#readme", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/api": "^0.38.4", - "@polkadot/types": "^0.38.4", + "@polkadot/api": "^0.38.9", + "@polkadot/types": "^0.38.9", "rxjs-compat": "^6.3.2" } } diff --git a/yarn.lock b/yarn.lock index fd2fa43ba5..02ce48b12e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1369,17 +1369,31 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== -"@polkadot/api@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.38.4.tgz#062a72960e8f9e9460020eea767fe2c04668a525" - integrity sha512-yeWKs9Soztev3WN1xV4CtwR0RVNoQajr5v1dza5eZB43w2Ab04/jyooDsFXNQPMlI4945Bqrbj9y/Df7v536VQ== +"@polkadot/api-derive@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.38.9.tgz#ee66b36b0b500950c1ed639df6dfd0ede04cb35b" + integrity sha512-ro56uw34jk2G030eR++YICeiQUv9p+l/hwGSxu+zvagD0hLq89Ya7XVYpspbAeOYaWz8JrGERjLjCe8sJ7D4dQ== dependencies: "@babel/runtime" "^7.2.0" - "@polkadot/extrinsics" "^0.38.4" - "@polkadot/rpc-provider" "^0.38.4" - "@polkadot/rpc-rx" "^0.38.4" - "@polkadot/storage" "^0.38.4" - "@polkadot/types" "^0.38.4" + "@polkadot/api" "^0.38.9" + "@polkadot/types" "^0.38.9" + "@types/memoizee" "^0.4.2" + "@types/rx" "^4.1.1" + memoizee "^0.4.14" + rxjs "^6.3.3" + +"@polkadot/api@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.38.9.tgz#56f02638ab96b9261120f3ac7f57272909e502c2" + integrity sha512-ExLmrolv1ygwAdPb8lIcxkZMeWSPr+82jwbrHPMSr4mKak4MRW7d6C9RlZSgVaaqVJqZYiWTS5Vvf8rcdBDglQ== + dependencies: + "@babel/runtime" "^7.2.0" + "@polkadot/api-derive" "^0.38.9" + "@polkadot/extrinsics" "^0.38.9" + "@polkadot/rpc-provider" "^0.38.9" + "@polkadot/rpc-rx" "^0.38.9" + "@polkadot/storage" "^0.38.9" + "@polkadot/types" "^0.38.9" "@types/rx" "^4.1.1" rxjs "^6.3.3" @@ -1459,19 +1473,19 @@ typedoc-plugin-no-inherit "^1.1.1" typescript "^3.2.2" -"@polkadot/extrinsics@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.38.4.tgz#0600b0b75bc6b3c9c9e2aa714999269ed6adb324" - integrity sha512-ArSmkZTHQ8VHFJZGbanzqCiLx0g6Wfzcsf4Cee0EtJVkOjzm7/zTeBKt1ijom8siySLe5pd5l9R2e1eiu33zkg== +"@polkadot/extrinsics@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.38.9.tgz#5ae8aed15964dfa6c2094d79c020074b97f061a7" + integrity sha512-bETKVEyQjoBTuVWrEHgy77bs/pSf99/7VsWXZ1DuSJYrRjXnlQIVgslWpMx8rxJZiNatODNI8+g0E9Toz7+zTg== dependencies: "@babel/runtime" "^7.2.0" - "@polkadot/types" "^0.38.4" + "@polkadot/types" "^0.38.9" "@polkadot/util" "^0.33.30" -"@polkadot/jsonrpc@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.38.4.tgz#94135a77114edc907b6631fd7bd2e501c76c49ff" - integrity sha512-LV/zjGUDC53qLVO/bgKfOKTztCh01k7VKdrZDMd0qX/GSLMJxTql5OVEANYxFnDyWlhpUg4RIbUf6QVnFn530Q== +"@polkadot/jsonrpc@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.38.9.tgz#370f3087e1bf17bb7ac4b5f77635cd134f5a8f9c" + integrity sha512-uXgNrl+JNe2glbwg2tvkT1mzej81kpVY+oPHuNPbBrUpg6Rpq3eAvRvN73PiiJs+OHI0B+Out54Jq8fQj0w9gw== dependencies: "@babel/runtime" "^7.2.0" @@ -1486,25 +1500,25 @@ "@types/bs58" "^4.0.0" bs58 "^4.0.1" -"@polkadot/rpc-core@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.38.4.tgz#aef9898ce9984ec0b6f89c311f182b60bed4349a" - integrity sha512-vM3hbdttotYLh9veM7XxMKDDD1H4iLtfJD6OMFhlyndMadk8ApjEIe9liArWgGstebnyYDQlXYtDoYrMf2AiLw== +"@polkadot/rpc-core@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.38.9.tgz#f6948eae53a13eed5c576195ce7a707e28bf3e3c" + integrity sha512-urd08d3aZZDORM4u3lBY+huSBfQ05FEH0tdkZMciEajL5rJbF8O9UeaK5uqUIxe8Kjb5ZO+XBvdxS5EgKVVIIg== dependencies: "@babel/runtime" "^7.2.0" - "@polkadot/jsonrpc" "^0.38.4" - "@polkadot/rpc-provider" "^0.38.4" - "@polkadot/types" "^0.38.4" + "@polkadot/jsonrpc" "^0.38.9" + "@polkadot/rpc-provider" "^0.38.9" + "@polkadot/types" "^0.38.9" "@polkadot/util" "^0.33.30" -"@polkadot/rpc-provider@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.38.4.tgz#81897f476b28ff51d8c63916a46632b96e1a452e" - integrity sha512-H6hf5SfYsmc3Mb+rrtCvJ+SPupg+SBpfOUkJU7h+tM0P6g4wg0XRS6Qa5/qvoj5h5hnnP62IzsJxAT2o2vwpuA== +"@polkadot/rpc-provider@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.38.9.tgz#81807fab2d648df850449d63b6e4aa3da88d6c86" + integrity sha512-BdFYa0BIC1iaVGolevfobVjwVQhWCFXBE616xlaSP3TZgYaQHpGb/PNFUsDLaqSBYv5P3GADOWEiAvx6T95EqQ== dependencies: "@babel/runtime" "^7.2.0" "@polkadot/keyring" "^0.33.30" - "@polkadot/storage" "^0.38.4" + "@polkadot/storage" "^0.38.9" "@polkadot/util" "^0.33.30" "@polkadot/util-crypto" "^0.33.30" "@types/nock" "^9.3.0" @@ -1512,25 +1526,25 @@ isomorphic-fetch "^2.2.1" websocket "^1.0.28" -"@polkadot/rpc-rx@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.38.4.tgz#ec0af957b4df16e6e11aa964940acd632071deb9" - integrity sha512-tmWUVhtmScBsiTUu1gMDS/HheP5LBwpPRgXXyePf/MAZntlynb8oXbT0GHqYB5ZBsXk6S7H+i41tgfnhq0C7Ng== +"@polkadot/rpc-rx@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.38.9.tgz#a595165cd747ec826db8e0f071f333480496db6f" + integrity sha512-2KhoJkUk5VY6LE/i390TKQvb4cmkwUgeosUfSoUbi2En4+hqKTIosJBlIVA60s1s1Y6HYIF1P2HETKLr0DznCw== dependencies: "@babel/runtime" "^7.2.0" - "@polkadot/rpc-core" "^0.38.4" - "@polkadot/rpc-provider" "^0.38.4" + "@polkadot/rpc-core" "^0.38.9" + "@polkadot/rpc-provider" "^0.38.9" "@types/rx" "^4.1.1" rxjs "^6.3.3" -"@polkadot/storage@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.38.4.tgz#de8b475b6a188f0abfa29b35ca173c4fc8013082" - integrity sha512-bfO0zyGH6ReFLl8Ly3xnmuJG9mcUtrHX/dEweY5m4woTYxHki8A7a9Xi+6DHlz8G+urj0MolX8Bf/wYsZ9CUBQ== +"@polkadot/storage@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.38.9.tgz#d36b663d7bc3d21d5b010d092117e23ba92e2068" + integrity sha512-Ps20FwyVDttQrjqyZq08roydL47e1Pa8zjqrZIFSLZd1i8ns5AFvb+I/XDl7xKu+JZPLK8yUZtZYXlI1/gCdsw== dependencies: "@babel/runtime" "^7.2.0" "@polkadot/keyring" "^0.33.30" - "@polkadot/types" "^0.38.4" + "@polkadot/types" "^0.38.9" "@polkadot/util" "^0.33.30" "@polkadot/util-crypto" "^0.33.30" @@ -1539,10 +1553,10 @@ resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.47.tgz#89a7e44ce3274feb446e8102f16499ec6a5b5720" integrity sha512-UE8Wru0BOk+h0RiDAxo1P5dpk9mZyK1VIJiKKM2vfzQqMCPfKnSuQXXXkNzJ/4dqjRJ6ilYwFkzXQwemJWF0+w== -"@polkadot/types@^0.38.4": - version "0.38.4" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.38.4.tgz#d441cd264d321ee587c7c41465eb3a2e74ac4405" - integrity sha512-KrlktP97TYZgl+qe/nULQZYVrP9crp88l786DDa5mCVFv/AdCYcsQuePm+iJ+cHPA3mGyxqRetQunQwhdxvHMA== +"@polkadot/types@^0.38.9": + version "0.38.9" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.38.9.tgz#44606b6f2a3e46e8169fe2bc0a794d1a4fa0dc45" + integrity sha512-vBXEeGuShIzLQ9W4EC9s+YREDnABaOlrajbUaEO37U82WcmOF04MvEPqTbRbyxfLltF3wlEEl9OFPpgem4o0iA== dependencies: "@babel/runtime" "^7.2.0" "@polkadot/keyring" "^0.33.30" @@ -1789,6 +1803,11 @@ resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.4.2.tgz#64a89e53ea37f61cc0f3ee1732c555c2dbf6452f" integrity sha512-cDB930/7MbzaGF6U3IwSQp6XBru8xWajF5PV2YZZeV8DyiliTuld11afVztGI9+yJZ29il5E+NpGA6ooV/Cjkg== +"@types/memoizee@^0.4.2": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@types/memoizee/-/memoizee-0.4.2.tgz#a500158999a8144a9b46cf9a9fb49b15f1853573" + integrity sha512-bhdZXZWKfpkQuuiQjVjnPiNeBHpIAC6rfOFqlJXKD3VC35mCcolfVfXYTnk9Ppee5Mkmmz3Llgec7xCdJAbzWw== + "@types/minimatch@*", "@types/minimatch@3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" @@ -4840,7 +4859,7 @@ es-to-primitive@^1.2.0: is-date-object "^1.0.1" is-symbol "^1.0.2" -es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: +es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.45, es5-ext@^0.10.9, es5-ext@~0.10.14, es5-ext@~0.10.2, es5-ext@~0.10.46: version "0.10.46" resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.46.tgz#efd99f67c5a7ec789baa3daa7f79870388f7f572" integrity sha512-24XxRvJXNFwEMpJb3nOkiRJKRoupmjYmOPVlI65Qy2SrtxwOTB+g6ODjBKOtwEHbYrhWRty9xxOWLNdClT2djw== @@ -4849,7 +4868,7 @@ es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14: es6-symbol "~3.1.1" next-tick "1" -es6-iterator@~2.0.3: +es6-iterator@^2.0.1, es6-iterator@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c= @@ -4878,6 +4897,16 @@ es6-symbol@^3.1.1, es6-symbol@~3.1.1: d "1" es5-ext "~0.10.14" +es6-weak-map@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" + integrity sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8= + dependencies: + d "1" + es5-ext "^0.10.14" + es6-iterator "^2.0.1" + es6-symbol "^3.1.1" + escape-html@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -4945,6 +4974,14 @@ esutils@^2.0.0, esutils@^2.0.2: resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= +event-emitter@^0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" + integrity sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk= + dependencies: + d "1" + es5-ext "~0.10.14" + eventemitter3@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.0.tgz#090b4d6cdbd645ed10bf750d4b5407942d7ba163" @@ -6857,7 +6894,7 @@ is-primitive@^2.0.0: resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= -is-promise@^2.1.0: +is-promise@^2.1, is-promise@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= @@ -8149,6 +8186,13 @@ lru-cache@~4.0.1: pseudomap "^1.0.1" yallist "^2.0.0" +lru-queue@0.1: + version "0.1.0" + resolved "https://registry.yarnpkg.com/lru-queue/-/lru-queue-0.1.0.tgz#2738bd9f0d3cf4f84490c5736c48699ac632cda3" + integrity sha1-Jzi9nw089PhEkMVzbEhpmsYyzaM= + dependencies: + es5-ext "~0.10.2" + make-dir@^1.0.0: version "1.3.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" @@ -8295,6 +8339,20 @@ memoize-one@^4.0.0: resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-4.1.0.tgz#a2387c58c03fff27ca390c31b764a79addf3f906" integrity sha512-2GApq0yI/b22J2j9rhbrAlsHb0Qcz+7yWxeLG8h+95sl1XPUgeLimQSOdur4Vw7cUhrBHwaUZxWFZueojqNRzA== +memoizee@^0.4.14: + version "0.4.14" + resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.14.tgz#07a00f204699f9a95c2d9e77218271c7cd610d57" + integrity sha512-/SWFvWegAIYAO4NQMpcX+gcra0yEZu4OntmUdrBaWrJncxOqAziGFlHxc7yjKVK2uu3lpPW27P27wkR82wA8mg== + dependencies: + d "1" + es5-ext "^0.10.45" + es6-weak-map "^2.0.2" + event-emitter "^0.3.5" + is-promise "^2.1" + lru-queue "0.1" + next-tick "1" + timers-ext "^0.1.5" + memory-fs@^0.4.0, memory-fs@~0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" @@ -12513,6 +12571,14 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" +timers-ext@^0.1.5: + version "0.1.7" + resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.7.tgz#6f57ad8578e07a3fb9f91d9387d65647555e25c6" + integrity sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ== + dependencies: + es5-ext "~0.10.46" + next-tick "1" + tmp@0.0.31: version "0.0.31" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.31.tgz#8f38ab9438e17315e5dbd8b3657e8bfb277ae4a7"