@tramvai/tokens-server 1.95.2 → 1.98.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 CHANGED
@@ -155,10 +155,15 @@ export declare const PROXY_CONFIG_TOKEN: ProxyConfig[];
155
155
  export declare const DEPENDENCIES_VERSION_FILTER_TOKEN: DepsFilter;
156
156
  /**
157
157
  * @description
158
- * List of the special URLs on server (e.g. healthz and readyz)
158
+ * List of the utility URLs on server (e.g. healthz and readyz)
159
159
  * Url matching is happens with a library `path-to-regexp`.
160
160
  */
161
- export declare const SPECIAL_SERVER_PATHS: string;
161
+ export declare const UTILITY_SERVER_PATHS: string;
162
+ /**
163
+ * @description
164
+ * Defines port to listen for utility routes
165
+ */
166
+ export declare const UTILITY_SERVER_PORT_TOKEN: number;
162
167
  /**
163
168
  * @description
164
169
  * Custom function for k8s readiness, you might want to wait for something before allowing traffic to your app\
package/lib/index.es.js CHANGED
@@ -165,10 +165,15 @@ const PROXY_CONFIG_TOKEN = createToken('proxyConfigToken', {
165
165
  const DEPENDENCIES_VERSION_FILTER_TOKEN = createToken('dependenciesVersionFilter');
166
166
  /**
167
167
  * @description
168
- * List of the special URLs on server (e.g. healthz and readyz)
168
+ * List of the utility URLs on server (e.g. healthz and readyz)
169
169
  * Url matching is happens with a library `path-to-regexp`.
170
170
  */
171
- const SPECIAL_SERVER_PATHS = createToken('specialServerPaths', { multi: true });
171
+ const UTILITY_SERVER_PATHS = createToken('server utility paths', { multi: true });
172
+ /**
173
+ * @description
174
+ * Defines port to listen for utility routes
175
+ */
176
+ const UTILITY_SERVER_PORT_TOKEN = createToken('server utility server port');
172
177
  /**
173
178
  * @description
174
179
  * Custom function for k8s readiness, you might want to wait for something before allowing traffic to your app\
@@ -182,4 +187,4 @@ const READINESS_PROBE_TOKEN = createToken('readiness-probe-fn');
182
187
  */
183
188
  const LIVENESS_PROBE_TOKEN = createToken('liveness-probe-fn');
184
189
 
185
- export { DEPENDENCIES_VERSION_FILTER_TOKEN, LIVENESS_PROBE_TOKEN, PROXY_CONFIG_TOKEN, READINESS_PROBE_TOKEN, SERVER_MODULE_PAPI_PRIVATE_ROUTE, SERVER_MODULE_PAPI_PRIVATE_URL, SERVER_MODULE_PAPI_PUBLIC_ROUTE, SERVER_MODULE_PAPI_PUBLIC_URL, SERVER_MODULE_STATICS_OPTIONS, SERVER_TOKEN, SPECIAL_SERVER_PATHS, WEB_APP_AFTER_INIT_TOKEN, WEB_APP_BEFORE_INIT_TOKEN, WEB_APP_INIT_TOKEN, WEB_APP_LIMITER_TOKEN, WEB_APP_TOKEN };
190
+ export { DEPENDENCIES_VERSION_FILTER_TOKEN, LIVENESS_PROBE_TOKEN, PROXY_CONFIG_TOKEN, READINESS_PROBE_TOKEN, SERVER_MODULE_PAPI_PRIVATE_ROUTE, SERVER_MODULE_PAPI_PRIVATE_URL, SERVER_MODULE_PAPI_PUBLIC_ROUTE, SERVER_MODULE_PAPI_PUBLIC_URL, SERVER_MODULE_STATICS_OPTIONS, SERVER_TOKEN, UTILITY_SERVER_PATHS, UTILITY_SERVER_PORT_TOKEN, WEB_APP_AFTER_INIT_TOKEN, WEB_APP_BEFORE_INIT_TOKEN, WEB_APP_INIT_TOKEN, WEB_APP_LIMITER_TOKEN, WEB_APP_TOKEN };
package/lib/index.js CHANGED
@@ -169,10 +169,15 @@ const PROXY_CONFIG_TOKEN = dippy.createToken('proxyConfigToken', {
169
169
  const DEPENDENCIES_VERSION_FILTER_TOKEN = dippy.createToken('dependenciesVersionFilter');
170
170
  /**
171
171
  * @description
172
- * List of the special URLs on server (e.g. healthz and readyz)
172
+ * List of the utility URLs on server (e.g. healthz and readyz)
173
173
  * Url matching is happens with a library `path-to-regexp`.
174
174
  */
175
- const SPECIAL_SERVER_PATHS = dippy.createToken('specialServerPaths', { multi: true });
175
+ const UTILITY_SERVER_PATHS = dippy.createToken('server utility paths', { multi: true });
176
+ /**
177
+ * @description
178
+ * Defines port to listen for utility routes
179
+ */
180
+ const UTILITY_SERVER_PORT_TOKEN = dippy.createToken('server utility server port');
176
181
  /**
177
182
  * @description
178
183
  * Custom function for k8s readiness, you might want to wait for something before allowing traffic to your app\
@@ -196,7 +201,8 @@ exports.SERVER_MODULE_PAPI_PUBLIC_ROUTE = SERVER_MODULE_PAPI_PUBLIC_ROUTE;
196
201
  exports.SERVER_MODULE_PAPI_PUBLIC_URL = SERVER_MODULE_PAPI_PUBLIC_URL;
197
202
  exports.SERVER_MODULE_STATICS_OPTIONS = SERVER_MODULE_STATICS_OPTIONS;
198
203
  exports.SERVER_TOKEN = SERVER_TOKEN;
199
- exports.SPECIAL_SERVER_PATHS = SPECIAL_SERVER_PATHS;
204
+ exports.UTILITY_SERVER_PATHS = UTILITY_SERVER_PATHS;
205
+ exports.UTILITY_SERVER_PORT_TOKEN = UTILITY_SERVER_PORT_TOKEN;
200
206
  exports.WEB_APP_AFTER_INIT_TOKEN = WEB_APP_AFTER_INIT_TOKEN;
201
207
  exports.WEB_APP_BEFORE_INIT_TOKEN = WEB_APP_BEFORE_INIT_TOKEN;
202
208
  exports.WEB_APP_INIT_TOKEN = WEB_APP_INIT_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server",
3
- "version": "1.95.2",
3
+ "version": "1.98.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,12 @@
19
19
  "build-for-publish": "true"
20
20
  },
21
21
  "dependencies": {
22
- "@tramvai/papi": "1.95.2"
22
+ "@tramvai/papi": "1.98.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@tinkoff/dippy": "0.7.39",
26
26
  "express": "^4.17.1",
27
- "fastify": "^3.27.4",
27
+ "fastify": "^3.29.0",
28
28
  "tslib": "^2.0.3"
29
29
  },
30
30
  "devDependencies": {