Skip to content

Commit eac706b

Browse files
phishing 0.21.6
1 parent 354faf8 commit eac706b

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master
44

5+
- phishing 0.21.6
56
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 12.4.2
67
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 12.4.1
78
- wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.2.2

phishing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To check for sites that are on the list -
44

55
```js
6-
import { checkIfDenied } from 'https://deno.land/x/polkadot@0.2.41/phishing/mod.ts';
6+
import { checkIfDenied } from 'https://deno.land/x/polkadot/phishing/mod.ts';
77

88
const isOnDeny = await checkIfDenied(window.location.host);
99

@@ -13,7 +13,7 @@ console.log(`isOnDeny=${isOnDeny}`);
1313
To check for addresses that are on the list -
1414

1515
```js
16-
import { checkAddress } from 'https://deno.land/x/polkadot@0.2.41/phishing/mod.ts';
16+
import { checkAddress } from 'https://deno.land/x/polkadot/phishing/mod.ts';
1717

1818
const info = await checkAddress('1b....');
1919

phishing/bundle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
import type { AddressList, HostList } from './types.ts';
33

4-
import { u8aEq } from 'https://deno.land/x/polkadot@0.2.41/util/mod.ts';
5-
import { decodeAddress } from 'https://deno.land/x/polkadot@0.2.41/util-crypto/mod.ts';
4+
import { u8aEq } from 'https://deno.land/x/polkadot/util/mod.ts';
5+
import { decodeAddress } from 'https://deno.land/x/polkadot/util-crypto/mod.ts';
66

77
import { fetchJson } from './fetch.ts';
88

@@ -152,7 +152,7 @@ export async function checkAddress (address: string | Uint8Array, allowCached =
152152
u8as.some((a) => u8aEq(a, u8a))
153153
);
154154

155-
return (entry && entry[0]) || null;
155+
return entry?.[0] || null;
156156
} catch {
157157
return null;
158158
}

phishing/detectPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import { detectPackage } from 'https://deno.land/x/polkadot@0.2.41/util/mod.ts';
3+
import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
44

55
import others from './detectOther.ts';
66
import { packageInfo } from './packageInfo.ts';

phishing/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { fetch } from 'https://deno.land/x/polkadot@0.2.41/x-fetch/mod.ts';
2+
import { fetch } from 'https://deno.land/x/polkadot/x-fetch/mod.ts';
33

44

55
async function fetchWithTimeout (url: string, timeout = 2000): Promise<Response> {

phishing/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/phishing', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.41' };
3+
export const packageInfo = { name: '@polkadot/phishing', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.21.6' };

0 commit comments

Comments
 (0)