Bump @polkadot/util (#1525)

This commit is contained in:
Jaco
2022-04-30 07:39:00 +02:00
committed by GitHub
parent 71f433bcac
commit 4559c466d2
5 changed files with 262 additions and 242 deletions
+4 -4
View File
@@ -17,13 +17,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.11.109",
"version": "0.12.0",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.17.9",
"@polkadot/util": "^9.0.1",
"@polkadot/util-crypto": "^9.0.1",
"@polkadot/x-fetch": "^9.0.1"
"@polkadot/util": "^9.1.1",
"@polkadot/util-crypto": "^9.1.1",
"@polkadot/x-fetch": "^9.1.1"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
+2 -2
View File
@@ -56,7 +56,7 @@ describe('crosscheck', (): void => {
});
it('has all the relevant entries from CryptoScamDb', async (): Promise<void> => {
const raw = await (await fetch(CRYPTODB)).text();
const raw = await fetch(CRYPTODB).then((r) => r.text());
// this is a hack, the text slipped in upstream
const scamDb = yamlParse(raw.replace('∂ç', '')) as CryptoScamEntry[];
@@ -72,7 +72,7 @@ describe('crosscheck', (): void => {
});
it('has polkadot/kusama entries from eth-phishing-detect', async (): Promise<void> => {
const ethDb = await (await fetch(ETHPHISH)).json() as EthPhishing;
const ethDb = await fetch(ETHPHISH).then<EthPhishing>((r) => r.json());
const filtered = ethDb.blacklist.filter((url) => matchName(url));
const missing = filtered.filter((url) => !ours.includes(url));