@tramvai/module-page-render-mode 2.31.0 → 2.32.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.
package/lib/server.es.js CHANGED
@@ -7,7 +7,8 @@ import { useDi } from '@tramvai/react';
7
7
  import { PAGE_SERVICE_TOKEN } from '@tramvai/tokens-router';
8
8
  import { createToken } from '@tinkoff/dippy';
9
9
  import isEmpty from '@tinkoff/utils/is/empty';
10
- import { CREATE_CACHE_TOKEN, REQUEST_MANAGER_TOKEN, LOGGER_TOKEN, RESPONSE_MANAGER_TOKEN, FASTIFY_RESPONSE, ENV_MANAGER_TOKEN } from '@tramvai/tokens-common';
10
+ import { CREATE_CACHE_TOKEN, REQUEST_MANAGER_TOKEN, LOGGER_TOKEN, RESPONSE_MANAGER_TOKEN, ENV_MANAGER_TOKEN } from '@tramvai/tokens-common';
11
+ import { FASTIFY_RESPONSE } from '@tramvai/tokens-server-private';
11
12
  import { USER_AGENT_TOKEN } from '@tramvai/module-client-hints';
12
13
  import { SERVER_MODULE_PAPI_PRIVATE_ROUTE } from '@tramvai/tokens-server';
13
14
  import { METRICS_MODULE_TOKEN } from '@tramvai/tokens-metrics';
package/lib/server.js CHANGED
@@ -12,6 +12,7 @@ var tokensRouter = require('@tramvai/tokens-router');
12
12
  var dippy = require('@tinkoff/dippy');
13
13
  var isEmpty = require('@tinkoff/utils/is/empty');
14
14
  var tokensCommon = require('@tramvai/tokens-common');
15
+ var tokensServerPrivate = require('@tramvai/tokens-server-private');
15
16
  var moduleClientHints = require('@tramvai/module-client-hints');
16
17
  var tokensServer = require('@tramvai/tokens-server');
17
18
  var tokensMetrics = require('@tramvai/tokens-metrics');
