Skip to content

Commit

Permalink
Bump @polkadot/util (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Apr 30, 2022
1 parent 71f433b commit 4559c46
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 242 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

## 0.12.1 Apr 30, 2022

Contributed:

- Too many URLs to mention

Changes:

- Update to `@polkadot/util` 9.1.1


## 0.11.1 Apr 9, 2022

Contributed:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/polkadot-js/phishing.git"
},
"sideEffects": false,
"version": "0.11.109",
"version": "0.12.0",
"workspaces": [
"packages/*"
],
Expand All @@ -32,8 +32,8 @@
"dnslink-cloudflare": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@polkadot/dev": "^0.66.15",
"@babel/core": "^7.17.10",
"@polkadot/dev": "^0.66.16",
"@types/jest": "^27.4.1"
},
"resolutions": {
Expand Down
8 changes: 4 additions & 4 deletions packages/phishing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/phishing/src/crosscheck.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand All @@ -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));

Expand Down
Loading

0 comments on commit 4559c46

Please sign in to comment.