@tramvai/tokens-server 1.84.0 → 1.89.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 +5 -0
- package/lib/index.es.js +5 -0
- package/lib/index.js +5 -0
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare const SERVER_MODULE_STATICS_OPTIONS: ServerModuleStaticsOptions;
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const SERVER_TOKEN: Server;
|
|
52
52
|
/**
|
|
53
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
53
54
|
* @description
|
|
54
55
|
* Instance of the current server app. By default it is an `express` app.
|
|
55
56
|
* Can be used to setup custom request handler and add custom routes
|
|
@@ -72,6 +73,7 @@ export declare const SERVER_TOKEN: Server;
|
|
|
72
73
|
*/
|
|
73
74
|
export declare const WEB_APP_TOKEN: Application;
|
|
74
75
|
/**
|
|
76
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
75
77
|
* @description
|
|
76
78
|
* Subscription to before web-app initialization. It is called before any standard handlers.
|
|
77
79
|
*
|
|
@@ -88,6 +90,7 @@ export declare const WEB_APP_TOKEN: Application;
|
|
|
88
90
|
*/
|
|
89
91
|
export declare const WEB_APP_BEFORE_INIT_TOKEN: APP_INIT_HANDLER;
|
|
90
92
|
/**
|
|
93
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
91
94
|
* @description
|
|
92
95
|
* Subscription to web-app initialization.
|
|
93
96
|
* It is called after global request handlers but before handlers for page rendering
|
|
@@ -106,6 +109,7 @@ export declare const WEB_APP_BEFORE_INIT_TOKEN: APP_INIT_HANDLER;
|
|
|
106
109
|
*/
|
|
107
110
|
export declare const WEB_APP_INIT_TOKEN: APP_INIT_HANDLER;
|
|
108
111
|
/**
|
|
112
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
109
113
|
* @description
|
|
110
114
|
* You can limit requests of application.
|
|
111
115
|
*
|
|
@@ -122,6 +126,7 @@ export declare const WEB_APP_INIT_TOKEN: APP_INIT_HANDLER;
|
|
|
122
126
|
*/
|
|
123
127
|
export declare const WEB_APP_LIMITER_TOKEN: APP_INIT_HANDLER;
|
|
124
128
|
/**
|
|
129
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
125
130
|
* @description
|
|
126
131
|
* Subscription to after web-app initialization.
|
|
127
132
|
* It is called after any other handlers
|
package/lib/index.es.js
CHANGED
|
@@ -52,6 +52,7 @@ const SERVER_MODULE_STATICS_OPTIONS = createToken('serverModuleStaticsOptions');
|
|
|
52
52
|
*/
|
|
53
53
|
const SERVER_TOKEN = createToken('server');
|
|
54
54
|
/**
|
|
55
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
55
56
|
* @description
|
|
56
57
|
* Instance of the current server app. By default it is an `express` app.
|
|
57
58
|
* Can be used to setup custom request handler and add custom routes
|
|
@@ -74,6 +75,7 @@ const SERVER_TOKEN = createToken('server');
|
|
|
74
75
|
*/
|
|
75
76
|
const WEB_APP_TOKEN = createToken('webApp');
|
|
76
77
|
/**
|
|
78
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
77
79
|
* @description
|
|
78
80
|
* Subscription to before web-app initialization. It is called before any standard handlers.
|
|
79
81
|
*
|
|
@@ -92,6 +94,7 @@ const WEB_APP_BEFORE_INIT_TOKEN = createToken('webAppBeforeInit', {
|
|
|
92
94
|
multi: true,
|
|
93
95
|
});
|
|
94
96
|
/**
|
|
97
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
95
98
|
* @description
|
|
96
99
|
* Subscription to web-app initialization.
|
|
97
100
|
* It is called after global request handlers but before handlers for page rendering
|
|
@@ -110,6 +113,7 @@ const WEB_APP_BEFORE_INIT_TOKEN = createToken('webAppBeforeInit', {
|
|
|
110
113
|
*/
|
|
111
114
|
const WEB_APP_INIT_TOKEN = createToken('webAppInit', { multi: true });
|
|
112
115
|
/**
|
|
116
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
113
117
|
* @description
|
|
114
118
|
* You can limit requests of application.
|
|
115
119
|
*
|
|
@@ -128,6 +132,7 @@ const WEB_APP_LIMITER_TOKEN = createToken('webAppLimitter', {
|
|
|
128
132
|
multi: true,
|
|
129
133
|
});
|
|
130
134
|
/**
|
|
135
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
131
136
|
* @description
|
|
132
137
|
* Subscription to after web-app initialization.
|
|
133
138
|
* It is called after any other handlers
|
package/lib/index.js
CHANGED
|
@@ -56,6 +56,7 @@ const SERVER_MODULE_STATICS_OPTIONS = dippy.createToken('serverModuleStaticsOpti
|
|
|
56
56
|
*/
|
|
57
57
|
const SERVER_TOKEN = dippy.createToken('server');
|
|
58
58
|
/**
|
|
59
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
59
60
|
* @description
|
|
60
61
|
* Instance of the current server app. By default it is an `express` app.
|
|
61
62
|
* Can be used to setup custom request handler and add custom routes
|
|
@@ -78,6 +79,7 @@ const SERVER_TOKEN = dippy.createToken('server');
|
|
|
78
79
|
*/
|
|
79
80
|
const WEB_APP_TOKEN = dippy.createToken('webApp');
|
|
80
81
|
/**
|
|
82
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
81
83
|
* @description
|
|
82
84
|
* Subscription to before web-app initialization. It is called before any standard handlers.
|
|
83
85
|
*
|
|
@@ -96,6 +98,7 @@ const WEB_APP_BEFORE_INIT_TOKEN = dippy.createToken('webAppBeforeInit', {
|
|
|
96
98
|
multi: true,
|
|
97
99
|
});
|
|
98
100
|
/**
|
|
101
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
99
102
|
* @description
|
|
100
103
|
* Subscription to web-app initialization.
|
|
101
104
|
* It is called after global request handlers but before handlers for page rendering
|
|
@@ -114,6 +117,7 @@ const WEB_APP_BEFORE_INIT_TOKEN = dippy.createToken('webAppBeforeInit', {
|
|
|
114
117
|
*/
|
|
115
118
|
const WEB_APP_INIT_TOKEN = dippy.createToken('webAppInit', { multi: true });
|
|
116
119
|
/**
|
|
120
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
117
121
|
* @description
|
|
118
122
|
* You can limit requests of application.
|
|
119
123
|
*
|
|
@@ -132,6 +136,7 @@ const WEB_APP_LIMITER_TOKEN = dippy.createToken('webAppLimitter', {
|
|
|
132
136
|
multi: true,
|
|
133
137
|
});
|
|
134
138
|
/**
|
|
139
|
+
* @deprecated Prefer not to use such low-level entity as it may change in the future or will be dropped.
|
|
135
140
|
* @description
|
|
136
141
|
* Subscription to after web-app initialization.
|
|
137
142
|
* It is called after any other handlers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.1",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-server",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tramvai/papi": "1.
|
|
22
|
+
"@tramvai/papi": "1.89.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@tinkoff/dippy": "0.7.39",
|
|
26
26
|
"express": "^4.17.1",
|
|
27
|
+
"fastify": "^3.27.4",
|
|
27
28
|
"tslib": "^2.0.3"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|