Skip to content

Commit

Permalink
Downgrade flat dependency to support Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
kkasperconsolinno committed Nov 28, 2023
1 parent 76a4d1f commit cee9c8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/plugins/piral-translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@
},
"dependencies": {
"deepmerge": "^4.2.2",
"flat": "^6.0.1"
"flat": "^5.0.2"
},
"devDependencies": {
"@types/deepmerge": "^2.2.0",
"@types/flat": "^5.0.5",
"@types/react": "^18.0.0",
"piral-core": "^1.3.3",
"react": "^18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/piral-translate/src/flatten-translations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { flatten } from 'flat';
import flatten from 'flat';
import { LocalizationMessages, NestedLocalizationMessages } from './types';

export function flattenTranslations(messages: LocalizationMessages | NestedLocalizationMessages): LocalizationMessages {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,11 @@
"@types/qs" "*"
"@types/serve-static" "*"

"@types/flat@^5.0.5":
version "5.0.5"
resolved "https://registry.yarnpkg.com/@types/flat/-/flat-5.0.5.tgz#2304df0b2b1e6dde50d81f029593e0a1bc2474d3"
integrity sha512-nPLljZQKSnac53KDUDzuzdRfGI0TDb5qPrb+SrQyN3MtdQrOnGsKniHN1iYZsJEBIVQve94Y6gNz22sgISZq+Q==

"@types/fs-extra@^5.0.5":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-5.1.0.tgz#2a325ef97901504a3828718c390d34b8426a10a1"
Expand Down Expand Up @@ -6076,11 +6081,6 @@ flat@^5.0.2:
resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241"
integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==

flat@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/flat/-/flat-6.0.1.tgz#09070cf918293b401577f20843edeadf4d3e8755"
integrity sha512-/3FfIa8mbrg3xE7+wAhWeV+bd7L2Mof+xtZb5dRDKZ+wDvYJK4WDYeIOuOhre5Yv5aQObZrlbRmk3RTSiuQBtw==

flexsearch@^0.6.32:
version "0.6.32"
resolved "https://registry.yarnpkg.com/flexsearch/-/flexsearch-0.6.32.tgz#1e20684d317af65baa445cdd9864a5f5b320f510"
Expand Down

0 comments on commit cee9c8e

Please sign in to comment.