@jetshop/intl 5.17.0-alpha.bcdca664 → 5.17.0-alpha.dbb7bf86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -3
- package/package.json +3 -3
package/index.ts
CHANGED
|
@@ -48,9 +48,8 @@ interface TranslateType extends WithContextFormatMessage {
|
|
|
48
48
|
const withContextFormatMessage =
|
|
49
49
|
(callback: (t: FormatMsgType) => ReturnType<FormatMsgTypes>) =>
|
|
50
50
|
(...args: Parameters<FormatMsgTypes>) =>
|
|
51
|
-
React.createElement(IntlContext.Consumer, null, (t: FormatMsgType) =>
|
|
52
|
-
callback(t)(...args)
|
|
53
|
-
);
|
|
51
|
+
React.createElement(IntlContext.Consumer, null, ((t: FormatMsgType) =>
|
|
52
|
+
callback(t)(...args)) as unknown as React.ReactNode);
|
|
54
53
|
|
|
55
54
|
const Translate = withContextFormatMessage((t) => t) as TranslateType;
|
|
56
55
|
Translate.rich = withContextFormatMessage((t) => t.rich);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/intl",
|
|
3
|
-
"version": "5.17.0-alpha.
|
|
3
|
+
"version": "5.17.0-alpha.dbb7bf86",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
30
|
-
"@typescript-eslint/parser": "^5.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
30
|
+
"@typescript-eslint/parser": "^5.59.2",
|
|
31
31
|
"babel-plugin-transform-format-message": "^6.2.3",
|
|
32
32
|
"cross-spawn": "^6.0.5",
|
|
33
33
|
"eslint-plugin-format-message": "^6.2.3",
|