@tramvai/tokens-server 2.74.0 → 2.76.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.
- package/lib/index.d.ts +7 -0
- package/lib/index.es.js +6 -1
- package/lib/index.js +6 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -144,6 +144,13 @@ export declare const READINESS_PROBE_TOKEN: (() => Promise<any>) & {
|
|
|
144
144
|
export declare const LIVENESS_PROBE_TOKEN: (() => Promise<any>) & {
|
|
145
145
|
__type?: "base token" | undefined;
|
|
146
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* @description
|
|
149
|
+
* Enable Early Hints. By default return `true` when `EARLY_HINTS_ENABLED` env variable has a `"true"` value
|
|
150
|
+
*/
|
|
151
|
+
export declare const EARLY_HINTS_ENABLED_TOKEN: (() => boolean) & {
|
|
152
|
+
__type?: "base token" | undefined;
|
|
153
|
+
};
|
|
147
154
|
export interface ServerModuleStaticsOptions {
|
|
148
155
|
path: string;
|
|
149
156
|
}
|
package/lib/index.es.js
CHANGED
|
@@ -96,5 +96,10 @@ const READINESS_PROBE_TOKEN = createToken('readiness-probe-fn');
|
|
|
96
96
|
* https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
|
97
97
|
*/
|
|
98
98
|
const LIVENESS_PROBE_TOKEN = createToken('liveness-probe-fn');
|
|
99
|
+
/**
|
|
100
|
+
* @description
|
|
101
|
+
* Enable Early Hints. By default return `true` when `EARLY_HINTS_ENABLED` env variable has a `"true"` value
|
|
102
|
+
*/
|
|
103
|
+
const EARLY_HINTS_ENABLED_TOKEN = createToken('early hints enabled');
|
|
99
104
|
|
|
100
|
-
export { DEPENDENCIES_VERSION_FILTER_TOKEN, LIVENESS_PATH_TOKEN, LIVENESS_PROBE_TOKEN, PROXY_CONFIG_TOKEN, READINESS_PATH_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 };
|
|
105
|
+
export { DEPENDENCIES_VERSION_FILTER_TOKEN, EARLY_HINTS_ENABLED_TOKEN, LIVENESS_PATH_TOKEN, LIVENESS_PROBE_TOKEN, PROXY_CONFIG_TOKEN, READINESS_PATH_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 };
|
package/lib/index.js
CHANGED
|
@@ -100,8 +100,14 @@ const READINESS_PROBE_TOKEN = dippy.createToken('readiness-probe-fn');
|
|
|
100
100
|
* https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
|
101
101
|
*/
|
|
102
102
|
const LIVENESS_PROBE_TOKEN = dippy.createToken('liveness-probe-fn');
|
|
103
|
+
/**
|
|
104
|
+
* @description
|
|
105
|
+
* Enable Early Hints. By default return `true` when `EARLY_HINTS_ENABLED` env variable has a `"true"` value
|
|
106
|
+
*/
|
|
107
|
+
const EARLY_HINTS_ENABLED_TOKEN = dippy.createToken('early hints enabled');
|
|
103
108
|
|
|
104
109
|
exports.DEPENDENCIES_VERSION_FILTER_TOKEN = DEPENDENCIES_VERSION_FILTER_TOKEN;
|
|
110
|
+
exports.EARLY_HINTS_ENABLED_TOKEN = EARLY_HINTS_ENABLED_TOKEN;
|
|
105
111
|
exports.LIVENESS_PATH_TOKEN = LIVENESS_PATH_TOKEN;
|
|
106
112
|
exports.LIVENESS_PROBE_TOKEN = LIVENESS_PROBE_TOKEN;
|
|
107
113
|
exports.PROXY_CONFIG_TOKEN = PROXY_CONFIG_TOKEN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.76.2",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-server",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"watch": "tsc -w"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tramvai/papi": "2.
|
|
21
|
+
"@tramvai/papi": "2.76.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tinkoff/dippy": "0.8.13",
|