@tramvai/test-child-app 2.61.2 → 2.63.0
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/lib/index.es.js +2 -1
- package/lib/index.js +2 -1
- package/package.json +6 -6
package/lib/index.es.js
CHANGED
|
@@ -57,7 +57,8 @@ This test wrapper supports only child-app with name "${childApp.name}"`);
|
|
|
57
57
|
await appDi.get(CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN).init();
|
|
58
58
|
const resolveExternalConfig = appDi.get(CHILD_APP_RESOLVE_CONFIG_TOKEN);
|
|
59
59
|
const diManager = appDi.get(CHILD_APP_DI_MANAGER_TOKEN);
|
|
60
|
-
const
|
|
60
|
+
const config = resolveExternalConfig({ name: childApp.name });
|
|
61
|
+
const di = config && diManager.getChildDi(config);
|
|
61
62
|
if (!di) {
|
|
62
63
|
throw new Error('Cannot resolve child-app di');
|
|
63
64
|
}
|
package/lib/index.js
CHANGED
|
@@ -61,7 +61,8 @@ This test wrapper supports only child-app with name "${childApp.name}"`);
|
|
|
61
61
|
await appDi.get(childAppCore.CHILD_APP_RESOLUTION_CONFIG_MANAGER_TOKEN).init();
|
|
62
62
|
const resolveExternalConfig = appDi.get(childAppCore.CHILD_APP_RESOLVE_CONFIG_TOKEN);
|
|
63
63
|
const diManager = appDi.get(childAppCore.CHILD_APP_DI_MANAGER_TOKEN);
|
|
64
|
-
const
|
|
64
|
+
const config = resolveExternalConfig({ name: childApp.name });
|
|
65
|
+
const di = config && diManager.getChildDi(config);
|
|
65
66
|
if (!di) {
|
|
66
67
|
throw new Error('Cannot resolve child-app di');
|
|
67
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-child-app",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"build-for-publish": "true"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tramvai/child-app-core": "2.
|
|
22
|
-
"@tramvai/core": "2.
|
|
23
|
-
"@tramvai/test-unit": "2.
|
|
21
|
+
"@tramvai/child-app-core": "2.63.0",
|
|
22
|
+
"@tramvai/core": "2.63.0",
|
|
23
|
+
"@tramvai/test-unit": "2.63.0",
|
|
24
24
|
"tslib": "^2.4.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@tramvai/react": "2.
|
|
27
|
+
"@tramvai/react": "2.63.0",
|
|
28
28
|
"react": "18.2.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tramvai/module-child-app": "2.
|
|
31
|
+
"@tramvai/module-child-app": "2.63.0"
|
|
32
32
|
},
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"module": "lib/index.es.js"
|