mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-17 19:21:05 +00:00
Build common as esm (#33)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/phishing#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/x-fetch": "^4.2.2-12"
|
||||
"@polkadot/x-fetch": "^4.2.2-14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/js-yaml": "^3.12.5",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import fs from 'fs';
|
||||
import { safeLoad } from 'js-yaml';
|
||||
|
||||
import fetch from '@polkadot/x-fetch';
|
||||
import { fetch } from '@polkadot/x-fetch';
|
||||
|
||||
import { retrieveHostList } from '.';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { HostList } from './types';
|
||||
|
||||
import fetch from '@polkadot/x-fetch';
|
||||
import { fetch } from '@polkadot/x-fetch';
|
||||
|
||||
// Equivalent to https://raw.githubusercontent.com/polkadot-js/phishing/master/all.json
|
||||
const ALL_JSON = 'https://polkadot.js.org/phishing/all.json';
|
||||
|
||||
Reference in New Issue
Block a user