@tramvai/module-server 1.110.0 → 1.110.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 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": "1.110.0",
3
+ "version": "1.110.2",
4
4
  "description": "",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -23,11 +23,11 @@
23
23
  "@tinkoff/monkeypatch": "1.3.4",
24
24
  "@tinkoff/terminus": "0.0.4",
25
25
  "@tinkoff/url": "0.7.38",
26
- "@tramvai/module-cache-warmup": "1.110.0",
27
- "@tramvai/module-metrics": "1.110.0",
28
- "@tramvai/papi": "1.110.0",
29
- "@tramvai/tokens-server": "1.110.0",
30
- "@tramvai/tokens-server-private": "1.110.0",
26
+ "@tramvai/module-cache-warmup": "1.110.2",
27
+ "@tramvai/module-metrics": "1.110.2",
28
+ "@tramvai/papi": "1.110.2",
29
+ "@tramvai/tokens-server": "1.110.2",
30
+ "@tramvai/tokens-server-private": "1.110.2",
31
31
  "compression": "^1.7.4",
32
32
  "express": "^4.17.1",
33
33
  "fastify": "^3.29.0",
@@ -40,11 +40,11 @@
40
40
  "peerDependencies": {
41
41
  "@tinkoff/dippy": "0.7.41",
42
42
  "@tinkoff/utils": "^2.1.2",
43
- "@tramvai/cli": "1.110.0",
44
- "@tramvai/core": "1.110.0",
45
- "@tramvai/module-common": "1.110.0",
46
- "@tramvai/module-environment": "1.110.0",
47
- "@tramvai/tokens-common": "1.110.0",
43
+ "@tramvai/cli": "1.110.2",
44
+ "@tramvai/core": "1.110.2",
45
+ "@tramvai/module-common": "1.110.2",
46
+ "@tramvai/module-environment": "1.110.2",
47
+ "@tramvai/tokens-common": "1.110.2",
48
48
  "tslib": "^2.0.3"
49
49
  },
50
50
  "devDependencies": {