mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-04-29 13:48:02 +00:00
Bump deps (#38)
This commit is contained in:
+9
-1
@@ -1,10 +1,18 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 0.4.0-x
|
||||
|
||||
Changes:
|
||||
|
||||
- Added polkadotfund.com
|
||||
- Add test for sites with www prefix
|
||||
|
||||
|
||||
## 0.3.1 Dec 13, 2020
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add polkadot.com.se (Thanks to https://github.com/gdixon)
|
||||
- Added polkadot.com.se (Thanks to https://github.com/gdixon)
|
||||
|
||||
Changes:
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"dothereum-polkadot.net",
|
||||
"polkadot-dot.info",
|
||||
"polkadotfund.com",
|
||||
"www.polkadotfund.com",
|
||||
"polkawallets.site",
|
||||
"polkodot.network",
|
||||
"polkadot.com.se"
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@polkadot/dev": "^0.61.13",
|
||||
"@polkadot/dev": "^0.61.18",
|
||||
"@types/jest": "^26.0.19"
|
||||
},
|
||||
"version": "0.3.3"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/phishing#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/x-fetch": "^5.1.1"
|
||||
"@polkadot/x-fetch": "^5.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/js-yaml": "^3.12.5",
|
||||
|
||||
@@ -22,13 +22,19 @@ describe('checkIfDenied', (): void => {
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true when host in list (www-prefix)', async (): Promise<void> => {
|
||||
expect(
|
||||
await checkIfDenied('www.polkadotfund.com')
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true when host in list (protocol)', async (): Promise<void> => {
|
||||
expect(
|
||||
await checkIfDenied('https://polkawallets.site')
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true when host in list (path)', async (): Promise<void> => {
|
||||
it('returns true when host in list (protocol + path)', async (): Promise<void> => {
|
||||
expect(
|
||||
await checkIfDenied('https://polkawallets.site/something/index.html')
|
||||
).toEqual(true);
|
||||
|
||||
Reference in New Issue
Block a user