@@ -28,14 +28,14 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.3",
|
||||
"@polkadot/api-derive": "^1.0.0-beta.29",
|
||||
"@polkadot/keyring": "^2.0.0-beta.6",
|
||||
"@polkadot/keyring": "^2.0.0-beta.7",
|
||||
"@polkadot/metadata": "^1.0.0-beta.29",
|
||||
"@polkadot/rpc-core": "^1.0.0-beta.29",
|
||||
"@polkadot/rpc-provider": "^1.0.0-beta.29",
|
||||
"@polkadot/types": "^1.0.0-beta.29",
|
||||
"@polkadot/util-crypto": "^2.0.0-beta.6"
|
||||
"@polkadot/util-crypto": "^2.0.0-beta.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.0.0-beta.6"
|
||||
"@polkadot/keyring": "^2.0.0-beta.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,17 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { assertSingletonPackage } from '@polkadot/util';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
assertSingletonPackage('@polkadot/api');
|
||||
let pkgJson;
|
||||
|
||||
try {
|
||||
pkgJson = require('./package.json');
|
||||
} catch (error) {
|
||||
pkgJson = require('../package.json');
|
||||
}
|
||||
|
||||
detectPackage(pkgJson);
|
||||
|
||||
export { Keyring } from '@polkadot/keyring';
|
||||
export { WsProvider } from '@polkadot/rpc-provider';
|
||||
|
||||
Reference in New Issue
Block a user