Skip to content

Conversation

@dubek
Copy link

@dubek dubek commented Jan 8, 2026

Description

Correct the documentation for the jitterPercentage parameter to match the behavior in the code.

The relevant code (unchanged) in token-manager is:

      const jitterRange = delay * (jitterPercentage / 100);
      const jitterAmount = Math.random() * jitterRange - (jitterRange / 2);
      delay += jitterAmount;

Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Correct the documentation for the jitterPercentage parameter to match
the behavior in the code.
@jit-ci
Copy link

jit-ci bot commented Jan 8, 2026

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant