Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69d344c6c3 | ||
|
|
44cdf49b2c |
+1
-1
@@ -2,4 +2,4 @@
|
||||
1.4.2
|
||||
1.6.2
|
||||
1.11.2
|
||||
1.12.2
|
||||
1.12.21.17.2
|
||||
@@ -1,5 +1,9 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 1.17.2 Jun 2, 2020
|
||||
|
||||
- Ensure subscription promise resolves before first result
|
||||
|
||||
## 1.17.1 Jun 2, 2020
|
||||
|
||||
- Fix `ElectionSize` type (Thanks to https://github.com/arjanz)
|
||||
|
||||
+1
-1
@@ -9,5 +9,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "1.17.1"
|
||||
"version": "1.17.2"
|
||||
}
|
||||
|
||||
+1
-1
@@ -34,5 +34,5 @@
|
||||
"@vuepress/plugin-search": "^1.5.0",
|
||||
"copyfiles": "^2.3.0"
|
||||
},
|
||||
"version": "1.17.1"
|
||||
"version": "1.17.2"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,9 +27,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/api": "1.17.1",
|
||||
"@polkadot/rpc-core": "1.17.1",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/api": "1.17.2",
|
||||
"@polkadot/rpc-core": "1.17.2",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"bn.js": "^5.1.2",
|
||||
"rxjs": "^6.5.5"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -28,10 +28,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/api": "1.17.1",
|
||||
"@polkadot/rpc-core": "1.17.1",
|
||||
"@polkadot/rpc-provider": "1.17.1",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/api": "1.17.2",
|
||||
"@polkadot/rpc-core": "1.17.2",
|
||||
"@polkadot/rpc-provider": "1.17.2",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"@polkadot/util-crypto": "^2.12.2",
|
||||
"bn.js": "^5.1.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,13 +27,13 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/api-derive": "1.17.1",
|
||||
"@polkadot/api-derive": "1.17.2",
|
||||
"@polkadot/keyring": "^2.12.2",
|
||||
"@polkadot/metadata": "1.17.1",
|
||||
"@polkadot/rpc-core": "1.17.1",
|
||||
"@polkadot/rpc-provider": "1.17.1",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/types-known": "1.17.1",
|
||||
"@polkadot/metadata": "1.17.2",
|
||||
"@polkadot/rpc-core": "1.17.2",
|
||||
"@polkadot/rpc-provider": "1.17.2",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/types-known": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"@polkadot/util-crypto": "^2.12.2",
|
||||
"bn.js": "^5.1.2",
|
||||
|
||||
@@ -84,7 +84,15 @@ export function decorateMethod<Method extends AnyFunction> (method: Method, opti
|
||||
// upon the first result, resolve with the unsub function
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-return
|
||||
tap(() => tracker.resolve(() => subscription.unsubscribe()))
|
||||
).subscribe(callback);
|
||||
).subscribe((result: any): void => {
|
||||
if (setImmediate) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
setImmediate(() => callback(result) as void);
|
||||
} else {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
callback(result);
|
||||
}
|
||||
});
|
||||
}) as UnsubscribePromise;
|
||||
} as StorageEntryPromiseOverloads;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/metadata",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Helpers to extract information from runtime metadata",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
@@ -27,8 +27,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/types-known": "1.17.1",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/types-known": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"@polkadot/util-crypto": "^2.12.2",
|
||||
"bn.js": "^5.1.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,9 +27,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/metadata": "1.17.1",
|
||||
"@polkadot/rpc-provider": "1.17.1",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/metadata": "1.17.2",
|
||||
"@polkadot/rpc-provider": "1.17.2",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"memoizee": "^0.4.14",
|
||||
"rxjs": "^6.5.5"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,8 +27,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/metadata": "1.17.1",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/metadata": "1.17.2",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"@polkadot/util-crypto": "^2.12.2",
|
||||
"bn.js": "^5.1.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
@@ -36,10 +36,10 @@
|
||||
"@babel/core": "^7.10.2",
|
||||
"@babel/register": "^7.10.1",
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/api": "1.17.1",
|
||||
"@polkadot/metadata": "1.17.1",
|
||||
"@polkadot/rpc-provider": "1.17.1",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/api": "1.17.2",
|
||||
"@polkadot/metadata": "1.17.2",
|
||||
"@polkadot/rpc-provider": "1.17.2",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"handlebars": "^4.7.6",
|
||||
"websocket": "^1.0.31",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,7 +27,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/types": "1.17.1",
|
||||
"@polkadot/types": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"bn.js": "^5.1.2"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "1.17.1",
|
||||
"version": "1.17.2",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,7 +27,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@polkadot/metadata": "1.17.1",
|
||||
"@polkadot/metadata": "1.17.2",
|
||||
"@polkadot/util": "^2.12.2",
|
||||
"@polkadot/util-crypto": "^2.12.2",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
|
||||
@@ -2669,25 +2669,25 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/api": 1.17.1
|
||||
"@polkadot/rpc-core": 1.17.1
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/api": 1.17.2
|
||||
"@polkadot/rpc-core": 1.17.2
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
bn.js: ^5.1.2
|
||||
rxjs: ^6.5.5
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@1.17.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@1.17.2, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/api": 1.17.1
|
||||
"@polkadot/api": 1.17.2
|
||||
"@polkadot/keyring": ^2.12.2
|
||||
"@polkadot/rpc-core": 1.17.1
|
||||
"@polkadot/rpc-provider": 1.17.1
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/rpc-core": 1.17.2
|
||||
"@polkadot/rpc-provider": 1.17.2
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@polkadot/util-crypto": ^2.12.2
|
||||
bn.js: ^5.1.2
|
||||
@@ -2696,18 +2696,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@1.17.1, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@1.17.2, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/api-derive": 1.17.1
|
||||
"@polkadot/api-derive": 1.17.2
|
||||
"@polkadot/keyring": ^2.12.2
|
||||
"@polkadot/metadata": 1.17.1
|
||||
"@polkadot/rpc-core": 1.17.1
|
||||
"@polkadot/rpc-provider": 1.17.1
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/types-known": 1.17.1
|
||||
"@polkadot/metadata": 1.17.2
|
||||
"@polkadot/rpc-core": 1.17.2
|
||||
"@polkadot/rpc-provider": 1.17.2
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/types-known": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@polkadot/util-crypto": ^2.12.2
|
||||
bn.js: ^5.1.2
|
||||
@@ -2816,43 +2816,43 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/metadata@1.17.1, @polkadot/metadata@workspace:packages/metadata":
|
||||
"@polkadot/metadata@1.17.2, @polkadot/metadata@workspace:packages/metadata":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/metadata@workspace:packages/metadata"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/keyring": ^2.12.2
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/types-known": 1.17.1
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/types-known": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@polkadot/util-crypto": ^2.12.2
|
||||
bn.js: ^5.1.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@1.17.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@1.17.2, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/keyring": ^2.12.2
|
||||
"@polkadot/metadata": 1.17.1
|
||||
"@polkadot/rpc-provider": 1.17.1
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/metadata": 1.17.2
|
||||
"@polkadot/rpc-provider": 1.17.2
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
memoizee: ^0.4.14
|
||||
rxjs: ^6.5.5
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@1.17.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@1.17.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/keyring": ^2.12.2
|
||||
"@polkadot/metadata": 1.17.1
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/metadata": 1.17.2
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@polkadot/util-crypto": ^2.12.2
|
||||
bn.js: ^5.1.2
|
||||
@@ -2880,10 +2880,10 @@ __metadata:
|
||||
"@babel/core": ^7.10.2
|
||||
"@babel/register": ^7.10.1
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/api": 1.17.1
|
||||
"@polkadot/metadata": 1.17.1
|
||||
"@polkadot/rpc-provider": 1.17.1
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/api": 1.17.2
|
||||
"@polkadot/metadata": 1.17.2
|
||||
"@polkadot/rpc-provider": 1.17.2
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@types/websocket": ^1.0.0
|
||||
"@types/yargs": ^15.0.5
|
||||
@@ -2899,25 +2899,25 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@1.17.1, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@1.17.2, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/types": 1.17.1
|
||||
"@polkadot/types": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^5.1.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@1.17.1, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@1.17.2, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.2
|
||||
"@polkadot/keyring": ^2.12.2
|
||||
"@polkadot/metadata": 1.17.1
|
||||
"@polkadot/metadata": 1.17.2
|
||||
"@polkadot/util": ^2.12.2
|
||||
"@polkadot/util-crypto": ^2.12.2
|
||||
"@types/bn.js": ^4.11.6
|
||||
|
||||
Reference in New Issue
Block a user