1"use strict"; 2var __assign = (this && this.__assign) || function () { 3 __assign = Object.assign || function(t) { 4 for (var s, i = 1, n = arguments.length; i < n; i++) { 5 s = arguments[i]; 6 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) 7 t[p] = s[p]; 8 } 9 return t; 10 }; 11 return __assign.apply(this, arguments); 12}; 13Object.defineProperty(exports, "__esModule", { value: true }); 14var defaultOptions = { 15 delayFirstAttempt: false, 16 jitter: "none", 17 maxDelay: Infinity, 18 numOfAttempts: 10, 19 retry: function () { return true; }, 20 startingDelay: 100, 21 timeMultiple: 2 22}; 23function getSanitizedOptions(options) { 24 var sanitized = __assign(__assign({}, defaultOptions), options); 25 if (sanitized.numOfAttempts < 1) { 26 sanitized.numOfAttempts = 1; 27 } 28 return sanitized; 29} 30exports.getSanitizedOptions = getSanitizedOptions; 31//# sourceMappingURL=options.js.map