mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(http): export CACHE_OPTIONS to support test suite requirements
Export the CACHE_OPTIONS injection token from transfer_cache.ts to resolve compilation failures in the unit test specs. On the 19.2.x branch, the CACHE_OPTIONS token was previously a local private constant. However, the newly cherry-picked testing configurations import this token directly, requiring it to be exported.
This commit is contained in:
@@ -113,7 +113,7 @@ interface CacheOptions extends HttpTransferCacheOptions {
|
||||
isCacheActive: boolean;
|
||||
}
|
||||
|
||||
const CACHE_OPTIONS = new InjectionToken<CacheOptions>(
|
||||
export const CACHE_OPTIONS = new InjectionToken<CacheOptions>(
|
||||
ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_OPTIONS' : '',
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user