From a0a10c8b5cd667e699b1e1aef15e6a67d3f2b6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 29 Oct 2025 13:16:34 -0400 Subject: [PATCH] chore: up ttlcache to 2.x --- install/package.json | 2 +- src/cache/ttl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/package.json b/install/package.json index 3a6155f6d7..ff5d94af5e 100644 --- a/install/package.json +++ b/install/package.json @@ -33,7 +33,7 @@ "@fontsource/inter": "5.2.8", "@fontsource/poppins": "5.2.7", "@fortawesome/fontawesome-free": "6.7.2", - "@isaacs/ttlcache": "1.4.1", + "@isaacs/ttlcache": "2.0.1", "@nodebb/spider-detector": "2.0.3", "@popperjs/core": "2.11.8", "@textcomplete/contenteditable": "0.1.13", diff --git a/src/cache/ttl.js b/src/cache/ttl.js index c8ed90af57..61cd4c07f4 100644 --- a/src/cache/ttl.js +++ b/src/cache/ttl.js @@ -1,7 +1,7 @@ 'use strict'; module.exports = function (opts) { - const TTLCache = require('@isaacs/ttlcache'); + const { TTLCache } = require('@isaacs/ttlcache'); const os = require('os'); const winston = require('winston'); const chalk = require('chalk');