UNPKG
check-ethereum-scanner
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
Safety checks for new Ethereum tokens
check-ethereum-scanner
/
Ethereum-Renounced-Contract-Scanner
/
node_modules
/
cross-fetch
/
dist
/
node-polyfill.js
12 lines
(9 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
fetchNode =
require
(
'./node-ponyfill'
)
if
(!
global
.
fetch
) {
const
fetch = fetchNode.
fetch
.
bind
({})
global
.
fetch
= fetch
global
.
fetch
.
polyfill
=
true
global
.
Response
= fetchNode.
Response
global
.
Headers
= fetchNode.
Headers
global
.
Request
= fetchNode.
Request
}