@tramvai/tokens-server 2.22.0 → 2.24.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/index.d.ts +12 -1
- package/package.json +2 -3
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
import type { Server } from 'http';
|
|
3
3
|
import type { Application } from 'express';
|
|
4
4
|
import type { Papi } from '@tramvai/papi';
|
|
5
|
+
declare module '@tramvai/papi' {
|
|
6
|
+
interface Options {
|
|
7
|
+
schema?: {
|
|
8
|
+
body?: unknown;
|
|
9
|
+
query?: unknown;
|
|
10
|
+
params?: unknown;
|
|
11
|
+
headers?: unknown;
|
|
12
|
+
response?: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
5
16
|
/**
|
|
6
17
|
* @description
|
|
7
18
|
* Specifies base url for public papi handlers. By default equals to `/[appName]/papi`
|
|
@@ -48,7 +59,7 @@ export declare const SERVER_MODULE_STATICS_OPTIONS: import("@tinkoff/dippy").Bas
|
|
|
48
59
|
},
|
|
49
60
|
```
|
|
50
61
|
*/
|
|
51
|
-
export declare const SERVER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<Server
|
|
62
|
+
export declare const SERVER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>;
|
|
52
63
|
/**
|
|
53
64
|
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
54
65
|
* @description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-server",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -19,12 +19,11 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tramvai/papi": "2.
|
|
22
|
+
"@tramvai/papi": "2.24.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@tinkoff/dippy": "0.8.2",
|
|
26
26
|
"express": "^4.17.1",
|
|
27
|
-
"fastify": "^3.29.0",
|
|
28
27
|
"tslib": "^2.0.3"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|