function checkRateLimits(
  url,
) {
  const ratelimited = rest.ratelimitedPaths.get(url);
  const global = rest.ratelimitedPaths.get("global");
  const now = Date.now();
  if (ratelimited && now < ratelimited.resetTimestamp) {
    return ratelimited.resetTimestamp - now;
  }
  if (global && now < global.resetTimestamp) {
    return global.resetTimestamp - now;
  }
  return false;
}
/** Check the rate limits for a url or a bucket. */
Check the rate limits for a url or a bucket.
Check the rate limits for a url or a bucket .
function checkRateLimits(
  url,
) {
  const ratelimited = rest.ratelimitedPaths.get(url);
  const global = rest.ratelimitedPaths.get("global");
  const now = Date.now();
  if (ratelimited && now < ratelimited.resetTimestamp) {
    return ratelimited.resetTimestamp - now;
  }
  if (global && now < global.resetTimestamp) {
    return global.resetTimestamp - now;
  }
  return false;
}
function checkRateLimits ( url , ) { const ratelimited = rest . ratelimitedPaths . get ( url ) ; const global = rest . ratelimitedPaths . get ( "global" ) ; const now = Date . now ( ) ; if ( ratelimited && now < ratelimited . resetTimestamp ) { return ratelimited . resetTimestamp - now ; } if ( global && now < global . resetTimestamp ) { return global . resetTimestamp - now ; } return false ; }
Check the rate limits for a url or a bucket.
Check the rate limits for a url or a bucket .