@tramvai/module-server 4.26.7 → 4.27.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.
package/lib/server.es.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import { setDefaultResultOrder } from 'dns';
3
+ import { setDefaultAutoSelectFamily } from 'net';
3
4
  import EventEmitter from 'events';
4
5
  import { Module, provide, Scope, commandLineListTokens, COMMAND_LINE_RUNNER_TOKEN, DI_TOKEN, APP_INFO_TOKEN } from '@tramvai/core';
5
6
  import { SERVER_TOKEN, STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN } from '@tramvai/tokens-server';
@@ -31,6 +32,9 @@ import { ServerResponseTaskManager } from './server/taskManager.es.js';
31
32
  if (typeof setDefaultResultOrder === 'function') {
32
33
  setDefaultResultOrder('ipv4first');
33
34
  }
35
+ if (typeof setDefaultAutoSelectFamily === 'function') {
36
+ setDefaultAutoSelectFamily(false);
37
+ }
34
38
  // tramvai add a lot of "abort" event listeners to AbortSignal, but we can't configure only AbortSignal max listeners,
35
39
  // because AbortSignal is not instance of EventEmitter - https://github.com/southpolesteve/node-abort-controller/blob/master/index.js
36
40
  EventEmitter.defaultMaxListeners = 50;
package/lib/server.js CHANGED
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var dns = require('dns');
7
+ var net = require('net');
7
8
  var EventEmitter = require('events');
8
9
  var core = require('@tramvai/core');
9
10
  var tokensServer = require('@tramvai/tokens-server');
@@ -38,6 +39,9 @@ var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
38
39
  if (typeof dns.setDefaultResultOrder === 'function') {
39
40
  dns.setDefaultResultOrder('ipv4first');
40
41
  }
42
+ if (typeof net.setDefaultAutoSelectFamily === 'function') {
43
+ net.setDefaultAutoSelectFamily(false);
44
+ }
41
45
  // tramvai add a lot of "abort" event listeners to AbortSignal, but we can't configure only AbortSignal max listeners,
42
46
  // because AbortSignal is not instance of EventEmitter - https://github.com/southpolesteve/node-abort-controller/blob/master/index.js
43
47
  EventEmitter__default["default"].defaultMaxListeners = 50;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-server",
3
- "version": "4.26.7",
3
+ "version": "4.27.1",
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.1",
27
27
  "@tinkoff/terminus": "0.3.1",
28
28
  "@tinkoff/url": "0.10.1",
29
- "@tramvai/module-cache-warmup": "4.26.7",
30
- "@tramvai/module-metrics": "4.26.7",
31
- "@tramvai/papi": "4.26.7",
32
- "@tramvai/tokens-server": "4.26.7",
33
- "@tramvai/tokens-router": "4.26.7",
34
- "@tramvai/tokens-server-private": "4.26.7",
29
+ "@tramvai/module-cache-warmup": "4.27.1",
30
+ "@tramvai/module-metrics": "4.27.1",
31
+ "@tramvai/papi": "4.27.1",
32
+ "@tramvai/tokens-server": "4.27.1",
33
+ "@tramvai/tokens-router": "4.27.1",
34
+ "@tramvai/tokens-server-private": "4.27.1",
35
35
  "@tramvai/safe-strings": "0.7.2",
36
36
  "fastify": "^4.14.1",
37
37
  "@fastify/cookie": "^8.3.0",
@@ -44,14 +44,14 @@
44
44
  "peerDependencies": {
45
45
  "@tinkoff/dippy": "0.10.8",
46
46
  "@tinkoff/utils": "^2.1.2",
47
- "@tramvai/cli": "4.26.7",
48
- "@tramvai/core": "4.26.7",
49
- "@tramvai/react": "4.26.7",
50
- "@tramvai/module-common": "4.26.7",
51
- "@tramvai/module-environment": "4.26.7",
52
- "@tramvai/tokens-common": "4.26.7",
53
- "@tramvai/tokens-core-private": "4.26.7",
54
- "@tramvai/tokens-render": "4.26.7",
47
+ "@tramvai/cli": "4.27.1",
48
+ "@tramvai/core": "4.27.1",
49
+ "@tramvai/react": "4.27.1",
50
+ "@tramvai/module-common": "4.27.1",
51
+ "@tramvai/module-environment": "4.27.1",
52
+ "@tramvai/tokens-common": "4.27.1",
53
+ "@tramvai/tokens-core-private": "4.27.1",
54
+ "@tramvai/tokens-render": "4.27.1",
55
55
  "react": ">=16.14.0",
56
56
  "react-dom": ">=16.14.0",
57
57
  "tslib": "^2.4.0"