@tramvai/module-child-app 5.41.1 → 5.41.2
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.
|
@@ -49,12 +49,14 @@ class PreloadManager {
|
|
|
49
49
|
// TODO: Can be a race condition between Child App render and actions?
|
|
50
50
|
this.run('clear', config).catch((error) => {
|
|
51
51
|
if (process.env.NODE_ENV === 'development') {
|
|
52
|
+
// eslint-disable-next-line no-console
|
|
52
53
|
console.error('Child App command line error', error);
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
catch (error) {
|
|
57
58
|
if (process.env.NODE_ENV === 'development') {
|
|
59
|
+
// eslint-disable-next-line no-console
|
|
58
60
|
console.error('Child App loading error', error);
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -82,6 +84,7 @@ class PreloadManager {
|
|
|
82
84
|
}
|
|
83
85
|
catch (error) {
|
|
84
86
|
if (process.env.NODE_ENV === 'development') {
|
|
87
|
+
// eslint-disable-next-line no-console
|
|
85
88
|
console.error('Child App prefetch error', error);
|
|
86
89
|
}
|
|
87
90
|
}
|
|
@@ -124,7 +124,7 @@ const registerChildAppRenderSlots = ({ logger, diManager, resolveFullConfig, pre
|
|
|
124
124
|
addChunk(resolve(config.client.baseUrl, file));
|
|
125
125
|
}
|
|
126
126
|
for (const sharedModule of federatedModule.sharedModules) {
|
|
127
|
-
const { shareKey } = sharedModule.provides?.[0];
|
|
127
|
+
const { shareKey } = sharedModule.provides?.[0] ?? {};
|
|
128
128
|
const { chunks } = sharedModule;
|
|
129
129
|
const bestShared = mapSharedToChildApp.get(shareKey);
|
|
130
130
|
if (!bestShared?.eager && bestShared?.name === config.name) {
|
|
@@ -132,7 +132,7 @@ const registerChildAppRenderSlots = ({ logger, diManager, resolveFullConfig, pre
|
|
|
132
132
|
addChunk(url.resolve(config.client.baseUrl, file));
|
|
133
133
|
}
|
|
134
134
|
for (const sharedModule of federatedModule.sharedModules) {
|
|
135
|
-
const { shareKey } = sharedModule.provides?.[0];
|
|
135
|
+
const { shareKey } = sharedModule.provides?.[0] ?? {};
|
|
136
136
|
const { chunks } = sharedModule;
|
|
137
137
|
const bestShared = mapSharedToChildApp.get(shareKey);
|
|
138
138
|
if (!bestShared?.eager && bestShared?.name === config.name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-child-app",
|
|
3
|
-
"version": "5.41.
|
|
3
|
+
"version": "5.41.2",
|
|
4
4
|
"description": "Module for child apps",
|
|
5
5
|
"browser": {
|
|
6
6
|
"./lib/server.js": "./lib/browser.js",
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
"@tinkoff/env-validators": "0.4.2",
|
|
34
34
|
"@tinkoff/module-loader-client": "0.7.3",
|
|
35
35
|
"@tinkoff/module-loader-server": "0.8.5",
|
|
36
|
-
"@tramvai/module-common": "5.41.
|
|
36
|
+
"@tramvai/module-common": "5.41.2",
|
|
37
37
|
"@tinkoff/url": "0.11.2",
|
|
38
38
|
"@tinkoff/errors": "0.6.2",
|
|
39
|
-
"@tramvai/child-app-core": "5.41.
|
|
39
|
+
"@tramvai/child-app-core": "5.41.2",
|
|
40
40
|
"@tramvai/safe-strings": "0.8.4",
|
|
41
|
-
"@tramvai/tokens-child-app": "5.41.
|
|
41
|
+
"@tramvai/tokens-child-app": "5.41.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@tinkoff/dippy": "0.11.
|
|
46
|
-
"@tinkoff/router": "0.5.
|
|
45
|
+
"@tinkoff/dippy": "0.11.4",
|
|
46
|
+
"@tinkoff/router": "0.5.99",
|
|
47
47
|
"@tinkoff/utils": "^2.1.2",
|
|
48
|
-
"@tramvai/core": "5.41.
|
|
49
|
-
"@tramvai/state": "5.41.
|
|
50
|
-
"@tramvai/react": "5.41.
|
|
51
|
-
"@tramvai/tokens-common": "5.41.
|
|
52
|
-
"@tramvai/tokens-render": "5.41.
|
|
53
|
-
"@tramvai/tokens-router": "5.41.
|
|
48
|
+
"@tramvai/core": "5.41.2",
|
|
49
|
+
"@tramvai/state": "5.41.2",
|
|
50
|
+
"@tramvai/react": "5.41.2",
|
|
51
|
+
"@tramvai/tokens-common": "5.41.2",
|
|
52
|
+
"@tramvai/tokens-render": "5.41.2",
|
|
53
|
+
"@tramvai/tokens-router": "5.41.2",
|
|
54
54
|
"react": ">=16.14.0",
|
|
55
55
|
"react-dom": ">=16.14.0",
|
|
56
56
|
"object-assign": "^4.1.1",
|