Update emoji-datasource to 16.0.0
This commit is contained in:
parent
7bb8a35839
commit
b2f1639146
14 changed files with 4113 additions and 4083 deletions
|
@ -4,19 +4,21 @@
|
|||
import { writeFile, readFile } from 'node:fs/promises';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { join } from 'node:path';
|
||||
import { Buffer } from 'node:buffer';
|
||||
import z from 'zod';
|
||||
import prettier from 'prettier';
|
||||
|
||||
import type { OptionalResourceType } from '../types/OptionalResource.js';
|
||||
import { OptionalResourcesDictSchema } from '../types/OptionalResource.js';
|
||||
import { parseUnknown } from '../util/schemas.js';
|
||||
import { utf16ToEmoji } from '../util/utf16ToEmoji.js';
|
||||
|
||||
const VERSION = 10;
|
||||
|
||||
const MANIFEST_URL = `https://updates.signal.org/static/android/emoji/${VERSION}/emoji_data.json`;
|
||||
|
||||
const ManifestSchema = z.object({
|
||||
jumbomoji: z.record(z.string(), z.string().array()),
|
||||
jumbomoji: z.record(z.string(), z.string().transform(utf16ToEmoji).array()),
|
||||
});
|
||||
|
||||
async function fetchJSON(url: string): Promise<unknown> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue