@tramvai/tokens-server 7.5.1 → 7.7.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 +6 -0
- package/lib/index.es.js +4 -1
- package/lib/index.js +4 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -174,4 +174,10 @@ export type ProxyConfig = {
|
|
|
174
174
|
[key: string]: any;
|
|
175
175
|
};
|
|
176
176
|
export type DepsFilter = (deps: Record<string, string>) => Record<string, string> | Promise<Record<string, string>>;
|
|
177
|
+
export declare const ETAG_OPTIONS_TOKEN: {
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
weak?: boolean | undefined;
|
|
180
|
+
} & {
|
|
181
|
+
__type?: "base token" | undefined;
|
|
182
|
+
};
|
|
177
183
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.es.js
CHANGED
|
@@ -124,5 +124,8 @@ const EARLY_HINTS_ENABLED_TOKEN = createToken('early hints enabled');
|
|
|
124
124
|
* Provide custom error for root error boundary in case of static generation
|
|
125
125
|
*/
|
|
126
126
|
const STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN = createToken('root error boundary static error');
|
|
127
|
+
const ETAG_OPTIONS_TOKEN = createToken('tramvai/server etag options', {
|
|
128
|
+
scope: Scope.SINGLETON,
|
|
129
|
+
});
|
|
127
130
|
|
|
128
|
-
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 };
|
|
131
|
+
export { DEPENDENCIES_VERSION_FILTER_TOKEN, EARLY_HINTS_ENABLED_TOKEN, ETAG_OPTIONS_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
|
@@ -128,9 +128,13 @@ const EARLY_HINTS_ENABLED_TOKEN = dippy.createToken('early hints enabled');
|
|
|
128
128
|
* Provide custom error for root error boundary in case of static generation
|
|
129
129
|
*/
|
|
130
130
|
const STATIC_ROOT_ERROR_BOUNDARY_ERROR_TOKEN = dippy.createToken('root error boundary static error');
|
|
131
|
+
const ETAG_OPTIONS_TOKEN = dippy.createToken('tramvai/server etag options', {
|
|
132
|
+
scope: dippy.Scope.SINGLETON,
|
|
133
|
+
});
|
|
131
134
|
|
|
132
135
|
exports.DEPENDENCIES_VERSION_FILTER_TOKEN = DEPENDENCIES_VERSION_FILTER_TOKEN;
|
|
133
136
|
exports.EARLY_HINTS_ENABLED_TOKEN = EARLY_HINTS_ENABLED_TOKEN;
|
|
137
|
+
exports.ETAG_OPTIONS_TOKEN = ETAG_OPTIONS_TOKEN;
|
|
134
138
|
exports.LIVENESS_PATH_TOKEN = LIVENESS_PATH_TOKEN;
|
|
135
139
|
exports.LIVENESS_PROBE_TOKEN = LIVENESS_PROBE_TOKEN;
|
|
136
140
|
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": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
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": "7.
|
|
21
|
+
"@tramvai/papi": "7.7.0",
|
|
22
22
|
"@tramvai/safe-strings": "0.10.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|