Skip to content

Commit

Permalink
fix: return TextEncoder polyfill as it's not JS standard
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Nov 13, 2023
1 parent 1b4e402 commit d12444a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 22 deletions.
1 change: 1 addition & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@types/react-dom": "^18.0.11",
"clsx": "^1.1.1",
"concurrently": "7.4.0",
"fast-text-encoding": "^1.0.6",
"jest": "^27.2.4",
"jest-fetch-mock": "^3.0.3",
"openapi-typescript": "^4.3.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/observers/invisible/secret.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'fast-text-encoding';

export const INVISIBLE_CHARACTERS = ['\u200C', '\u200D'];

export const INVISIBLE_REGEX = RegExp(
Expand Down
47 changes: 27 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions testapps/react-i18next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"@tolgee/core": "5.16.0",
"@tolgee/i18next": "5.16.0",
"concurrently": "^7.3.0",
"i18next": "^23.5.1",
"i18next": "23.5.1",
"i18next-icu": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.2.2",
"react-i18next": "13.2.2",
"react-scripts": "5.0.1",
"serve": "^14.1.1",
"web-vitals": "^2.1.4"
Expand Down

0 comments on commit d12444a

Please sign in to comment.