@tramvai/module-child-app 4.18.3 → 4.18.5

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.
@@ -94,11 +94,11 @@ const ChildAppWrapper = ({ name, version, tag, props, fallback: Fallback, }) =>
94
94
  };
95
95
  const ChildApp = memo((config) => {
96
96
  const { fallback } = config;
97
- const result = (jsx(UniversalErrorBoundary, { fallback: fallback, children: jsx(ChildAppWrapper, { ...config }) }));
97
+ let result = jsx(ChildAppWrapper, { ...config });
98
98
  if (process.env.__TRAMVAI_CONCURRENT_FEATURES) {
99
- return jsx(Suspense, { fallback: jsx(FailedChildAppFallback, { config: config }), children: result });
99
+ result = jsx(Suspense, { fallback: jsx(FailedChildAppFallback, { config: config }), children: result });
100
100
  }
101
- return result;
101
+ return jsx(UniversalErrorBoundary, { fallback: fallback, children: result });
102
102
  });
103
103
 
104
104
  export { ChildApp };
@@ -94,11 +94,11 @@ const ChildAppWrapper = ({ name, version, tag, props, fallback: Fallback, }) =>
94
94
  };
95
95
  const ChildApp = memo((config) => {
96
96
  const { fallback } = config;
97
- const result = (jsx(UniversalErrorBoundary, { fallback: fallback, children: jsx(ChildAppWrapper, { ...config }) }));
97
+ let result = jsx(ChildAppWrapper, { ...config });
98
98
  if (process.env.__TRAMVAI_CONCURRENT_FEATURES) {
99
- return jsx(Suspense, { fallback: jsx(FailedChildAppFallback, { config: config }), children: result });
99
+ result = jsx(Suspense, { fallback: jsx(FailedChildAppFallback, { config: config }), children: result });
100
100
  }
101
- return result;
101
+ return jsx(UniversalErrorBoundary, { fallback: fallback, children: result });
102
102
  });
103
103
 
104
104
  export { ChildApp };
@@ -102,11 +102,11 @@ const ChildAppWrapper = ({ name, version, tag, props, fallback: Fallback, }) =>
102
102
  };
103
103
  const ChildApp = react.memo((config) => {
104
104
  const { fallback } = config;
105
- const result = (jsxRuntime.jsx(react$1.UniversalErrorBoundary, { fallback: fallback, children: jsxRuntime.jsx(ChildAppWrapper, { ...config }) }));
105
+ let result = jsxRuntime.jsx(ChildAppWrapper, { ...config });
106
106
  if (process.env.__TRAMVAI_CONCURRENT_FEATURES) {
107
- return jsxRuntime.jsx(react.Suspense, { fallback: jsxRuntime.jsx(FailedChildAppFallback, { config: config }), children: result });
107
+ result = jsxRuntime.jsx(react.Suspense, { fallback: jsxRuntime.jsx(FailedChildAppFallback, { config: config }), children: result });
108
108
  }
109
- return result;
109
+ return jsxRuntime.jsx(react$1.UniversalErrorBoundary, { fallback: fallback, children: result });
110
110
  });
111
111
 
112
112
  exports.ChildApp = ChildApp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-child-app",
3
- "version": "4.18.3",
3
+ "version": "4.18.5",
4
4
  "description": "Module for child apps",
5
5
  "browser": {
6
6
  "./lib/server.js": "./lib/browser.js",
@@ -33,23 +33,23 @@
33
33
  "@tinkoff/env-validators": "0.3.1",
34
34
  "@tinkoff/module-loader-client": "0.6.3",
35
35
  "@tinkoff/module-loader-server": "0.7.1",
36
- "@tramvai/module-common": "4.18.3",
36
+ "@tramvai/module-common": "4.18.5",
37
37
  "@tinkoff/url": "0.10.1",
38
- "@tramvai/child-app-core": "4.18.3",
38
+ "@tramvai/child-app-core": "4.18.5",
39
39
  "@tramvai/safe-strings": "0.7.1",
40
- "@tramvai/tokens-child-app": "4.18.3"
40
+ "@tramvai/tokens-child-app": "4.18.5"
41
41
  },
42
42
  "devDependencies": {},
43
43
  "peerDependencies": {
44
- "@tinkoff/dippy": "0.10.5",
45
- "@tinkoff/router": "0.4.55",
44
+ "@tinkoff/dippy": "0.10.6",
45
+ "@tinkoff/router": "0.4.57",
46
46
  "@tinkoff/utils": "^2.1.2",
47
- "@tramvai/core": "4.18.3",
48
- "@tramvai/state": "4.18.3",
49
- "@tramvai/react": "4.18.3",
50
- "@tramvai/tokens-common": "4.18.3",
51
- "@tramvai/tokens-render": "4.18.3",
52
- "@tramvai/tokens-router": "4.18.3",
47
+ "@tramvai/core": "4.18.5",
48
+ "@tramvai/state": "4.18.5",
49
+ "@tramvai/react": "4.18.5",
50
+ "@tramvai/tokens-common": "4.18.5",
51
+ "@tramvai/tokens-render": "4.18.5",
52
+ "@tramvai/tokens-router": "4.18.5",
53
53
  "react": ">=16.14.0",
54
54
  "react-dom": ">=16.14.0",
55
55
  "object-assign": "^4.1.1",