@tramvai/module-server 4.41.110 → 4.41.116
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/server/webApp.es.js +3 -2
- package/lib/server/webApp.js +3 -2
- package/package.json +16 -16
package/lib/server/webApp.es.js
CHANGED
|
@@ -122,8 +122,9 @@ const webAppInitCommand = ({ app, logger, commandLineRunner, executionContextMan
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
catch (err) {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
const storage = asyncLocalStorage.getStore();
|
|
126
|
+
if (storage && storage.tramvaiRequestDi) {
|
|
127
|
+
const responseManager = storage.tramvaiRequestDi.get(RESPONSE_MANAGER_TOKEN);
|
|
127
128
|
if (responseManager && !reply.sent) {
|
|
128
129
|
reply.headers(responseManager.getHeaders());
|
|
129
130
|
}
|
package/lib/server/webApp.js
CHANGED
|
@@ -131,8 +131,9 @@ const webAppInitCommand = ({ app, logger, commandLineRunner, executionContextMan
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
catch (err) {
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
const storage = asyncLocalStorage.getStore();
|
|
135
|
+
if (storage && storage.tramvaiRequestDi) {
|
|
136
|
+
const responseManager = storage.tramvaiRequestDi.get(tokensCommon.RESPONSE_MANAGER_TOKEN);
|
|
136
137
|
if (responseManager && !reply.sent) {
|
|
137
138
|
reply.headers(responseManager.getHeaders());
|
|
138
139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-server",
|
|
3
|
-
"version": "4.41.
|
|
3
|
+
"version": "4.41.116",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"@tinkoff/monkeypatch": "4.0.3",
|
|
27
27
|
"@tinkoff/terminus": "0.3.3",
|
|
28
28
|
"@tinkoff/url": "0.10.3",
|
|
29
|
-
"@tramvai/module-cache-warmup": "4.41.
|
|
30
|
-
"@tramvai/module-metrics": "4.41.
|
|
31
|
-
"@tramvai/papi": "4.41.
|
|
32
|
-
"@tramvai/tokens-server": "4.41.
|
|
33
|
-
"@tramvai/tokens-router": "4.41.
|
|
34
|
-
"@tramvai/tokens-server-private": "4.41.
|
|
29
|
+
"@tramvai/module-cache-warmup": "4.41.116",
|
|
30
|
+
"@tramvai/module-metrics": "4.41.116",
|
|
31
|
+
"@tramvai/papi": "4.41.116",
|
|
32
|
+
"@tramvai/tokens-server": "4.41.116",
|
|
33
|
+
"@tramvai/tokens-router": "4.41.116",
|
|
34
|
+
"@tramvai/tokens-server-private": "4.41.116",
|
|
35
35
|
"@tramvai/safe-strings": "0.7.9",
|
|
36
36
|
"fastify": "^4.14.1",
|
|
37
37
|
"@fastify/cookie": "^8.3.0",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"http-proxy-middleware": "^2.0.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@tinkoff/dippy": "0.10.
|
|
45
|
+
"@tinkoff/dippy": "0.10.13",
|
|
46
46
|
"@tinkoff/utils": "^2.1.2",
|
|
47
|
-
"@tramvai/cli": "4.41.
|
|
48
|
-
"@tramvai/core": "4.41.
|
|
49
|
-
"@tramvai/react": "4.41.
|
|
50
|
-
"@tramvai/module-common": "4.41.
|
|
51
|
-
"@tramvai/module-environment": "4.41.
|
|
52
|
-
"@tramvai/tokens-common": "4.41.
|
|
53
|
-
"@tramvai/tokens-core-private": "4.41.
|
|
54
|
-
"@tramvai/tokens-render": "4.41.
|
|
47
|
+
"@tramvai/cli": "4.41.116",
|
|
48
|
+
"@tramvai/core": "4.41.116",
|
|
49
|
+
"@tramvai/react": "4.41.116",
|
|
50
|
+
"@tramvai/module-common": "4.41.116",
|
|
51
|
+
"@tramvai/module-environment": "4.41.116",
|
|
52
|
+
"@tramvai/tokens-common": "4.41.116",
|
|
53
|
+
"@tramvai/tokens-core-private": "4.41.116",
|
|
54
|
+
"@tramvai/tokens-render": "4.41.116",
|
|
55
55
|
"react": ">=16.14.0",
|
|
56
56
|
"react-dom": ">=16.14.0",
|
|
57
57
|
"tslib": "^2.4.0"
|