mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
fetch-ponyfill & pinkie-promise -> cross-fetch 💥
cross-fetch requires `globalThis.Promise` to be present.
This commit is contained in:
parent
7765f9d7a1
commit
0275b65c7a
2 changed files with 2 additions and 4 deletions
|
@ -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')
|
||||
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue