* Bump deps

* api detect
This commit is contained in:
Jaco Greeff
2020-01-28 17:40:57 +01:00
committed by GitHub
parent 1ee1d70d55
commit b2c84eb461
9 changed files with 49 additions and 33 deletions
+3 -3
View File
@@ -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"
}
}
+10 -2
View File
@@ -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';