Bump common (detection) (#1799)

This commit is contained in:
Jaco Greeff
2020-02-03 13:42:49 +01:00
committed by GitHub
parent b891edbd37
commit eeb8d20e58
9 changed files with 45 additions and 31 deletions
+3 -3
View File
@@ -31,14 +31,14 @@
"dependencies": {
"@babel/runtime": "^7.8.3",
"@polkadot/api-derive": "^1.1.0-beta.13",
"@polkadot/keyring": "^2.0.1",
"@polkadot/keyring": "^2.1.0-beta.0",
"@polkadot/metadata": "^1.1.0-beta.13",
"@polkadot/rpc-core": "^1.1.0-beta.13",
"@polkadot/rpc-provider": "^1.1.0-beta.13",
"@polkadot/types": "^1.1.0-beta.13",
"@polkadot/util-crypto": "^2.0.1"
"@polkadot/util-crypto": "^2.1.0-beta.0"
},
"devDependencies": {
"@polkadot/keyring": "^2.0.1"
"@polkadot/keyring": "^2.1.0-beta.0"
}
}
+8 -1
View File
@@ -4,15 +4,22 @@
import { detectPackage } from '@polkadot/util';
let dirname = 'node_modules';
let pkgJson;
try {
dirname = __dirname;
} catch (error) {
// ignore
}
try {
pkgJson = require('./package.json');
} catch (error) {
pkgJson = require('../package.json');
}
detectPackage(pkgJson);
detectPackage(dirname, pkgJson);
export { Keyring } from '@polkadot/keyring';
export { WsProvider } from '@polkadot/rpc-provider';