@tramvai/tokens-server-private 2.40.0 → 2.44.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +4 -4
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import type { Server } from 'http';
3
3
  import type { FastifyError, FastifyInstance, FastifyReply, FastifyRequest as OriginalFastifyRequest } from 'fastify';
4
4
  import type { Papi } from '@tramvai/papi';
5
- declare type FastifyRequest = OriginalFastifyRequest & {
5
+ type FastifyRequest = OriginalFastifyRequest & {
6
6
  cookies: Record<string, string>;
7
7
  };
8
8
  /**
@@ -85,8 +85,8 @@ export declare const UTILITY_SERVER_TOKEN: import("@tinkoff/dippy").BaseTokenInt
85
85
  * Web app for utility routes
86
86
  */
87
87
  export declare const UTILITY_WEB_FASTIFY_APP_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<FastifyInstance<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
88
- export declare type FASTIFY_APP_INIT_HANDLER = (app: FastifyInstance) => Promise<void> | void;
89
- export declare type FASTIFY_APP_ERROR_HANDLER = (error: FastifyError, request: FastifyRequest, reply: FastifyReply) => Promise<string | undefined | void> | string | undefined | void;
90
- export declare type PapiExecutor = <Result>(papi: Papi<Result>) => Result;
88
+ export type FASTIFY_APP_INIT_HANDLER = (app: FastifyInstance) => Promise<void> | void;
89
+ export type FASTIFY_APP_ERROR_HANDLER = (error: FastifyError, request: FastifyRequest, reply: FastifyReply) => Promise<string | undefined | void> | string | undefined | void;
90
+ export type PapiExecutor = <Result>(papi: Papi<Result>) => Result;
91
91
  export declare const PAPI_EXECUTOR: import("@tinkoff/dippy").BaseTokenInterface<PapiExecutor>;
92
92
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server-private",
3
- "version": "2.40.0",
3
+ "version": "2.44.2",
4
4
  "description": "Tramvai private tokens for @tramvai/module-server",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -19,7 +19,7 @@
19
19
  "build-for-publish": "true"
20
20
  },
21
21
  "dependencies": {
22
- "@tramvai/papi": "2.40.0"
22
+ "@tramvai/papi": "2.44.2"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@tinkoff/dippy": "0.8.9",