diff --git a/account/package-lock.json b/account/package-lock.json index b6e8482..388500d 100644 --- a/account/package-lock.json +++ b/account/package-lock.json @@ -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" diff --git a/account/package.json b/account/package.json index d8813c2..cd4c0d6 100644 --- a/account/package.json +++ b/account/package.json @@ -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", diff --git a/account/yarn.lock b/account/yarn.lock index db843ae..fcb8ff9 100644 --- a/account/yarn.lock +++ b/account/yarn.lock @@ -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" diff --git a/functions/package-lock.json b/functions/package-lock.json index 639c657..bc92d01 100644 --- a/functions/package-lock.json +++ b/functions/package-lock.json @@ -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" diff --git a/functions/package.json b/functions/package.json index 0a60b06..2864ab1 100644 --- a/functions/package.json +++ b/functions/package.json @@ -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", diff --git a/functions/src/publish.ts b/functions/src/publish.ts index e3f8caa..6518a91 100644 --- a/functions/src/publish.ts +++ b/functions/src/publish.ts @@ -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) { diff --git a/website/package.json b/website/package.json index e085d2a..92685ae 100644 --- a/website/package.json +++ b/website/package.json @@ -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", diff --git a/website/yarn.lock b/website/yarn.lock index e43b8ec..e81a1de 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -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"