@@ -412,7 +413,7 @@ const staticPagesProviders = [
412
413
  getCacheKey: STATIC_PAGES_GET_CACHE_KEY_TOKEN,
413
414
  requestManager: tokensCommon.REQUEST_MANAGER_TOKEN,
414
415
  responseManager: tokensCommon.RESPONSE_MANAGER_TOKEN,
415
- response: tokensCommon.FASTIFY_RESPONSE,
416
+ response: tokensServerPrivate.FASTIFY_RESPONSE,
416
417
  environmentManager: tokensCommon.ENV_MANAGER_TOKEN,
417
418
  userAgent: moduleClientHints.USER_AGENT_TOKEN,
418
419
  modern: tokensRender.MODERN_SATISFIES_TOKEN,
@@ -1,6 +1,7 @@
1
1
  import type { ExtractDependencyType } from '@tinkoff/dippy';
2
2
  import type { USER_AGENT_TOKEN } from '@tramvai/module-client-hints';
3
- import type { ENV_MANAGER_TOKEN, FASTIFY_RESPONSE, LOGGER_TOKEN, REQUEST_MANAGER_TOKEN, RESPONSE_MANAGER_TOKEN } from '@tramvai/tokens-common';
3
+ import type { ENV_MANAGER_TOKEN, LOGGER_TOKEN, REQUEST_MANAGER_TOKEN, RESPONSE_MANAGER_TOKEN } from '@tramvai/tokens-common';
4
+ import type { FASTIFY_RESPONSE } from '@tramvai/tokens-server-private';
4
5
  import type { MODERN_SATISFIES_TOKEN } from '@tramvai/tokens-render';
5
6
  import type { STATIC_PAGES_BACKGROUND_FETCH_SERVICE, STATIC_PAGES_GET_CACHE_KEY_TOKEN } from '../staticPages';
6
7
  import type { STATIC_PAGES_SHOULD_USE_CACHE, STATIC_PAGES_SHOULD_SET_TO_CACHE, STATIC_PAGES_CACHE_TOKEN, STATIC_PAGES_MODIFY_CACHE, STATIC_PAGES_OPTIONS_TOKEN, STATIC_PAGES_CACHE_5xx_RESPONSE } from '../tokens';
@@ -33,7 +33,7 @@ export declare const staticPagesProviders: (import("@tinkoff/dippy/lib/Provider"
33
33
  getCacheKey: import("@tinkoff/dippy").BaseTokenInterface<() => string>;
34
34
  requestManager: import("@tinkoff/dippy").BaseTokenInterface<import("@tramvai/tokens-common").RequestManager>;
35
35
  responseManager: import("@tinkoff/dippy").BaseTokenInterface<import("@tramvai/tokens-common").ResponseManager>;
36
- response: import("@tinkoff/dippy").BaseTokenInterface<import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify/types/route").RouteGenericInterface, unknown>>;
36
+ response: import("@tinkoff/dippy").BaseTokenInterface<import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>>;
37
37
  environmentManager: import("@tinkoff/dippy").BaseTokenInterface<import("@tramvai/tokens-common").EnvironmentManager>;
38
38
  userAgent: import("@tinkoff/dippy").BaseTokenInterface<import("@tinkoff/user-agent").UserAgent>;
39
39
  modern: import("@tinkoff/dippy").BaseTokenInterface<boolean>;
@@ -52,7 +52,7 @@ export declare const staticPagesProviders: (import("@tinkoff/dippy/lib/Provider"
52
52
  getCacheKey: import("@tinkoff/dippy").BaseTokenInterface<() => string>;
53
53
  requestManager: import("@tinkoff/dippy").BaseTokenInterface<import("@tramvai/tokens-common").RequestManager>;
54
54
  responseManager: import("@tinkoff/dippy").BaseTokenInterface<import("@tramvai/tokens-common").ResponseManager>;
55
- response: import("@tinkoff/dippy").BaseTokenInterface<import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify/types/route").RouteGenericInterface, unknown>>;
55
+ response: import("@tinkoff/dippy").BaseTokenInterface<import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>>;
56
56
  environmentManager: import("@tinkoff/dippy").BaseTokenInterface<import("@tramvai/tokens-common").EnvironmentManager>;
57
57
  userAgent: import("@tinkoff/dippy").BaseTokenInterface<import("@tinkoff/user-agent").UserAgent>;
58
58
  modern: import("@tinkoff/dippy").BaseTokenInterface<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-page-render-mode",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "description": "Enable different rendering modes for pages",
5
5
  "main": "./lib/server.js",
6
6
  "module": "./lib/server.es.js",
@@ -31,17 +31,18 @@
31
31
  "peerDependencies": {
32
32
  "@tinkoff/utils": "^2.1.2",
33
33
  "@tinkoff/dippy": "0.8.6",
34
- "@tramvai/core": "2.31.0",
35
- "@tramvai/react": "2.31.0",
36
- "@tramvai/papi": "2.31.0",
37
- "@tramvai/module-router": "2.31.0",
38
- "@tramvai/module-client-hints": "2.31.0",
39
- "@tramvai/tokens-common": "2.31.0",
40
- "@tramvai/tokens-core": "2.31.0",
41
- "@tramvai/tokens-render": "2.31.0",
42
- "@tramvai/tokens-router": "2.31.0",
43
- "@tramvai/tokens-server": "2.31.0",
44
- "@tramvai/tokens-metrics": "2.31.0",
34
+ "@tramvai/core": "2.32.0",
35
+ "@tramvai/react": "2.32.0",
36
+ "@tramvai/papi": "2.32.0",
37
+ "@tramvai/module-router": "2.32.0",
38
+ "@tramvai/module-client-hints": "2.32.0",
39
+ "@tramvai/tokens-common": "2.32.0",
40
+ "@tramvai/tokens-core": "2.32.0",
41
+ "@tramvai/tokens-render": "2.32.0",
42
+ "@tramvai/tokens-router": "2.32.0",
43
+ "@tramvai/tokens-server": "2.32.0",
44
+ "@tramvai/tokens-server-private": "2.32.0",
45
+ "@tramvai/tokens-metrics": "2.32.0",
45
46
  "prom-client": "^12.0.0",
46
47
  "react": ">=16.14.0",
47
48
  "tslib": "^2.4.0"