chore: update emoji-picker-element to v1.3.0 (#1888)
This commit is contained in:
parent
9acb3faac8
commit
57b75ade1b
|
@ -1,17 +1,15 @@
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import { promisify } from 'util'
|
import { promisify } from 'util'
|
||||||
import trimEmojiData from 'emoji-picker-element/trimEmojiData.cjs'
|
|
||||||
|
|
||||||
const readFile = promisify(fs.readFile)
|
const readFile = promisify(fs.readFile)
|
||||||
const writeFile = promisify(fs.writeFile)
|
const writeFile = promisify(fs.writeFile)
|
||||||
|
|
||||||
async function main () {
|
async function main () {
|
||||||
let json = JSON.parse(await readFile(
|
const json = JSON.parse(await readFile(
|
||||||
path.resolve(__dirname, '../node_modules/emojibase-data/en/data.json'),
|
path.resolve(__dirname, '../node_modules/emoji-picker-element-data/en/emojibase-legacy/data.json'),
|
||||||
'utf8')
|
'utf8')
|
||||||
)
|
)
|
||||||
json = trimEmojiData(json)
|
|
||||||
await writeFile(
|
await writeFile(
|
||||||
path.resolve(__dirname, '../static/emoji-all-en.json'),
|
path.resolve(__dirname, '../static/emoji-all-en.json'),
|
||||||
JSON.stringify(json),
|
JSON.stringify(json),
|
||||||
|
|
|
@ -53,9 +53,9 @@
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"css-dedoupe": "^0.1.1",
|
"css-dedoupe": "^0.1.1",
|
||||||
"emoji-picker-element": "^1.2.0",
|
"emoji-picker-element": "^1.3.0",
|
||||||
|
"emoji-picker-element-data": "^1.0.0",
|
||||||
"emoji-regex": "^9.0.0",
|
"emoji-regex": "^9.0.0",
|
||||||
"emojibase-data": "^5.1.1",
|
|
||||||
"encoding": "^0.1.13",
|
"encoding": "^0.1.13",
|
||||||
"escape-html": "^1.0.3",
|
"escape-html": "^1.0.3",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -2913,10 +2913,15 @@ emittery@^0.4.1:
|
||||||
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.4.1.tgz#abe9d3297389ba424ac87e53d1c701962ce7433d"
|
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.4.1.tgz#abe9d3297389ba424ac87e53d1c701962ce7433d"
|
||||||
integrity sha512-r4eRSeStEGf6M5SKdrQhhLK5bOwOBxQhIE3YSTnZE3GpKiLfnnhE+tPtrJE79+eDJgm39BM6LSoI8SCx4HbwlQ==
|
integrity sha512-r4eRSeStEGf6M5SKdrQhhLK5bOwOBxQhIE3YSTnZE3GpKiLfnnhE+tPtrJE79+eDJgm39BM6LSoI8SCx4HbwlQ==
|
||||||
|
|
||||||
emoji-picker-element@^1.2.0:
|
emoji-picker-element-data@^1.0.0:
|
||||||
version "1.2.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/emoji-picker-element/-/emoji-picker-element-1.2.0.tgz#50e998234ef2368394b7286bea37d690c55ab762"
|
resolved "https://registry.yarnpkg.com/emoji-picker-element-data/-/emoji-picker-element-data-1.0.0.tgz#1e9c4b399ce6e1858514df4c25b65284d981f92f"
|
||||||
integrity sha512-B8QPBXyfs9w58Xbxy2SNNa3TXkCsHYRQD0edyszVBmTAm1IBrtd7A0+Xs/yPL/5suAPkxYrztQa6Bk0QDMeG6Q==
|
integrity sha512-Ch6Ibuc2DJAh9MMyaH0hxsfkCoGAkYVWf9i1JC30PsaC4L9rmS7LMvu1iR396NHecdMYToJEQEOneatPVGe/IQ==
|
||||||
|
|
||||||
|
emoji-picker-element@^1.3.0:
|
||||||
|
version "1.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/emoji-picker-element/-/emoji-picker-element-1.3.0.tgz#d78deba0ebc4b87731bb2c16f7be00ec458d7647"
|
||||||
|
integrity sha512-Zg+8rtr3vXKuAgBXWpSBghHq+I6o7+35N+25MN3P07pUyk07GXJ6B+gKr8ttUo2LZrLDZVoqKOVMzowkNwwZIg==
|
||||||
|
|
||||||
emoji-regex@^7.0.1:
|
emoji-regex@^7.0.1:
|
||||||
version "7.0.3"
|
version "7.0.3"
|
||||||
|
@ -2933,11 +2938,6 @@ emoji-regex@^9.0.0:
|
||||||
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.0.0.tgz#48a2309cc8a1d2e9d23bc6a67c39b63032e76ea4"
|
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.0.0.tgz#48a2309cc8a1d2e9d23bc6a67c39b63032e76ea4"
|
||||||
integrity sha512-6p1NII1Vm62wni/VR/cUMauVQoxmLVb9csqQlvLz+hO2gk8U2UYDfXHQSUYIBKmZwAKz867IDqG7B+u0mj+M6w==
|
integrity sha512-6p1NII1Vm62wni/VR/cUMauVQoxmLVb9csqQlvLz+hO2gk8U2UYDfXHQSUYIBKmZwAKz867IDqG7B+u0mj+M6w==
|
||||||
|
|
||||||
emojibase-data@^5.1.1:
|
|
||||||
version "5.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/emojibase-data/-/emojibase-data-5.1.1.tgz#0a0d63dd07ce1376b3d27642f28cafa46f651de6"
|
|
||||||
integrity sha512-za/ma5SfogHjwUmGFnDbTvSfm8GGFvFaPS27GPti16YZSp5EPgz+UDsZCATXvJGit+oRNBbG/FtybXHKi2UQgQ==
|
|
||||||
|
|
||||||
emojis-list@^3.0.0:
|
emojis-list@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
|
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
|
||||||
|
|
Loading…
Reference in New Issue