Check for multiple api & types instances (#797)

This commit is contained in:
Jaco Greeff
2019-03-26 17:13:15 +01:00
committed by GitHub
parent 312b0dd347
commit c827bdbbec
10 changed files with 41 additions and 27 deletions
+1 -1
View File
@@ -36,6 +36,6 @@
"@polkadot/rpc-rx": "^0.51.1",
"@polkadot/storage": "^0.51.1",
"@polkadot/types": "^0.51.1",
"@polkadot/util-crypto": "^0.41.1"
"@polkadot/util-crypto": "^0.42.0-beta.0"
}
}
+3
View File
@@ -3,6 +3,9 @@
// of the Apache-2.0 license. See the LICENSE file for details.
export { WsProvider } from '@polkadot/rpc-provider';
import { assertSingletonPackage } from '@polkadot/util';
assertSingletonPackage('@polkadot/api');
export { default as ApiPromise } from './promise';
export { default as ApiRx } from './rx';
+1 -1
View File
@@ -33,6 +33,6 @@
"@polkadot/jsonrpc": "^0.51.1",
"@polkadot/rpc-provider": "^0.51.1",
"@polkadot/types": "^0.51.1",
"@polkadot/util": "^0.41.1"
"@polkadot/util": "^0.42.0-beta.0"
}
}
+3 -3
View File
@@ -30,10 +30,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/keyring": "^0.41.1",
"@polkadot/keyring": "^0.42.0-beta.0",
"@polkadot/storage": "^0.51.1",
"@polkadot/util": "^0.41.1",
"@polkadot/util-crypto": "^0.41.1",
"@polkadot/util": "^0.42.0-beta.0",
"@polkadot/util-crypto": "^0.42.0-beta.0",
"@types/nock": "^9.3.1",
"eventemitter3": "^3.1.0",
"isomorphic-fetch": "^2.2.1",
+1 -1
View File
@@ -12,6 +12,6 @@
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/types": "^0.51.1",
"@polkadot/util": "^0.41.1"
"@polkadot/util": "^0.42.0-beta.0"
}
}
+3 -3
View File
@@ -30,9 +30,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/keyring": "^0.41.1",
"@polkadot/keyring": "^0.42.0-beta.0",
"@polkadot/types": "^0.51.1",
"@polkadot/util": "^0.41.1",
"@polkadot/util-crypto": "^0.41.1"
"@polkadot/util": "^0.42.0-beta.0",
"@polkadot/util-crypto": "^0.42.0-beta.0"
}
}
+2 -2
View File
@@ -30,7 +30,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/keyring": "^0.41.1",
"@polkadot/util": "^0.41.1"
"@polkadot/keyring": "^0.42.0-beta.0",
"@polkadot/util": "^0.42.0-beta.0"
}
}
+4
View File
@@ -5,5 +5,9 @@
// NOTE When adding any types here, we need to update the coumentation links as
// well - <root>/docs/SUMMARY.md as well as ../README.md
import { assertSingletonPackage } from '@polkadot/util';
assertSingletonPackage('@polkadot/types');
export * from './codec';
export * from './index.types';