@tramvai/tokens-server 2.160.19 → 2.160.25

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
@@ -151,6 +151,15 @@ export declare const LIVENESS_PROBE_TOKEN: (() => Promise<any>) & {
151
151
  export declare const EARLY_HINTS_ENABLED_TOKEN: (() => boolean) & {
152
152
  __type?: "base token" | undefined;
153
153
  };
154
+ /**
155
+ * @description
156
+ * Provide custom error for root error boundary in case of static generation
157
+ */
158
+ export declare const STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN: Error & {
159
+ [key: string]: any;
160
+ } & {
161
+ __type?: "base token" | undefined;
162
+ };
154
163
  export interface ServerModuleStaticsOptions {
155
164
  path: string;
156
165
  }
package/lib/index.es.js CHANGED
@@ -101,5 +101,10 @@ const LIVENESS_PROBE_TOKEN = createToken('liveness-probe-fn');
101
101
  * Enable Early Hints. By default return `true` when `EARLY_HINTS_ENABLED` env variable has a `"true"` value
102
102
  */
103
103
  const EARLY_HINTS_ENABLED_TOKEN = createToken('early hints enabled');
104
+ /**
105
+ * @description
106
+ * Provide custom error for root error boundary in case of static generation
107
+ */
108
+ const STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN = createToken('root error boundary static error');
104
109
 
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 };
110
+ 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, STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN, UTILITY_SERVER_PATHS, UTILITY_SERVER_PORT_TOKEN };
package/lib/index.js CHANGED
@@ -105,6 +105,11 @@ const LIVENESS_PROBE_TOKEN = dippy.createToken('liveness-probe-fn');
105
105
  * Enable Early Hints. By default return `true` when `EARLY_HINTS_ENABLED` env variable has a `"true"` value
106
106
  */
107
107
  const EARLY_HINTS_ENABLED_TOKEN = dippy.createToken('early hints enabled');
108
+ /**
109
+ * @description
110
+ * Provide custom error for root error boundary in case of static generation
111
+ */
112
+ const STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN = dippy.createToken('root error boundary static error');
108
113
 
109
114
  exports.DEPENDENCIES_VERSION_FILTER_TOKEN = DEPENDENCIES_VERSION_FILTER_TOKEN;
110
115
  exports.EARLY_HINTS_ENABLED_TOKEN = EARLY_HINTS_ENABLED_TOKEN;
@@ -119,5 +124,6 @@ exports.SERVER_MODULE_PAPI_PUBLIC_ROUTE = SERVER_MODULE_PAPI_PUBLIC_ROUTE;
119
124
  exports.SERVER_MODULE_PAPI_PUBLIC_URL = SERVER_MODULE_PAPI_PUBLIC_URL;
120
125
  exports.SERVER_MODULE_STATICS_OPTIONS = SERVER_MODULE_STATICS_OPTIONS;
121
126
  exports.SERVER_TOKEN = SERVER_TOKEN;
127
+ exports.STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN = STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN;
122
128
  exports.UTILITY_SERVER_PATHS = UTILITY_SERVER_PATHS;
123
129
  exports.UTILITY_SERVER_PORT_TOKEN = UTILITY_SERVER_PORT_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server",
3
- "version": "2.160.19",
3
+ "version": "2.160.25",
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,8 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/papi": "2.160.19"
21
+ "@tramvai/papi": "2.160.25",
22
+ "@tramvai/safe-strings": "0.5.12"
22
23
  },
23
24
  "peerDependencies": {
24
25
  "@tinkoff/dippy": "0.8.16",