remove redundant publishing of dict info

This commit is contained in:
adueck 2023-01-22 21:16:10 +05:00
parent 185025ac73
commit 7800686870
8 changed files with 27 additions and 29 deletions

View File

@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"@lingdocs/inflect": "5.4.2",
"@lingdocs/inflect": "5.4.3",
"base64url": "^3.0.1",
"bcryptjs": "^2.4.3",
"connect-redis": "^6.0.0",
@ -124,9 +124,9 @@
}
},
"node_modules/@lingdocs/inflect": {
"version": "5.4.2",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.2.tgz",
"integrity": "sha512-AV/RwKPRtWJ+eRL7r/50LvfZJyjK0H425j5IBkObYsr9wCHNHiEewZtSm+T4NWME3YEYZVt7O58dqQBxlumefw==",
"version": "5.4.3",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.3.tgz",
"integrity": "sha512-6k8gYCED/x5bv/U+gUgDXZGqBIkjChmDsUlQpnJiE4ToRupj05ci1QT95TU9GhXs0ohlE/3QXK/lmbddJv9E9w==",
"license": "MIT",
"dependencies": {
"pbf": "^3.2.1",
@ -2741,9 +2741,9 @@
}
},
"@lingdocs/inflect": {
"version": "5.4.2",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.2.tgz",
"integrity": "sha512-AV/RwKPRtWJ+eRL7r/50LvfZJyjK0H425j5IBkObYsr9wCHNHiEewZtSm+T4NWME3YEYZVt7O58dqQBxlumefw==",
"version": "5.4.3",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.3.tgz",
"integrity": "sha512-6k8gYCED/x5bv/U+gUgDXZGqBIkjChmDsUlQpnJiE4ToRupj05ci1QT95TU9GhXs0ohlE/3QXK/lmbddJv9E9w==",
"requires": {
"pbf": "^3.2.1",
"rambda": "^7.3.0"

View File

@ -11,7 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@lingdocs/inflect": "5.4.2",
"@lingdocs/inflect": "5.4.3",
"base64url": "^3.0.1",
"bcryptjs": "^2.4.3",
"connect-redis": "^6.0.0",

View File

@ -45,10 +45,10 @@
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"
"@lingdocs/inflect@5.4.2":
"integrity" "sha512-AV/RwKPRtWJ+eRL7r/50LvfZJyjK0H425j5IBkObYsr9wCHNHiEewZtSm+T4NWME3YEYZVt7O58dqQBxlumefw=="
"resolved" "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.2.tgz"
"version" "5.4.2"
"@lingdocs/inflect@5.4.3":
"integrity" "sha512-6k8gYCED/x5bv/U+gUgDXZGqBIkjChmDsUlQpnJiE4ToRupj05ci1QT95TU9GhXs0ohlE/3QXK/lmbddJv9E9w=="
"resolved" "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.3.tgz"
"version" "5.4.3"
dependencies:
"pbf" "^3.2.1"
"rambda" "^7.3.0"

View File

@ -7,7 +7,7 @@
"name": "functions",
"dependencies": {
"@google-cloud/storage": "^5.8.1",
"@lingdocs/inflect": "5.4.2",
"@lingdocs/inflect": "5.4.3",
"@types/cors": "^2.8.10",
"@types/google-spreadsheet": "^3.0.2",
"@types/react": "^18.0.21",
@ -31,7 +31,7 @@
"typescript": "^4.6.3"
},
"engines": {
"node": "16"
"node": "18"
}
},
"node_modules/@ampproject/remapping": {
@ -1468,9 +1468,9 @@
}
},
"node_modules/@lingdocs/inflect": {
"version": "5.4.2",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.2.tgz",
"integrity": "sha512-AV/RwKPRtWJ+eRL7r/50LvfZJyjK0H425j5IBkObYsr9wCHNHiEewZtSm+T4NWME3YEYZVt7O58dqQBxlumefw==",
"version": "5.4.3",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.3.tgz",
"integrity": "sha512-6k8gYCED/x5bv/U+gUgDXZGqBIkjChmDsUlQpnJiE4ToRupj05ci1QT95TU9GhXs0ohlE/3QXK/lmbddJv9E9w==",
"license": "MIT",
"dependencies": {
"pbf": "^3.2.1",
@ -8050,9 +8050,9 @@
}
},
"@lingdocs/inflect": {
"version": "5.4.2",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.2.tgz",
"integrity": "sha512-AV/RwKPRtWJ+eRL7r/50LvfZJyjK0H425j5IBkObYsr9wCHNHiEewZtSm+T4NWME3YEYZVt7O58dqQBxlumefw==",
"version": "5.4.3",
"resolved": "https://npm.lingdocs.com/@lingdocs%2finflect/-/inflect-5.4.3.tgz",
"integrity": "sha512-6k8gYCED/x5bv/U+gUgDXZGqBIkjChmDsUlQpnJiE4ToRupj05ci1QT95TU9GhXs0ohlE/3QXK/lmbddJv9E9w==",
"requires": {
"pbf": "^3.2.1",
"rambda": "^7.3.0"

View File

@ -15,7 +15,7 @@
"main": "lib/functions/src/index.js",
"dependencies": {
"@google-cloud/storage": "^5.8.1",
"@lingdocs/inflect": "5.4.2",
"@lingdocs/inflect": "5.4.3",
"@types/cors": "^2.8.10",
"@types/google-spreadsheet": "^3.0.2",
"@types/react": "^18.0.21",

View File

@ -31,7 +31,6 @@ const dictionaryInfoFilename = "dict-info";
// const hunspellAffFileFilename = "ps_AFF.aff";
// const hunspellDicFileFilename = "ps_AFF.dic";
const allWordsJsonFilename = "all-words.json";
const allWordsInfoFilename = "all-words-info.json";
const url = `${baseUrl}${dictionaryFilename}`;
const infoUrl = `${baseUrl}${dictionaryInfoFilename}`;
@ -236,8 +235,7 @@ async function upload(content: Buffer | string, filename: string) {
// }
async function uploadAllWordsToStoarage(info: T.DictionaryInfo, words: T.PsString[]) {
await upload(JSON.stringify({ info, words }), allWordsJsonFilename);
await upload(JSON.stringify(info), allWordsInfoFilename);
await upload(JSON.stringify({ info, words } as T.AllWordsWithInflections), allWordsJsonFilename);
}
async function uploadDictionaryToStorage(dictionary: T.Dictionary) {

View File

@ -7,7 +7,7 @@
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.2",
"@lingdocs/ps-react": "5.4.2",
"@lingdocs/ps-react": "5.4.3",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",

View File

@ -2349,10 +2349,10 @@
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"
"@lingdocs/ps-react@5.4.2":
version "5.4.2"
resolved "https://npm.lingdocs.com/@lingdocs%2fps-react/-/ps-react-5.4.2.tgz#cb6b7e665568f4c5d20d8ace032c87ac5baab1ff"
integrity sha512-P0gMe8GG5DKM5xGbXP1zt+J1Gga+Lzm27K75VEc07IiBwJ5l2CKtc5freqv02/qUPAwVauRNAoK68VTMm5TrLA==
"@lingdocs/ps-react@5.4.3":
version "5.4.3"
resolved "https://npm.lingdocs.com/@lingdocs%2fps-react/-/ps-react-5.4.3.tgz#e76a0a826e06560469240db1ed97ef2e532baec0"
integrity sha512-5z1CC4+bm+TorLn7XtAkyF2iKkBVYx1z+qd2PyLjV0s1iRLLj/JwobZ9kWlGQwcPG0JZ3TZR3zzfdKZF9jRD/A==
dependencies:
"@formkit/auto-animate" "^1.0.0-beta.3"
classnames "^2.2.6"