mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-11-02 00:41:10 +00:00
@pezkuwi/util, util-crypto and x-fetch now require ^14.0.26, which brings @pezkuwi/wasm-crypto 7.5.20 in place of 7.5.17. The lockfile moves with it. axios moves to ^1.20.0 in resolutions, with the lockfile entries that the Dependabot PR for it (#11) left out; without them `yarn install --immutable` refused to run and every check on that PR failed. Lock Threads has failed on every scheduled run: lock-threads v4 rejects a github-token longer than 100 characters, and GitHub's tokens now are. v6.0.2 fixes the validation. Since v5 the action also locks discussions by default; process-only keeps it to issues and pull requests, as before and as the job's permissions allow.
@pezkuwi/phishing
To check for sites that are on the list -
import { checkIfDenied } from '@pezkuwi/phishing';
const isOnDeny = await checkIfDenied(window.location.host);
console.log(`isOnDeny=${isOnDeny}`);
To check for addresses that are on the list -
import { checkAddress } from '@pezkuwi/phishing';
const info = await checkAddress('1b....');
if (info) {
console.log(`The address is reported as ${info}`);
} else {
console.log('Not reported');
}