@tramvai/tokens-server-private 2.72.5 → 2.73.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/index.d.ts CHANGED
@@ -123,4 +123,15 @@ export type PapiExecutor = <Result>(papi: Papi<Result>) => Result;
123
123
  export declare const PAPI_EXECUTOR: PapiExecutor & {
124
124
  __type?: "base token" | undefined;
125
125
  };
126
+ /**
127
+ * @description
128
+ * Service that creates a response for the 103 Early Hints status code
129
+ * and writes it to the TCP socket directly
130
+ */
131
+ export declare const EARLY_HINTS_MANAGER_TOKEN: EarlyHintsManager & {
132
+ __type?: "base token" | undefined;
133
+ };
134
+ export interface EarlyHintsManager {
135
+ flushHints(): Promise<void>;
136
+ }
126
137
  export {};
package/lib/index.es.js CHANGED
@@ -79,5 +79,11 @@ const UTILITY_SERVER_TOKEN = createToken('server utilityServer');
79
79
  */
80
80
  const UTILITY_WEB_FASTIFY_APP_TOKEN = createToken('webApp utilityServer');
81
81
  const PAPI_EXECUTOR = createToken('papi executor');
82
+ /**
83
+ * @description
84
+ * Service that creates a response for the 103 Early Hints status code
85
+ * and writes it to the TCP socket directly
86
+ */
87
+ const EARLY_HINTS_MANAGER_TOKEN = createToken('earlyHintsManager');
82
88
 
83
- export { FASTIFY_REQUEST, FASTIFY_RESPONSE, PAPI_EXECUTOR, SERVER_FACTORY_TOKEN, UTILITY_SERVER_TOKEN, UTILITY_WEB_FASTIFY_APP_TOKEN, WEB_FASTIFY_APP_AFTER_ERROR_TOKEN, WEB_FASTIFY_APP_AFTER_INIT_TOKEN, WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN, WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, WEB_FASTIFY_APP_FACTORY_TOKEN, WEB_FASTIFY_APP_INIT_TOKEN, WEB_FASTIFY_APP_LIMITER_TOKEN, WEB_FASTIFY_APP_METRICS_TOKEN, WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN, WEB_FASTIFY_APP_TOKEN };
89
+ export { EARLY_HINTS_MANAGER_TOKEN, FASTIFY_REQUEST, FASTIFY_RESPONSE, PAPI_EXECUTOR, SERVER_FACTORY_TOKEN, UTILITY_SERVER_TOKEN, UTILITY_WEB_FASTIFY_APP_TOKEN, WEB_FASTIFY_APP_AFTER_ERROR_TOKEN, WEB_FASTIFY_APP_AFTER_INIT_TOKEN, WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN, WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, WEB_FASTIFY_APP_FACTORY_TOKEN, WEB_FASTIFY_APP_INIT_TOKEN, WEB_FASTIFY_APP_LIMITER_TOKEN, WEB_FASTIFY_APP_METRICS_TOKEN, WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN, WEB_FASTIFY_APP_TOKEN };
package/lib/index.js CHANGED
@@ -83,7 +83,14 @@ const UTILITY_SERVER_TOKEN = dippy.createToken('server utilityServer');
83
83
  */
84
84
  const UTILITY_WEB_FASTIFY_APP_TOKEN = dippy.createToken('webApp utilityServer');
85
85
  const PAPI_EXECUTOR = dippy.createToken('papi executor');
86
+ /**
87
+ * @description
88
+ * Service that creates a response for the 103 Early Hints status code
89
+ * and writes it to the TCP socket directly
90
+ */
91
+ const EARLY_HINTS_MANAGER_TOKEN = dippy.createToken('earlyHintsManager');
86
92
 
93
+ exports.EARLY_HINTS_MANAGER_TOKEN = EARLY_HINTS_MANAGER_TOKEN;
87
94
  exports.FASTIFY_REQUEST = FASTIFY_REQUEST;
88
95
  exports.FASTIFY_RESPONSE = FASTIFY_RESPONSE;
89
96
  exports.PAPI_EXECUTOR = PAPI_EXECUTOR;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server-private",
3
- "version": "2.72.5",
3
+ "version": "2.73.1",
4
4
  "description": "Tramvai private tokens for @tramvai/module-server",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -18,7 +18,7 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/papi": "2.72.5"
21
+ "@tramvai/papi": "2.73.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@tinkoff/dippy": "0.8.13",