p-throttle@4

This commit is contained in:
Jannis R 2021-06-28 23:33:05 +02:00
parent 874ac69b1b
commit cec4f4dcaf
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -9,7 +9,7 @@ const withThrottling = (profile, limit = 5, interval = 1000) => {
return {
...profile,
request: throttle(request, limit, interval)
request: throttle({limit, interval})(request)
}
}