@tramvai/module-common 4.41.45 → 4.41.48
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/actions/actionPageRunner.es.js +2 -1
- package/lib/actions/actionPageRunner.js +2 -1
- package/lib/command/commandLineRunner.browser.js +1 -1
- package/lib/command/commandLineRunner.es.js +1 -1
- package/lib/command/commandLineRunner.js +1 -1
- package/lib/executionContext/executionContextManager.browser.js +0 -1
- package/lib/executionContext/executionContextManager.es.js +0 -1
- package/lib/executionContext/executionContextManager.js +1 -2
- package/package.json +20 -21
|
@@ -31,7 +31,7 @@ class ActionPageRunner {
|
|
|
31
31
|
You can find more detailed information from "action-execution-error" logs, and find relative logs by using the same "x-request-id" header`,
|
|
32
32
|
unfinishedActions,
|
|
33
33
|
});
|
|
34
|
-
abortController.abort();
|
|
34
|
+
abortController.abort('Page actions were aborted because of timeout');
|
|
35
35
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
36
36
|
endChecker();
|
|
37
37
|
}, this.deps.limitTime);
|
|
@@ -92,6 +92,7 @@ You can find more detailed information from "action-execution-error" logs, and f
|
|
|
92
92
|
error: new ExecutionAbortError({
|
|
93
93
|
message: `Execution aborted in context "${contextName}"`,
|
|
94
94
|
contextName,
|
|
95
|
+
reason: executionContext.abortSignal.reason,
|
|
95
96
|
}),
|
|
96
97
|
event: `action-execution-error`,
|
|
97
98
|
message: `${actionName} has exceeded timeout of ${this.deps.limitTime}ms, execution results will be ignored.
|
|
@@ -35,7 +35,7 @@ class ActionPageRunner {
|
|
|
35
35
|
You can find more detailed information from "action-execution-error" logs, and find relative logs by using the same "x-request-id" header`,
|
|
36
36
|
unfinishedActions,
|
|
37
37
|
});
|
|
38
|
-
abortController.abort();
|
|
38
|
+
abortController.abort('Page actions were aborted because of timeout');
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
40
40
|
endChecker();
|
|
41
41
|
}, this.deps.limitTime);
|
|
@@ -96,6 +96,7 @@ You can find more detailed information from "action-execution-error" logs, and f
|
|
|
96
96
|
error: new errors.ExecutionAbortError({
|
|
97
97
|
message: `Execution aborted in context "${contextName}"`,
|
|
98
98
|
contextName,
|
|
99
|
+
reason: executionContext.abortSignal.reason,
|
|
99
100
|
}),
|
|
100
101
|
event: `action-execution-error`,
|
|
101
102
|
message: `${actionName} has exceeded timeout of ${this.deps.limitTime}ms, execution results will be ignored.
|
|
@@ -130,7 +130,7 @@ class CommandLineRunner {
|
|
|
130
130
|
command: name,
|
|
131
131
|
});
|
|
132
132
|
// in case if any error happens during line execution results from other line handlers will not be used anyway
|
|
133
|
-
(_a = this.abortControllerByDi.get(di)) === null || _a === void 0 ? void 0 : _a.abort();
|
|
133
|
+
(_a = this.abortControllerByDi.get(di)) === null || _a === void 0 ? void 0 : _a.abort(err);
|
|
134
134
|
this.throwError(err, di);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -130,7 +130,7 @@ class CommandLineRunner {
|
|
|
130
130
|
command: name,
|
|
131
131
|
});
|
|
132
132
|
// in case if any error happens during line execution results from other line handlers will not be used anyway
|
|
133
|
-
(_a = this.abortControllerByDi.get(di)) === null || _a === void 0 ? void 0 : _a.abort();
|
|
133
|
+
(_a = this.abortControllerByDi.get(di)) === null || _a === void 0 ? void 0 : _a.abort(err);
|
|
134
134
|
this.throwError(err, di);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -134,7 +134,7 @@ class CommandLineRunner {
|
|
|
134
134
|
command: name,
|
|
135
135
|
});
|
|
136
136
|
// in case if any error happens during line execution results from other line handlers will not be used anyway
|
|
137
|
-
(_a = this.abortControllerByDi.get(di)) === null || _a === void 0 ? void 0 : _a.abort();
|
|
137
|
+
(_a = this.abortControllerByDi.get(di)) === null || _a === void 0 ? void 0 : _a.abort(err);
|
|
138
138
|
this.throwError(err, di);
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var errors = require('@tinkoff/errors');
|
|
6
|
-
var nodeAbortController = require('node-abort-controller');
|
|
7
6
|
|
|
8
7
|
const EMPTY_VALUES = {};
|
|
9
8
|
const normalizeOptions = (nameOrOptions) => {
|
|
@@ -21,7 +20,7 @@ class ExecutionContextManager {
|
|
|
21
20
|
contextName,
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
|
-
const abortController = new
|
|
23
|
+
const abortController = new AbortController();
|
|
25
24
|
let abortListener;
|
|
26
25
|
let values = selfValues;
|
|
27
26
|
if (parentContext) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-common",
|
|
3
|
-
"version": "4.41.
|
|
3
|
+
"version": "4.41.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -36,31 +36,30 @@
|
|
|
36
36
|
"@tinkoff/lru-cache-nano": "^7.9.0",
|
|
37
37
|
"@tinkoff/pubsub": "0.7.3",
|
|
38
38
|
"@tinkoff/url": "0.10.3",
|
|
39
|
-
"@tramvai/experiments": "4.41.
|
|
40
|
-
"@tramvai/module-cookie": "4.41.
|
|
41
|
-
"@tramvai/module-environment": "4.41.
|
|
42
|
-
"@tramvai/module-log": "4.41.
|
|
39
|
+
"@tramvai/experiments": "4.41.48",
|
|
40
|
+
"@tramvai/module-cookie": "4.41.48",
|
|
41
|
+
"@tramvai/module-environment": "4.41.48",
|
|
42
|
+
"@tramvai/module-log": "4.41.48",
|
|
43
43
|
"@tramvai/safe-strings": "0.7.9",
|
|
44
|
-
"@tramvai/tokens-child-app": "4.41.
|
|
45
|
-
"@tramvai/tokens-common": "4.41.
|
|
46
|
-
"@tramvai/tokens-core-private": "4.41.
|
|
47
|
-
"@tramvai/tokens-metrics": "4.41.
|
|
48
|
-
"@tramvai/tokens-render": "4.41.
|
|
49
|
-
"@tramvai/tokens-router": "4.41.
|
|
50
|
-
"@tramvai/tokens-server-private": "4.41.
|
|
51
|
-
"@tramvai/types-actions-state-context": "4.41.
|
|
52
|
-
"hoist-non-react-statics": "^3.3.1"
|
|
53
|
-
"node-abort-controller": "^3.0.1"
|
|
44
|
+
"@tramvai/tokens-child-app": "4.41.48",
|
|
45
|
+
"@tramvai/tokens-common": "4.41.48",
|
|
46
|
+
"@tramvai/tokens-core-private": "4.41.48",
|
|
47
|
+
"@tramvai/tokens-metrics": "4.41.48",
|
|
48
|
+
"@tramvai/tokens-render": "4.41.48",
|
|
49
|
+
"@tramvai/tokens-router": "4.41.48",
|
|
50
|
+
"@tramvai/tokens-server-private": "4.41.48",
|
|
51
|
+
"@tramvai/types-actions-state-context": "4.41.48",
|
|
52
|
+
"hoist-non-react-statics": "^3.3.1"
|
|
54
53
|
},
|
|
55
54
|
"peerDependencies": {
|
|
56
55
|
"@tinkoff/dippy": "0.10.11",
|
|
57
56
|
"@tinkoff/utils": "^2.1.2",
|
|
58
|
-
"@tramvai/cli": "4.41.
|
|
59
|
-
"@tramvai/core": "4.41.
|
|
60
|
-
"@tramvai/papi": "4.41.
|
|
61
|
-
"@tramvai/react": "4.41.
|
|
62
|
-
"@tramvai/state": "4.41.
|
|
63
|
-
"@tramvai/tokens-server": "4.41.
|
|
57
|
+
"@tramvai/cli": "4.41.48",
|
|
58
|
+
"@tramvai/core": "4.41.48",
|
|
59
|
+
"@tramvai/papi": "4.41.48",
|
|
60
|
+
"@tramvai/react": "4.41.48",
|
|
61
|
+
"@tramvai/state": "4.41.48",
|
|
62
|
+
"@tramvai/tokens-server": "4.41.48",
|
|
64
63
|
"react": ">=16.14.0",
|
|
65
64
|
"tslib": "^2.4.0"
|
|
66
65
|
},
|