1////////////////////////////////////////////////////////////////////////// 2// // 3// This is a generated file. You can view the original // 4// source in your browser if your browser supports source maps. // 5// Source maps are supported by all recent versions of Chrome, Safari, // 6// and Firefox, and by Internet Explorer 11. // 7// // 8////////////////////////////////////////////////////////////////////////// 9 10 11(function () { 12 13/* Imports */ 14var Meteor = Package.meteor.Meteor; 15var global = Package.meteor.global; 16var meteorEnv = Package.meteor.meteorEnv; 17var Random = Package.random.Random; 18var meteorInstall = Package.modules.meteorInstall; 19var meteorBabelHelpers = Package.modules.meteorBabelHelpers; 20var Promise = Package.promise.Promise; 21var Symbol = Package['ecmascript-runtime-client'].Symbol; 22var Map = Package['ecmascript-runtime-client'].Map; 23var Set = Package['ecmascript-runtime-client'].Set; 24 25/* Package-scope variables */ 26var Retry; 27 28var require = meteorInstall({"node_modules":{"meteor":{"retry":{
28"retry.js":function module(require,exports,module){ 29 30///////////////////////////////////////////////////////////////////////////////////////// 31// // 32// packages/retry/retry.js // 33// // 34///////////////////////////////////////////////////////////////////////////////////////// 35 // 36module.export({ 37 Retry: function () { 38 return Retry; 39 } 40}); 41 42var Retry = /*#__PURE__*/function () { 43 function Retry() { 44 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, 45 _ref$baseTimeout = _ref.baseTimeout, 46 baseTimeout = _ref$baseTimeout === void 0 ? 1000 : _ref$baseTimeout, 47 _ref$exponent = _ref.exponent, 48 exponent = _ref$exponent === void 0 ? 2.2 : _ref$exponent, 49 _ref$maxTimeout = _ref.maxTimeout, 50 maxTimeout = _ref$maxTimeout === void 0 ? 5 * 60 * 1000 : _ref$maxTimeout, 51 _ref$minTimeout = _ref.minTimeout, 52 minTimeout = _ref$minTimeout === void 0 ? 10 : _ref$minTimeout, 53 _ref$minCount = _ref.minCount, 54 minCount = _ref$minCount === void 0 ? 2 : _ref$minCount, 55 _ref$fuzz = _ref.fuzz, 56 fuzz = _ref$fuzz === void 0 ? 0.5 : _ref$fuzz; 57 58 this.baseTimeout = baseTimeout; 59 this.exponent = exponent; 60 this.maxTimeout = maxTimeout; 61 this.minTimeout = minTimeout; 62 this.minCount = minCount; 63 this.fuzz = fuzz; 64 this.retryTimer = null; 65 } // Reset a pending retry, if any. 66 67 68 var _proto = Retry.prototype; 69 70 _proto.clear = function () { 71 function clear() { 72 if (this.retryTimer) { 73 clearTimeout(this.retryTimer); 74 } 75 76 this.retryTimer = null; 77 } 78 79 return clear; 80 }() // Calculate how long to wait in milliseconds to retry, based on the 81 // `count` of which retry this is. 82 ; 83 84 _proto._timeout = function () { 85 function _timeout(count) { 86 if (count < this.minCount) { 87 return this.minTimeout; 88 } // fuzz the timeout randomly, to avoid reconnect storms when a 89 // server goes down. 90 91 92 var timeout = Math.min(this.maxTimeout, this.baseTimeout * Math.pow(this.exponent, count)) * (Random.fraction() * this.fuzz + (1 - this.fuzz / 2)); 93 return timeout; 94 } 95 96 return _timeout; 97 }() // Call `fn` after a delay, based on the `count` of which retry this is. 98 ; 99 100 _proto.retryLater = function () { 101 function retryLater(count, fn) { 102 var timeout = this._timeout(count); 103 104 if (this.retryTimer) clearTimeout(this.retryTimer); 105 this.retryTimer = Meteor.setTimeout(fn, timeout); 106 return timeout; 107 } 108 109 return retryLater; 110 }(); 111 112 return Retry; 113}(); 114///////////////////////////////////////////////////////////////////////////////////////// 115 116}
116}}}},{ 117 "extensions": [ 118 ".js", 119 ".json" 120 ] 121}); 122 123var exports = require("/node_modules/meteor/retry/retry.js"); 124 125/* Exports */ 126Package._define("retry", exports, { 127 Retry: Retry 128}); 129 130})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.