All files / src index.ts

100% Statements 16/16
100% Branches 0/0
53.84% Functions 7/13
100% Lines 16/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45                                            1x 1x 1x 1x 1x 1x 1x       1x 23x 3x 2x 3x       1x 6x 3x 4x  
/*
Copyright (c) 2025 Bernier LLC
 
This file is licensed to the client under a limited-use license.
The client may use and modify this code *only within the scope of the project it was delivered for*.
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
*/
 
// Export types
export type {
  RetryPolicyOptions,
  RetryPolicyResult,
  JitterConfig,
  BackoffConfig
} from './types';
 
// Export runtime configuration types and functions
export type {
  RetryPolicyRuntimeConfig,
  ConfigurationSource
} from './config/loadOptionalConfig';
 
export {
  loadOptionalRetryPolicyConfig,
  loadOptionalRetryPolicyConfigWithSources,
  setGlobalRetryPolicyConfig,
  getGlobalRetryPolicyConfig,
  clearGlobalRetryPolicyConfig,
  mergeConfigurations
} from './config/loadOptionalConfig';
 
// Export main class and functions
export {
  RetryPolicy,
  createRetryPolicy,
  calculateRetryDelay,
  shouldRetry
} from './retry-policy';
 
// Export constants
export {
  DEFAULT_RETRY_OPTIONS,
  DEFAULT_JITTER_CONFIG,
  DEFAULT_BACKOFF_CONFIG
} from './retry-policy';