@@ -28,12 +28,12 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.3",
|
||||
"@polkadot/metadata": "^1.0.0-beta.29",
|
||||
"@polkadot/util": "^2.0.0-beta.6",
|
||||
"@polkadot/util-crypto": "^2.0.0-beta.6",
|
||||
"@polkadot/util": "^2.0.0-beta.7",
|
||||
"@polkadot/util-crypto": "^2.0.0-beta.7",
|
||||
"@types/memoizee": "^0.4.3",
|
||||
"memoizee": "^0.4.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.0.0-beta.6"
|
||||
"@polkadot/keyring": "^2.0.0-beta.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,9 +5,17 @@
|
||||
// NOTE When adding any types here, we need to update the documentation links as
|
||||
// well - <root>/docs/SUMMARY.md as well as ../README.md
|
||||
|
||||
import { assertSingletonPackage } from '@polkadot/util';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
assertSingletonPackage('@polkadot/types');
|
||||
let pkgJson;
|
||||
|
||||
try {
|
||||
pkgJson = require('./package.json');
|
||||
} catch (error) {
|
||||
pkgJson = require('../package.json');
|
||||
}
|
||||
|
||||
detectPackage(pkgJson);
|
||||
|
||||
export * from './codec';
|
||||
export * from './index.types';
|
||||
|
||||
Reference in New Issue
Block a user