NET-Web-API-w-Angular/my-app/node_modules/exponential-backoff/dist/jitter/jitter.factory.js

15 lines
471 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var full_jitter_1 = require("./full/full.jitter");
var no_jitter_1 = require("./no/no.jitter");
function JitterFactory(options) {
switch (options.jitter) {
case "full":
return full_jitter_1.fullJitter;
case "none":
default:
return no_jitter_1.noJitter;
}
}
exports.JitterFactory = JitterFactory;
//# sourceMappingURL=jitter.factory.js.map