From f3920a3c7230dee47a0dd8a5cc56ed3b8f987569 Mon Sep 17 00:00:00 2001 From: Amr Salama Date: Wed, 29 Sep 2021 01:27:23 +0200 Subject: [PATCH] Fix rateLimitWrapper function name typo --- src/wrappers/rateLimit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrappers/rateLimit.js b/src/wrappers/rateLimit.js index ebdf4cc..0eaf691 100644 --- a/src/wrappers/rateLimit.js +++ b/src/wrappers/rateLimit.js @@ -3,7 +3,7 @@ const { RateLimiter } = require('limiter'); const JwksRateLimitError = require('../errors/JwksRateLimitError'); -function rateLimtWrapper(client, { jwksRequestsPerMinute = 10 }) { +function rateLimitWrapper(client, { jwksRequestsPerMinute = 10 }) { const logger = debug('jwks'); const getSigningKey = client.getSigningKey.bind(client); @@ -32,4 +32,4 @@ function rateLimtWrapper(client, { jwksRequestsPerMinute = 10 }) { }); } -module.exports.default = rateLimtWrapper; +module.exports.default = rateLimitWrapper;