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

@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';
import { join } from 'node:path';
import * as z from 'zod';
import { protocol } from 'electron';
import LRU from 'lru-cache';
import { LRUCache } from 'lru-cache';
import type { OptionalResourceService } from './OptionalResourceService';
import { SignalService as Proto } from '../ts/protobuf';
@ -36,7 +36,7 @@ type SheetCacheEntry = Map<string, Uint8Array>;
export class EmojiService {
private readonly emojiMap = new Map<string, EmojiEntryType>();
private readonly sheetCache = new LRU<string, SheetCacheEntry>({
private readonly sheetCache = new LRUCache<string, SheetCacheEntry>({
// Each sheet is roughly 500kb
max: 10,
});