@tramvai/tokens-server 2.39.3 → 2.40.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
@@ -80,6 +80,16 @@ export declare const UTILITY_SERVER_PATHS: import("@tinkoff/dippy").MultiTokenIn
80
80
  * Defines port to listen for utility routes
81
81
  */
82
82
  export declare const UTILITY_SERVER_PORT_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<number>;
83
+ /**
84
+ * @description
85
+ * Custom path for liveness probe
86
+ */
87
+ export declare const LIVENESS_PATH_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<string>;
88
+ /**
89
+ * @description
90
+ * Custom path for readiness probe
91
+ */
92
+ export declare const READINESS_PATH_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<string>;
83
93
  /**
84
94
  * @description
85
95
  * Custom function for k8s readiness, you might want to wait for something before allowing traffic to your app\
package/lib/index.es.js CHANGED
@@ -74,6 +74,16 @@ const UTILITY_SERVER_PATHS = createToken('server utility paths', { multi: true }
74
74
  * Defines port to listen for utility routes
75
75
  */
76
76
  const UTILITY_SERVER_PORT_TOKEN = createToken('server utility server port');
77
+ /**
78
+ * @description
79
+ * Custom path for liveness probe
80
+ */
81
+ const LIVENESS_PATH_TOKEN = createToken('liveness path');
82
+ /**
83
+ * @description
84
+ * Custom path for readiness probe
85
+ */
86
+ const READINESS_PATH_TOKEN = createToken('readiness path');
77
87
  /**
78
88
  * @description
79
89
  * Custom function for k8s readiness, you might want to wait for something before allowing traffic to your app\
@@ -87,4 +97,4 @@ const READINESS_PROBE_TOKEN = createToken('readiness-probe-fn');
87
97
  */
88
98
  const LIVENESS_PROBE_TOKEN = createToken('liveness-probe-fn');
89
99
 
90
- 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 };
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 };
package/lib/index.js CHANGED
@@ -78,6 +78,16 @@ const UTILITY_SERVER_PATHS = dippy.createToken('server utility paths', { multi:
78
78
  * Defines port to listen for utility routes
79
79
  */
80
80
  const UTILITY_SERVER_PORT_TOKEN = dippy.createToken('server utility server port');
81
+ /**
82
+ * @description
83
+ * Custom path for liveness probe
84
+ */
85
+ const LIVENESS_PATH_TOKEN = dippy.createToken('liveness path');
86
+ /**
87
+ * @description
88
+ * Custom path for readiness probe
89
+ */
90
+ const READINESS_PATH_TOKEN = dippy.createToken('readiness path');
81
91
  /**
82
92
  * @description
83
93
  * Custom function for k8s readiness, you might want to wait for something before allowing traffic to your app\
@@ -92,8 +102,10 @@ const READINESS_PROBE_TOKEN = dippy.createToken('readiness-probe-fn');
92
102
  const LIVENESS_PROBE_TOKEN = dippy.createToken('liveness-probe-fn');
93
103
 
94
104
  exports.DEPENDENCIES_VERSION_FILTER_TOKEN = DEPENDENCIES_VERSION_FILTER_TOKEN;
105
+ exports.LIVENESS_PATH_TOKEN = LIVENESS_PATH_TOKEN;
95
106
  exports.LIVENESS_PROBE_TOKEN = LIVENESS_PROBE_TOKEN;
96
107
  exports.PROXY_CONFIG_TOKEN = PROXY_CONFIG_TOKEN;
108
+ exports.READINESS_PATH_TOKEN = READINESS_PATH_TOKEN;
97
109
  exports.READINESS_PROBE_TOKEN = READINESS_PROBE_TOKEN;
98
110
  exports.SERVER_MODULE_PAPI_PRIVATE_ROUTE = SERVER_MODULE_PAPI_PRIVATE_ROUTE;
99
111
  exports.SERVER_MODULE_PAPI_PRIVATE_URL = SERVER_MODULE_PAPI_PRIVATE_URL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server",
3
- "version": "2.39.3",
3
+ "version": "2.40.0",
4
4
  "description": "Tramvai tokens for @tramvai/module-server",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -19,7 +19,7 @@
19
19
  "build-for-publish": "true"
20
20
  },
21
21
  "dependencies": {
22
- "@tramvai/papi": "2.39.3"
22
+ "@tramvai/papi": "2.40.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@tinkoff/dippy": "0.8.9",