You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add generateJitter utility function and update QBORepository to use it
- Introduced `generateJitter` function in `utils.ts` to create cryptographically secure random jitter for retry delays, enhancing the reliability of retry logic.
- Updated `QBORepository` to utilize the new `generateJitter` function instead of a manual jitter calculation, improving code clarity and maintainability.
- Added unit tests for `generateJitter` to ensure it generates values within the expected range and behaves consistently across multiple calls.
These changes enhance the utility functions available for managing delays in API calls, contributing to a more robust integration with QuickBooks Online.
0 commit comments