Upgrade outdated dependencies

This commit is contained in:
Jamie Kyle 2024-11-14 17:28:55 -08:00 committed by GitHub
parent ec3c46d356
commit ca19a7a774
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 2416 additions and 2892 deletions

View file

@ -1,7 +1,7 @@
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import LRU from 'lru-cache';
import { LRUCache } from 'lru-cache';
import type {
AddressableAttachmentType,
@ -20,7 +20,7 @@ let cleanupTimeout: NodeJS.Timeout | undefined;
// Max number of orphaned attachments before we schedule a cleanup.
const MAX_ORPHANED_COUNT = 10000;
const lru = new LRU<string, Promise<LocalAttachmentV2Type>>({
const lru = new LRUCache<string, Promise<LocalAttachmentV2Type>>({
max: 1000,
});