UNPKG

redis-sliding-rate-limiter

Version:

Flexible and performant rate limiter based on sliding window algorithm with arbitrary precision

11 lines (10 loc) 990 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertWindowUnitToSubdivision = exports.MicrosecondsToWindowSubdivision = exports.WindowUnitToMilliseconds = exports.Unit = exports.LuaScript = void 0; var script_1 = require("./script"); Object.defineProperty(exports, "LuaScript", { enumerable: true, get: function () { return script_1.LuaScript; } }); var utils_1 = require("./utils"); Object.defineProperty(exports, "Unit", { enumerable: true, get: function () { return utils_1.Unit; } }); Object.defineProperty(exports, "WindowUnitToMilliseconds", { enumerable: true, get: function () { return utils_1.WindowUnitToMilliseconds; } }); Object.defineProperty(exports, "MicrosecondsToWindowSubdivision", { enumerable: true, get: function () { return utils_1.MicrosecondsToWindowSubdivision; } }); Object.defineProperty(exports, "convertWindowUnitToSubdivision", { enumerable: true, get: function () { return utils_1.convertWindowUnitToSubdivision; } });