mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
p-throttle@4
This commit is contained in:
parent
874ac69b1b
commit
cec4f4dcaf
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@
|
|||
"luxon": "^1.3.0",
|
||||
"object-scan": "^13.0.0",
|
||||
"p-retry": "^4.1.0",
|
||||
"p-throttle": "^3.1.0",
|
||||
"p-throttle": "^4.1.1",
|
||||
"pinkie-promise": "^2.0.1",
|
||||
"qs": "^6.6.0",
|
||||
"slugg": "^1.2.0",
|
||||
|
|
|
@ -9,7 +9,7 @@ const withThrottling = (profile, limit = 5, interval = 1000) => {
|
|||
|
||||
return {
|
||||
...profile,
|
||||
request: throttle(request, limit, interval)
|
||||
request: throttle({limit, interval})(request)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue