Update emoji-datasource to 16.0.0

This commit is contained in:
Fedor Indutny 2025-09-30 13:28:52 -07:00 committed by GitHub
commit b2f1639146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 4113 additions and 4083 deletions

View file

@ -61,13 +61,13 @@ export class OptionalResourceService {
return undefined;
}
const inMemory = this.#cache.get(name);
if (inMemory) {
return inMemory;
}
const filePath = join(this.resourcesDir, name);
return this.#queueFileWork(filePath, async () => {
const inMemory = this.#cache.get(name);
if (inMemory) {
return inMemory;
}
try {
const onDisk = await readFile(filePath);
const digest = createHash('sha512').update(onDisk).digest();