@tramvai/module-common 2.63.0 → 2.64.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.browser.js +5 -3
- package/lib/index.es.js +5 -3
- package/lib/index.js +5 -3
- package/package.json +17 -17
package/lib/index.browser.js
CHANGED
|
@@ -519,8 +519,10 @@ class CommandLineRunner {
|
|
|
519
519
|
}
|
|
520
520
|
// eslint-disable-next-line class-methods-use-this
|
|
521
521
|
throwError(err, di) {
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
if (typeof err === 'object') {
|
|
523
|
+
// eslint-disable-next-line no-param-reassign
|
|
524
|
+
err.di = di;
|
|
525
|
+
}
|
|
524
526
|
throw err;
|
|
525
527
|
}
|
|
526
528
|
}
|
|
@@ -1113,7 +1115,7 @@ class ExecutionContextManager {
|
|
|
1113
1115
|
return result;
|
|
1114
1116
|
}
|
|
1115
1117
|
catch (error) {
|
|
1116
|
-
if (!error.executionContextName) {
|
|
1118
|
+
if (typeof error === 'object' && !error.executionContextName) {
|
|
1117
1119
|
error.executionContextName = context.name;
|
|
1118
1120
|
}
|
|
1119
1121
|
throw error;
|
package/lib/index.es.js
CHANGED
|
@@ -512,8 +512,10 @@ class CommandLineRunner {
|
|
|
512
512
|
}
|
|
513
513
|
// eslint-disable-next-line class-methods-use-this
|
|
514
514
|
throwError(err, di) {
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
if (typeof err === 'object') {
|
|
516
|
+
// eslint-disable-next-line no-param-reassign
|
|
517
|
+
err.di = di;
|
|
518
|
+
}
|
|
517
519
|
throw err;
|
|
518
520
|
}
|
|
519
521
|
}
|
|
@@ -1142,7 +1144,7 @@ class ExecutionContextManager {
|
|
|
1142
1144
|
return result;
|
|
1143
1145
|
}
|
|
1144
1146
|
catch (error) {
|
|
1145
|
-
if (!error.executionContextName) {
|
|
1147
|
+
if (typeof error === 'object' && !error.executionContextName) {
|
|
1146
1148
|
error.executionContextName = context.name;
|
|
1147
1149
|
}
|
|
1148
1150
|
throw error;
|
package/lib/index.js
CHANGED
|
@@ -530,8 +530,10 @@ class CommandLineRunner {
|
|
|
530
530
|
}
|
|
531
531
|
// eslint-disable-next-line class-methods-use-this
|
|
532
532
|
throwError(err, di) {
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
if (typeof err === 'object') {
|
|
534
|
+
// eslint-disable-next-line no-param-reassign
|
|
535
|
+
err.di = di;
|
|
536
|
+
}
|
|
535
537
|
throw err;
|
|
536
538
|
}
|
|
537
539
|
}
|
|
@@ -1160,7 +1162,7 @@ class ExecutionContextManager {
|
|
|
1160
1162
|
return result;
|
|
1161
1163
|
}
|
|
1162
1164
|
catch (error) {
|
|
1163
|
-
if (!error.executionContextName) {
|
|
1165
|
+
if (typeof error === 'object' && !error.executionContextName) {
|
|
1164
1166
|
error.executionContextName = context.name;
|
|
1165
1167
|
}
|
|
1166
1168
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
"@tinkoff/lru-cache-nano": "^7.8.1",
|
|
34
34
|
"@tinkoff/pubsub": "0.5.5",
|
|
35
35
|
"@tinkoff/url": "0.8.4",
|
|
36
|
-
"@tramvai/experiments": "2.
|
|
37
|
-
"@tramvai/module-cookie": "2.
|
|
38
|
-
"@tramvai/module-environment": "2.
|
|
39
|
-
"@tramvai/module-log": "2.
|
|
40
|
-
"@tramvai/tokens-child-app": "2.
|
|
41
|
-
"@tramvai/tokens-core-private": "2.
|
|
42
|
-
"@tramvai/tokens-common": "2.
|
|
43
|
-
"@tramvai/tokens-render": "2.
|
|
44
|
-
"@tramvai/tokens-server-private": "2.
|
|
45
|
-
"@tramvai/types-actions-state-context": "2.
|
|
36
|
+
"@tramvai/experiments": "2.64.0",
|
|
37
|
+
"@tramvai/module-cookie": "2.64.0",
|
|
38
|
+
"@tramvai/module-environment": "2.64.0",
|
|
39
|
+
"@tramvai/module-log": "2.64.0",
|
|
40
|
+
"@tramvai/tokens-child-app": "2.64.0",
|
|
41
|
+
"@tramvai/tokens-core-private": "2.64.0",
|
|
42
|
+
"@tramvai/tokens-common": "2.64.0",
|
|
43
|
+
"@tramvai/tokens-render": "2.64.0",
|
|
44
|
+
"@tramvai/tokens-server-private": "2.64.0",
|
|
45
|
+
"@tramvai/types-actions-state-context": "2.64.0",
|
|
46
46
|
"hoist-non-react-statics": "^3.3.1",
|
|
47
47
|
"node-abort-controller": "^3.0.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@tinkoff/dippy": "0.8.11",
|
|
51
51
|
"@tinkoff/utils": "^2.1.2",
|
|
52
|
-
"@tramvai/cli": "2.
|
|
53
|
-
"@tramvai/core": "2.
|
|
54
|
-
"@tramvai/papi": "2.
|
|
55
|
-
"@tramvai/react": "2.
|
|
56
|
-
"@tramvai/state": "2.
|
|
57
|
-
"@tramvai/tokens-server": "2.
|
|
52
|
+
"@tramvai/cli": "2.64.0",
|
|
53
|
+
"@tramvai/core": "2.64.0",
|
|
54
|
+
"@tramvai/papi": "2.64.0",
|
|
55
|
+
"@tramvai/react": "2.64.0",
|
|
56
|
+
"@tramvai/state": "2.64.0",
|
|
57
|
+
"@tramvai/tokens-server": "2.64.0",
|
|
58
58
|
"react": ">=16.14.0",
|
|
59
59
|
"tslib": "^2.4.0"
|
|
60
60
|
},
|