mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-07-20 04:35:44 +00:00
Bump @polkadot/util (#1525)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user