@tramvai/module-common 2.153.0 → 2.153.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,7 @@ class CommandLineRunner {
|
|
|
25
25
|
this.executionContextManager = executionContextManager;
|
|
26
26
|
this.executionEndHandlers = executionEndHandlers;
|
|
27
27
|
}
|
|
28
|
-
run(type, status, providers, customDi) {
|
|
28
|
+
run(type, status, providers, customDi, key) {
|
|
29
29
|
const di = customDi !== null && customDi !== void 0 ? customDi : resolveDi(type, status, this.rootDi, providers);
|
|
30
30
|
const rootExecutionContext = di.get({ token: ROOT_EXECUTION_CONTEXT_TOKEN, optional: true });
|
|
31
31
|
this.log.debug({
|
|
@@ -60,7 +60,7 @@ class CommandLineRunner {
|
|
|
60
60
|
this.abortControllerByDi.delete(di);
|
|
61
61
|
if (this.executionEndHandlers) {
|
|
62
62
|
for (const executionEndHandler of this.executionEndHandlers) {
|
|
63
|
-
executionEndHandler(di, type, status, timingInfo);
|
|
63
|
+
executionEndHandler(di, type, status, timingInfo, key);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
})
|
|
@@ -18,7 +18,7 @@ export declare class CommandLineRunner implements Interface {
|
|
|
18
18
|
private executionContextByDi;
|
|
19
19
|
private abortControllerByDi;
|
|
20
20
|
constructor({ lines, rootDi, logger, executionContextManager, executionEndHandlers }: Deps);
|
|
21
|
-
run(type: keyof CommandLines, status: keyof CommandLineDescription, providers?: Provider[], customDi?: Container): Promise<Container>;
|
|
21
|
+
run(type: keyof CommandLines, status: keyof CommandLineDescription, providers?: Provider[], customDi?: Container, key?: string | number): Promise<Container>;
|
|
22
22
|
resolveExecutionContextFromDi(di: Container): ExecutionContext | null;
|
|
23
23
|
private createLineChain;
|
|
24
24
|
private instanceExecute;
|
|
@@ -25,7 +25,7 @@ class CommandLineRunner {
|
|
|
25
25
|
this.executionContextManager = executionContextManager;
|
|
26
26
|
this.executionEndHandlers = executionEndHandlers;
|
|
27
27
|
}
|
|
28
|
-
run(type, status, providers, customDi) {
|
|
28
|
+
run(type, status, providers, customDi, key) {
|
|
29
29
|
const di = customDi !== null && customDi !== void 0 ? customDi : resolveDi(type, status, this.rootDi, providers);
|
|
30
30
|
const rootExecutionContext = di.get({ token: ROOT_EXECUTION_CONTEXT_TOKEN, optional: true });
|
|
31
31
|
this.log.debug({
|
|
@@ -60,7 +60,7 @@ class CommandLineRunner {
|
|
|
60
60
|
this.abortControllerByDi.delete(di);
|
|
61
61
|
if (this.executionEndHandlers) {
|
|
62
62
|
for (const executionEndHandler of this.executionEndHandlers) {
|
|
63
|
-
executionEndHandler(di, type, status, timingInfo);
|
|
63
|
+
executionEndHandler(di, type, status, timingInfo, key);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
})
|
|
@@ -29,7 +29,7 @@ class CommandLineRunner {
|
|
|
29
29
|
this.executionContextManager = executionContextManager;
|
|
30
30
|
this.executionEndHandlers = executionEndHandlers;
|
|
31
31
|
}
|
|
32
|
-
run(type, status, providers, customDi) {
|
|
32
|
+
run(type, status, providers, customDi, key) {
|
|
33
33
|
const di = customDi !== null && customDi !== void 0 ? customDi : resolveDi(type, status, this.rootDi, providers);
|
|
34
34
|
const rootExecutionContext = di.get({ token: tokensCommon.ROOT_EXECUTION_CONTEXT_TOKEN, optional: true });
|
|
35
35
|
this.log.debug({
|
|
@@ -64,7 +64,7 @@ class CommandLineRunner {
|
|
|
64
64
|
this.abortControllerByDi.delete(di);
|
|
65
65
|
if (this.executionEndHandlers) {
|
|
66
66
|
for (const executionEndHandler of this.executionEndHandlers) {
|
|
67
|
-
executionEndHandler(di, type, status, timingInfo);
|
|
67
|
+
executionEndHandler(di, type, status, timingInfo, key);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-common",
|
|
3
|
-
"version": "2.153.
|
|
3
|
+
"version": "2.153.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -36,28 +36,28 @@
|
|
|
36
36
|
"@tinkoff/pubsub": "0.5.7",
|
|
37
37
|
"@tinkoff/url": "0.8.6",
|
|
38
38
|
"@tramvai/safe-strings": "0.5.12",
|
|
39
|
-
"@tramvai/experiments": "2.153.
|
|
40
|
-
"@tramvai/module-cookie": "2.153.
|
|
41
|
-
"@tramvai/module-environment": "2.153.
|
|
42
|
-
"@tramvai/module-log": "2.153.
|
|
43
|
-
"@tramvai/tokens-child-app": "2.153.
|
|
44
|
-
"@tramvai/tokens-core-private": "2.153.
|
|
45
|
-
"@tramvai/tokens-common": "2.153.
|
|
46
|
-
"@tramvai/tokens-render": "2.153.
|
|
47
|
-
"@tramvai/tokens-server-private": "2.153.
|
|
48
|
-
"@tramvai/types-actions-state-context": "2.153.
|
|
39
|
+
"@tramvai/experiments": "2.153.1",
|
|
40
|
+
"@tramvai/module-cookie": "2.153.1",
|
|
41
|
+
"@tramvai/module-environment": "2.153.1",
|
|
42
|
+
"@tramvai/module-log": "2.153.1",
|
|
43
|
+
"@tramvai/tokens-child-app": "2.153.1",
|
|
44
|
+
"@tramvai/tokens-core-private": "2.153.1",
|
|
45
|
+
"@tramvai/tokens-common": "2.153.1",
|
|
46
|
+
"@tramvai/tokens-render": "2.153.1",
|
|
47
|
+
"@tramvai/tokens-server-private": "2.153.1",
|
|
48
|
+
"@tramvai/types-actions-state-context": "2.153.1",
|
|
49
49
|
"hoist-non-react-statics": "^3.3.1",
|
|
50
50
|
"node-abort-controller": "^3.0.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@tinkoff/dippy": "0.8.16",
|
|
54
54
|
"@tinkoff/utils": "^2.1.2",
|
|
55
|
-
"@tramvai/cli": "2.153.
|
|
56
|
-
"@tramvai/core": "2.153.
|
|
57
|
-
"@tramvai/papi": "2.153.
|
|
58
|
-
"@tramvai/react": "2.153.
|
|
59
|
-
"@tramvai/state": "2.153.
|
|
60
|
-
"@tramvai/tokens-server": "2.153.
|
|
55
|
+
"@tramvai/cli": "2.153.1",
|
|
56
|
+
"@tramvai/core": "2.153.1",
|
|
57
|
+
"@tramvai/papi": "2.153.1",
|
|
58
|
+
"@tramvai/react": "2.153.1",
|
|
59
|
+
"@tramvai/state": "2.153.1",
|
|
60
|
+
"@tramvai/tokens-server": "2.153.1",
|
|
61
61
|
"react": ">=16.14.0",
|
|
62
62
|
"tslib": "^2.4.0"
|
|
63
63
|
},
|