Check for multiple api & types instances (#797)
This commit is contained in:
@@ -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,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';
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user