diff --git a/lib/RateLimiterRes.js b/lib/RateLimiterRes.js index 615efdb..e610b9b 100644 --- a/lib/RateLimiterRes.js +++ b/lib/RateLimiterRes.js @@ -1,5 +1,3 @@ -const util = require('util'); - module.exports = class RateLimiterRes { constructor(remainingPoints, msBeforeNext, consumedPoints, isFirstInDuration) { this.remainingPoints = typeof remainingPoints === 'undefined' ? 0 : remainingPoints; // Remaining points in current duration @@ -52,7 +50,7 @@ module.exports = class RateLimiterRes { }; } - [util.inspect.custom]() { + [Symbol.for("nodejs.util.inspect.custom")]() { return this._getDecoratedProperties(); }