"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Bottleneck = require('bottleneck');
exports.addRateLimiting = function (octokit, limiter) {
    if (!limiter) {
        limiter = new Bottleneck(1, 1000);
    }
    var noop = function () { return Promise.resolve(); };
    octokit.hook.before('request', limiter.schedule.bind(limiter, noop));
};
//# sourceMappingURL=rate-limiting.js.map