fetch-ponyfill & pinkie-promise -> cross-fetch 💥

cross-fetch requires `globalThis.Promise` to be present.
This commit is contained in:
Jannis R 2022-10-24 16:58:54 +02:00
parent 7765f9d7a1
commit 0275b65c7a
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 2 additions and 4 deletions

View file

@ -8,8 +8,7 @@ const {randomBytes} = require('crypto')
const createHash = require('create-hash')
const pick = require('lodash/pick')
const {stringify} = require('qs')
const Promise = require('pinkie-promise')
const {Request, fetch} = require('fetch-ponyfill')({Promise})
const {Request, fetch} = require('cross-fetch')
const {parse: parseContentType} = require('content-type')
const {byErrorCode} = require('./errors')

View file

@ -48,7 +48,7 @@
"@derhuerst/round-robin-scheduler": "^1.0.4",
"content-type": "^1.0.4",
"create-hash": "^1.2.0",
"fetch-ponyfill": "^7.0.0",
"cross-fetch": "^3.1.5",
"google-polyline": "^1.0.3",
"gps-distance": "0.0.4",
"https-proxy-agent": "^5.0.0",
@ -57,7 +57,6 @@
"object-scan": "^13.0.0",
"p-retry": "^4.1.0",
"p-throttle": "^4.1.1",
"pinkie-promise": "^2.0.1",
"qs": "^6.6.0",
"slugg": "^1.2.0"
},