@tramvai/module-server 2.73.0 → 2.74.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.
@@ -13,6 +13,9 @@ class EarlyHintsManager {
13
13
  var _a, _b;
14
14
  let resourceHint = null;
15
15
  let cdnHint = null;
16
+ if (!resource.payload) {
17
+ return acc;
18
+ }
16
19
  if (resource.type === 'preconnectLink') {
17
20
  resourceHint = `Link: <${resource.payload}>; rel=preconnect`;
18
21
  }
@@ -17,6 +17,9 @@ class EarlyHintsManager {
17
17
  var _a, _b;
18
18
  let resourceHint = null;
19
19
  let cdnHint = null;
20
+ if (!resource.payload) {
21
+ return acc;
22
+ }
20
23
  if (resource.type === 'preconnectLink') {
21
24
  resourceHint = `Link: <${resource.payload}>; rel=preconnect`;
22
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-server",
3
- "version": "2.73.0",
3
+ "version": "2.74.0",
4
4
  "description": "",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -25,11 +25,11 @@
25
25
  "@tinkoff/monkeypatch": "2.0.4",
26
26
  "@tinkoff/terminus": "0.1.7",
27
27
  "@tinkoff/url": "0.8.5",
28
- "@tramvai/module-cache-warmup": "2.73.0",
29
- "@tramvai/module-metrics": "2.73.0",
30
- "@tramvai/papi": "2.73.0",
31
- "@tramvai/tokens-server": "2.73.0",
32
- "@tramvai/tokens-server-private": "2.73.0",
28
+ "@tramvai/module-cache-warmup": "2.74.0",
29
+ "@tramvai/module-metrics": "2.74.0",
30
+ "@tramvai/papi": "2.74.0",
31
+ "@tramvai/tokens-server": "2.74.0",
32
+ "@tramvai/tokens-server-private": "2.74.0",
33
33
  "fastify": "^4.6.0",
34
34
  "@fastify/cookie": "^8.1.0",
35
35
  "@fastify/compress": "^6.1.1",
@@ -40,13 +40,13 @@
40
40
  "peerDependencies": {
41
41
  "@tinkoff/dippy": "0.8.13",
42
42
  "@tinkoff/utils": "^2.1.2",
43
- "@tramvai/cli": "2.73.0",
44
- "@tramvai/core": "2.73.0",
45
- "@tramvai/module-common": "2.73.0",
46
- "@tramvai/module-environment": "2.73.0",
47
- "@tramvai/tokens-common": "2.73.0",
48
- "@tramvai/tokens-core-private": "2.73.0",
49
- "@tramvai/tokens-render": "2.73.0",
43
+ "@tramvai/cli": "2.74.0",
44
+ "@tramvai/core": "2.74.0",
45
+ "@tramvai/module-common": "2.74.0",
46
+ "@tramvai/module-environment": "2.74.0",
47
+ "@tramvai/tokens-common": "2.74.0",
48
+ "@tramvai/tokens-core-private": "2.74.0",
49
+ "@tramvai/tokens-render": "2.74.0",
50
50
  "tslib": "^2.4.0"
51
51
  },
52
52
  "devDependencies": {