@tramvai/tokens-server-private 2.7.0 → 2.11.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +12 -12
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -5,12 +5,12 @@ import type { FastifyError, FastifyInstance, FastifyReply, FastifyRequest } from
5
5
  * @description
6
6
  * Creates new server instance
7
7
  */
8
- export declare const SERVER_FACTORY_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<() => Server>;
8
+ export declare const SERVER_FACTORY_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<() => Server>;
9
9
  /**
10
10
  * @description
11
11
  * Creates web-app instance
12
12
  */
13
- export declare const WEB_FASTIFY_APP_FACTORY_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<(options: {
13
+ export declare const WEB_FASTIFY_APP_FACTORY_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<(options: {
14
14
  server: Server;
15
15
  }) => FastifyInstance>;
16
16
  /**
@@ -18,53 +18,53 @@ export declare const WEB_FASTIFY_APP_FACTORY_TOKEN: import("@tinkoff/dippy/lib/c
18
18
  * Instance of the current fastify app that handles requests.
19
19
  * Can be used to setup custom request handler and add custom routes
20
20
  */
21
- export declare const WEB_FASTIFY_APP_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<FastifyInstance<Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance>>;
21
+ export declare const WEB_FASTIFY_APP_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<FastifyInstance<Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance>>;
22
22
  /**
23
23
  * @description
24
24
  * Subscription to before web-app initialization. It is called before any standard handlers.
25
25
  */
26
- export declare const WEB_FASTIFY_APP_BEFORE_INIT_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
26
+ export declare const WEB_FASTIFY_APP_BEFORE_INIT_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
27
27
  /**
28
28
  * @description
29
29
  * Subscription to web-app initialization.
30
30
  * It is called after global request handlers but before handlers for page rendering
31
31
  */
32
- export declare const WEB_FASTIFY_APP_INIT_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
32
+ export declare const WEB_FASTIFY_APP_INIT_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
33
33
  /**
34
34
  * @description
35
35
  * You can limit requests of application.
36
36
  */
37
- export declare const WEB_FASTIFY_APP_LIMITER_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
37
+ export declare const WEB_FASTIFY_APP_LIMITER_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
38
38
  /**
39
39
  * @description
40
40
  * Subscription to after web-app initialization.
41
41
  * It is called after any other handlers
42
42
  */
43
- export declare const WEB_FASTIFY_APP_AFTER_INIT_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
43
+ export declare const WEB_FASTIFY_APP_AFTER_INIT_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_INIT_HANDLER>;
44
44
  /**
45
45
  * @description
46
46
  * Subscription to error handler before any default handlers.
47
47
  */
48
- export declare const WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_ERROR_HANDLER>;
48
+ export declare const WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_ERROR_HANDLER>;
49
49
  /**
50
50
  * @description
51
51
  * Subscription to error handler.
52
52
  */
53
- export declare const WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_ERROR_HANDLER>;
53
+ export declare const WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_ERROR_HANDLER>;
54
54
  /**
55
55
  * @description
56
56
  * Subscription to error handler after default handlers.
57
57
  */
58
- export declare const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<FASTIFY_APP_ERROR_HANDLER>;
58
+ export declare const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<FASTIFY_APP_ERROR_HANDLER>;
59
59
  /**
60
60
  * @description
61
61
  * Http server for utility routes
62
62
  */
63
- export declare const UTILITY_SERVER_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<Server>;
63
+ export declare const UTILITY_SERVER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<Server>;
64
64
  /**
65
65
  * @description
66
66
  * Web app for utility routes
67
67
  */
68
- export declare const UTILITY_WEB_FASTIFY_APP_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<FastifyInstance<Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance>>;
68
+ export declare const UTILITY_WEB_FASTIFY_APP_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<FastifyInstance<Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance>>;
69
69
  export declare type FASTIFY_APP_INIT_HANDLER = (app: FastifyInstance) => Promise<void> | void;
70
70
  export declare type FASTIFY_APP_ERROR_HANDLER = (error: FastifyError, request: FastifyRequest, reply: FastifyReply) => Promise<string | undefined | void> | string | undefined | void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server-private",
3
- "version": "2.7.0",
3
+ "version": "2.11.0",
4
4
  "description": "Tramvai private tokens for @tramvai/module-server",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {},
22
22
  "peerDependencies": {
23
- "@tinkoff/dippy": "0.7.44",
23
+ "@tinkoff/dippy": "0.7.45",
24
24
  "fastify": "^3.29.0",
25
25
  "tslib": "^2.0.3"
26
26
  },