This commit is contained in:
Jaco Greeff
2020-02-22 15:57:33 +01:00
committed by GitHub
parent c2d595fb3f
commit b0ee79f90c
8 changed files with 195 additions and 175 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/keyring",
"version": "2.5.0-beta.3",
"version": "2.5.0",
"description": "Keyring management",
"main": "index.js",
"publishConfig": {
@@ -28,7 +28,7 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
"dependencies": {
"@babel/runtime": "^7.8.4",
"@polkadot/util": "2.5.0-beta.3",
"@polkadot/util-crypto": "2.5.0-beta.3"
"@polkadot/util": "2.5.0",
"@polkadot/util-crypto": "2.5.0"
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-crypto",
"version": "2.5.0-beta.3",
"version": "2.5.0",
"description": "A collection of useful crypto utilities for @polkadot",
"main": "index.js",
"keywords": [
@@ -26,7 +26,7 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
"dependencies": {
"@babel/runtime": "^7.8.4",
"@polkadot/util": "2.5.0-beta.3",
"@polkadot/util": "2.5.0",
"@polkadot/wasm-crypto": "^1.0.1",
"base-x": "^3.0.7",
"bip39": "^3.0.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util",
"version": "2.5.0-beta.3",
"version": "2.5.0",
"description": "A collection of useful utilities for @polkadot",
"main": "index.js",
"keywords": [
+1 -1
View File
@@ -19,7 +19,7 @@ import { Constructor } from '../types';
* console.log('isChildClass', isChildClass(BN, Uint8Array); // => false
* ```
*/
export default function isChildClass <P extends Constructor> (Parent: P, Child?: Constructor | null | unknown | never): Child is P {
export default function isChildClass <P extends Constructor> (Parent: P, Child?: Constructor | null | unknown): Child is P {
// https://stackoverflow.com/questions/30993434/check-if-a-constructor-inherits-another-in-es6/30993664
return Child
// eslint-disable-next-line no-prototype-builtins