Bump deps (#4037)
* Bump deps * Bump * revamp comments * Only use un-aliased primitives * Revert "Only use un-aliased primitives" This reverts commit 93d7e28f3a73351899789acc0914b75b421d4c11.
This commit is contained in:
+2
-2
@@ -26,10 +26,10 @@
|
||||
"test:watch": "polkadot-dev-run-test --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/core": "^7.15.8",
|
||||
"@babel/register": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/dev": "^0.62.68",
|
||||
"@polkadot/dev": "^0.62.70",
|
||||
"@polkadot/ts": "^0.4.8",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^27.0.2",
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
"@polkadot/api": "6.2.2-10",
|
||||
"@polkadot/types": "6.2.2-10",
|
||||
"@polkadot/util": "^7.4.1",
|
||||
"rxjs": "^7.3.0"
|
||||
"rxjs": "^7.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@polkadot/types": "6.2.2-10",
|
||||
"@polkadot/util": "^7.4.1",
|
||||
"@polkadot/util-crypto": "^7.4.1",
|
||||
"rxjs": "^7.3.0"
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.4.1",
|
||||
|
||||
@@ -29,6 +29,6 @@
|
||||
"@polkadot/util": "^7.4.1",
|
||||
"@polkadot/util-crypto": "^7.4.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.3.0"
|
||||
"rxjs": "^7.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@polkadot/rpc-provider": "6.2.2-10",
|
||||
"@polkadot/types": "6.2.2-10",
|
||||
"@polkadot/util": "^7.4.1",
|
||||
"rxjs": "^7.3.0"
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.4.1"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.4.1",
|
||||
"@polkadot/types": "6.2.2-10",
|
||||
"mock-socket": "^9.0.3",
|
||||
"mock-socket": "^9.0.5",
|
||||
"nock": "^13.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/core": "^7.15.8",
|
||||
"@babel/register": "^7.15.3",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/api": "6.2.2-10",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"@polkadot/util": "^7.4.1",
|
||||
"@polkadot/util-crypto": "^7.4.1",
|
||||
"rxjs": "^7.3.0"
|
||||
"rxjs": "^7.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^7.4.1",
|
||||
|
||||
@@ -327,10 +327,17 @@ export class TypeRegistry implements Registry {
|
||||
}
|
||||
|
||||
public getClassName (Type: Constructor): string | undefined {
|
||||
const entry = [...this.#classes.entries()].find(([, Clazz]) => Type === Clazz);
|
||||
// we cannot rely on export order (anymore, since babel/core 7.15.8), so in the case of
|
||||
// items such as u32 & U32, we get the lowercase versions here... not quite as optimal
|
||||
// (previously this used to be a simple find & return)
|
||||
const names = [...this.#classes.entries()]
|
||||
.filter(([, Clazz]) => Type === Clazz)
|
||||
.map(([name]) => name)
|
||||
.sort()
|
||||
.reverse();
|
||||
|
||||
return entry
|
||||
? entry[0]
|
||||
return names.length
|
||||
? names[0]
|
||||
: undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user