* 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:
Jaco
2021-10-08 10:31:11 +03:00
committed by GitHub
parent 068af8b2ab
commit d10407a44f
10 changed files with 530 additions and 532 deletions
+2 -2
View File
@@ -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",
+1 -1
View File
@@ -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"
}
}
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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"
}
}
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
}
}
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+10 -3
View File
@@ -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;
}
+511 -520
View File
File diff suppressed because it is too large Load Diff