@tramvai/module-child-app 7.41.3 → 7.43.1
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.
|
@@ -25,7 +25,15 @@ class CommandLineRunner {
|
|
|
25
25
|
// we need to prevent Child Apps preloading (also on `resolvePageDeps` command)
|
|
26
26
|
if (executionContext?.abortSignal?.aborted ||
|
|
27
27
|
(typeof window === 'undefined' && !executionContext)) {
|
|
28
|
-
|
|
28
|
+
const abortSignalReason = executionContext?.abortSignal.reason;
|
|
29
|
+
const reasonIsObject = typeof abortSignalReason === 'object';
|
|
30
|
+
const isExpectedError =
|
|
31
|
+
// If we didn't have execution context, it mean that Root App command line was failed/aborted,
|
|
32
|
+
// so Child App can't be a reason, and `debug` log level is enough
|
|
33
|
+
!executionContext ||
|
|
34
|
+
(reasonIsObject && isSilentError(abortSignalReason)) ||
|
|
35
|
+
(reasonIsObject && abortSignalReason.reason && isSilentError(abortSignalReason.reason));
|
|
36
|
+
this.log[isExpectedError ? 'error' : 'debug']({
|
|
29
37
|
event: 'host-exection-context-aborted',
|
|
30
38
|
message: `Child App command line run was prevented from executing because ${executionContext?.abortSignal?.aborted
|
|
31
39
|
? 'host command line was aborted'
|
package/lib/shared/command.es.js
CHANGED
|
@@ -25,7 +25,15 @@ class CommandLineRunner {
|
|
|
25
25
|
// we need to prevent Child Apps preloading (also on `resolvePageDeps` command)
|
|
26
26
|
if (executionContext?.abortSignal?.aborted ||
|
|
27
27
|
(typeof window === 'undefined' && !executionContext)) {
|
|
28
|
-
|
|
28
|
+
const abortSignalReason = executionContext?.abortSignal.reason;
|
|
29
|
+
const reasonIsObject = typeof abortSignalReason === 'object';
|
|
30
|
+
const isExpectedError =
|
|
31
|
+
// If we didn't have execution context, it mean that Root App command line was failed/aborted,
|
|
32
|
+
// so Child App can't be a reason, and `debug` log level is enough
|
|
33
|
+
!executionContext ||
|
|
34
|
+
(reasonIsObject && isSilentError(abortSignalReason)) ||
|
|
35
|
+
(reasonIsObject && abortSignalReason.reason && isSilentError(abortSignalReason.reason));
|
|
36
|
+
this.log[isExpectedError ? 'error' : 'debug']({
|
|
29
37
|
event: 'host-exection-context-aborted',
|
|
30
38
|
message: `Child App command line run was prevented from executing because ${executionContext?.abortSignal?.aborted
|
|
31
39
|
? 'host command line was aborted'
|
package/lib/shared/command.js
CHANGED
|
@@ -29,7 +29,15 @@ class CommandLineRunner {
|
|
|
29
29
|
// we need to prevent Child Apps preloading (also on `resolvePageDeps` command)
|
|
30
30
|
if (executionContext?.abortSignal?.aborted ||
|
|
31
31
|
(typeof window === 'undefined' && !executionContext)) {
|
|
32
|
-
|
|
32
|
+
const abortSignalReason = executionContext?.abortSignal.reason;
|
|
33
|
+
const reasonIsObject = typeof abortSignalReason === 'object';
|
|
34
|
+
const isExpectedError =
|
|
35
|
+
// If we didn't have execution context, it mean that Root App command line was failed/aborted,
|
|
36
|
+
// so Child App can't be a reason, and `debug` log level is enough
|
|
37
|
+
!executionContext ||
|
|
38
|
+
(reasonIsObject && errors.isSilentError(abortSignalReason)) ||
|
|
39
|
+
(reasonIsObject && abortSignalReason.reason && errors.isSilentError(abortSignalReason.reason));
|
|
40
|
+
this.log[isExpectedError ? 'error' : 'debug']({
|
|
33
41
|
event: 'host-exection-context-aborted',
|
|
34
42
|
message: `Child App command line run was prevented from executing because ${executionContext?.abortSignal?.aborted
|
|
35
43
|
? 'host command line was aborted'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-child-app",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.43.1",
|
|
4
4
|
"description": "Module for child apps",
|
|
5
5
|
"browser": {
|
|
6
6
|
"./lib/server.es.js": "./lib/browser.js",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"@tinkoff/module-loader-client": "0.9.1",
|
|
37
37
|
"@tinkoff/module-loader-server": "0.10.3",
|
|
38
38
|
"@tinkoff/url": "0.13.1",
|
|
39
|
-
"@tramvai/child-app-core": "7.
|
|
40
|
-
"@tramvai/module-common": "7.
|
|
41
|
-
"@tramvai/module-router": "7.
|
|
39
|
+
"@tramvai/child-app-core": "7.43.1",
|
|
40
|
+
"@tramvai/module-common": "7.43.1",
|
|
41
|
+
"@tramvai/module-router": "7.43.1",
|
|
42
42
|
"@tramvai/safe-strings": "0.10.2",
|
|
43
|
-
"@tramvai/tokens-child-app": "7.
|
|
43
|
+
"@tramvai/tokens-child-app": "7.43.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@tinkoff/dippy": "^1.0.0",
|
|
47
|
-
"@tinkoff/router": "0.7.
|
|
47
|
+
"@tinkoff/router": "0.7.167",
|
|
48
48
|
"@tinkoff/utils": "^2.1.2",
|
|
49
|
-
"@tramvai/core": "7.
|
|
50
|
-
"@tramvai/react": "7.
|
|
51
|
-
"@tramvai/state": "7.
|
|
52
|
-
"@tramvai/tokens-common": "7.
|
|
53
|
-
"@tramvai/tokens-render": "7.
|
|
54
|
-
"@tramvai/tokens-router": "7.
|
|
49
|
+
"@tramvai/core": "7.43.1",
|
|
50
|
+
"@tramvai/react": "7.43.1",
|
|
51
|
+
"@tramvai/state": "7.43.1",
|
|
52
|
+
"@tramvai/tokens-common": "7.43.1",
|
|
53
|
+
"@tramvai/tokens-render": "7.43.1",
|
|
54
|
+
"@tramvai/tokens-router": "7.43.1",
|
|
55
55
|
"object-assign": "^4.1.1",
|
|
56
56
|
"react": ">=16.14.0",
|
|
57
57
|
"react-dom": ">=16.14.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"tslib": "^2.4.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@tramvai/module-http-client": "7.
|
|
63
|
-
"@tramvai/module-react-query": "7.
|
|
64
|
-
"@tramvai/module-render": "7.
|
|
65
|
-
"@tramvai/module-router": "7.
|
|
66
|
-
"@tramvai/module-server": "7.
|
|
67
|
-
"@tramvai/react": "7.
|
|
68
|
-
"@tramvai/react-query": "7.
|
|
69
|
-
"@tramvai/state": "7.
|
|
62
|
+
"@tramvai/module-http-client": "7.43.1",
|
|
63
|
+
"@tramvai/module-react-query": "7.43.1",
|
|
64
|
+
"@tramvai/module-render": "7.43.1",
|
|
65
|
+
"@tramvai/module-router": "7.43.1",
|
|
66
|
+
"@tramvai/module-server": "7.43.1",
|
|
67
|
+
"@tramvai/react": "7.43.1",
|
|
68
|
+
"@tramvai/react-query": "7.43.1",
|
|
69
|
+
"@tramvai/state": "7.43.1"
|
|
70
70
|
},
|
|
71
71
|
"module": "lib/server.es.js"
|
|
72
72
|
}
|