@tramvai/module-server 1.110.0 → 2.0.2
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.es.js +2 -0
- package/lib/server.js +2 -0
- package/package.json +16 -16
package/lib/server.es.js
CHANGED
|
@@ -898,6 +898,7 @@ UtilityServerModule = __decorate([
|
|
|
898
898
|
}),
|
|
899
899
|
provide({
|
|
900
900
|
provide: UTILITY_SERVER_PORT_TOKEN,
|
|
901
|
+
scope: Scope.SINGLETON,
|
|
901
902
|
useFactory: ({ envManager }) => {
|
|
902
903
|
return +(envManager.get('UTILITY_SERVER_PORT') || envManager.get('PORT'));
|
|
903
904
|
},
|
|
@@ -907,6 +908,7 @@ UtilityServerModule = __decorate([
|
|
|
907
908
|
}),
|
|
908
909
|
provide({
|
|
909
910
|
provide: IS_CUSTOM_SERVER_TOKEN,
|
|
911
|
+
scope: Scope.SINGLETON,
|
|
910
912
|
useFactory: ({ port, envManager }) => {
|
|
911
913
|
return +envManager.get('PORT') !== port;
|
|
912
914
|
},
|
package/lib/server.js
CHANGED
|
@@ -923,6 +923,7 @@ UtilityServerModule = tslib.__decorate([
|
|
|
923
923
|
}),
|
|
924
924
|
core.provide({
|
|
925
925
|
provide: tokensServer.UTILITY_SERVER_PORT_TOKEN,
|
|
926
|
+
scope: core.Scope.SINGLETON,
|
|
926
927
|
useFactory: ({ envManager }) => {
|
|
927
928
|
return +(envManager.get('UTILITY_SERVER_PORT') || envManager.get('PORT'));
|
|
928
929
|
},
|
|
@@ -932,6 +933,7 @@ UtilityServerModule = tslib.__decorate([
|
|
|
932
933
|
}),
|
|
933
934
|
core.provide({
|
|
934
935
|
provide: IS_CUSTOM_SERVER_TOKEN,
|
|
936
|
+
scope: core.Scope.SINGLETON,
|
|
935
937
|
useFactory: ({ port, envManager }) => {
|
|
936
938
|
return +envManager.get('PORT') !== port;
|
|
937
939
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tinkoff/errors": "0.2.
|
|
23
|
-
"@tinkoff/monkeypatch": "1.3.
|
|
24
|
-
"@tinkoff/terminus": "0.0.
|
|
25
|
-
"@tinkoff/url": "0.7.
|
|
26
|
-
"@tramvai/module-cache-warmup": "
|
|
27
|
-
"@tramvai/module-metrics": "
|
|
28
|
-
"@tramvai/papi": "
|
|
29
|
-
"@tramvai/tokens-server": "
|
|
30
|
-
"@tramvai/tokens-server-private": "
|
|
22
|
+
"@tinkoff/errors": "0.2.22",
|
|
23
|
+
"@tinkoff/monkeypatch": "1.3.5",
|
|
24
|
+
"@tinkoff/terminus": "0.0.5",
|
|
25
|
+
"@tinkoff/url": "0.7.39",
|
|
26
|
+
"@tramvai/module-cache-warmup": "2.0.2",
|
|
27
|
+
"@tramvai/module-metrics": "2.0.2",
|
|
28
|
+
"@tramvai/papi": "2.0.2",
|
|
29
|
+
"@tramvai/tokens-server": "2.0.2",
|
|
30
|
+
"@tramvai/tokens-server-private": "2.0.2",
|
|
31
31
|
"compression": "^1.7.4",
|
|
32
32
|
"express": "^4.17.1",
|
|
33
33
|
"fastify": "^3.29.0",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"http-proxy-middleware": "^2.0.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@tinkoff/dippy": "0.7.
|
|
41
|
+
"@tinkoff/dippy": "0.7.42",
|
|
42
42
|
"@tinkoff/utils": "^2.1.2",
|
|
43
|
-
"@tramvai/cli": "
|
|
44
|
-
"@tramvai/core": "
|
|
45
|
-
"@tramvai/module-common": "
|
|
46
|
-
"@tramvai/module-environment": "
|
|
47
|
-
"@tramvai/tokens-common": "
|
|
43
|
+
"@tramvai/cli": "2.0.2",
|
|
44
|
+
"@tramvai/core": "2.0.2",
|
|
45
|
+
"@tramvai/module-common": "2.0.2",
|
|
46
|
+
"@tramvai/module-environment": "2.0.2",
|
|
47
|
+
"@tramvai/tokens-common": "2.0.2",
|
|
48
48
|
"tslib": "^2.0.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|