@absolutejs/absolute 0.19.0-beta.742 → 0.19.0-beta.744

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.
@@ -1299,13 +1299,19 @@ var initDominoAdapter = (platformServer) => {
1299
1299
  APP_BASE_HREF: common.APP_BASE_HREF,
1300
1300
  bootstrapApplication: platformBrowser.bootstrapApplication,
1301
1301
  DomSanitizer: platformBrowser.DomSanitizer,
1302
+ ENVIRONMENT_INITIALIZER: core.ENVIRONMENT_INITIALIZER,
1303
+ inject: core.inject,
1302
1304
  provideClientHydration: platformBrowser.provideClientHydration,
1303
1305
  provideServerRendering: platformServer.provideServerRendering,
1304
1306
  provideZonelessChangeDetection: core.provideZonelessChangeDetection,
1305
1307
  reflectComponentType: core.reflectComponentType,
1306
1308
  renderApplication: platformServer.renderApplication,
1309
+ REQUEST: core.REQUEST,
1310
+ REQUEST_CONTEXT: core.REQUEST_CONTEXT,
1311
+ RESPONSE_INIT: core.RESPONSE_INIT,
1307
1312
  Sanitizer: core.Sanitizer,
1308
- SecurityContext: core.SecurityContext
1313
+ SecurityContext: core.SecurityContext,
1314
+ withHttpTransferCacheOptions: platformBrowser.withHttpTransferCacheOptions
1309
1315
  };
1310
1316
  }, angularDeps = null, getAngularDeps = () => {
1311
1317
  if (!angularDeps) {
@@ -1397,6 +1403,30 @@ var init_registerClientScript = __esm(() => {
1397
1403
  }
1398
1404
  });
1399
1405
 
1406
+ // src/angular/httpTransferCache.ts
1407
+ var ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER = "x-skip-transfer-cache", buildAbsoluteHttpTransferCacheOptions = (options = {}) => {
1408
+ const {
1409
+ filter: userFilter,
1410
+ skipHeader = ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER,
1411
+ ...angularOptions
1412
+ } = options;
1413
+ return {
1414
+ includePostRequests: false,
1415
+ includeRequestsWithAuthHeaders: false,
1416
+ ...angularOptions,
1417
+ filter: (request) => !request.headers.has(skipHeader) && (userFilter?.(request) ?? true)
1418
+ };
1419
+ };
1420
+
1421
+ // src/angular/requestProviders.ts
1422
+ import { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from "@angular/core";
1423
+ var buildRequestProviders = (deps, request, requestContext, responseInit) => [
1424
+ { provide: deps.REQUEST, useValue: request ?? null },
1425
+ { provide: deps.REQUEST_CONTEXT, useValue: requestContext ?? null },
1426
+ { provide: deps.RESPONSE_INIT, useValue: responseInit ?? null }
1427
+ ];
1428
+ var init_requestProviders = () => {};
1429
+
1400
1430
  // src/angular/ssrRender.ts
1401
1431
  var routePropsCache, cacheRouteData = (pagePath, data) => {
1402
1432
  const cacheKey = pagePath.split("?")[0] ?? pagePath;
@@ -1410,18 +1440,24 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
1410
1440
  APP_BASE_HREF: common?.APP_BASE_HREF ?? baseDeps.APP_BASE_HREF,
1411
1441
  bootstrapApplication: platformBrowser?.bootstrapApplication ?? baseDeps.bootstrapApplication,
1412
1442
  DomSanitizer: platformBrowser?.DomSanitizer ?? baseDeps.DomSanitizer,
1443
+ ENVIRONMENT_INITIALIZER: core.ENVIRONMENT_INITIALIZER ?? baseDeps.ENVIRONMENT_INITIALIZER,
1444
+ inject: core.inject ?? baseDeps.inject,
1413
1445
  provideClientHydration: platformBrowser?.provideClientHydration ?? baseDeps.provideClientHydration,
1414
1446
  provideServerRendering: platformServer?.provideServerRendering ?? baseDeps.provideServerRendering,
1415
1447
  provideZonelessChangeDetection: core.provideZonelessChangeDetection,
1416
1448
  reflectComponentType: core.reflectComponentType,
1417
1449
  renderApplication: platformServer?.renderApplication ?? baseDeps.renderApplication,
1450
+ REQUEST: core.REQUEST ?? baseDeps.REQUEST,
1451
+ REQUEST_CONTEXT: core.REQUEST_CONTEXT ?? baseDeps.REQUEST_CONTEXT,
1452
+ RESPONSE_INIT: core.RESPONSE_INIT ?? baseDeps.RESPONSE_INIT,
1418
1453
  Sanitizer: core.Sanitizer,
1419
- SecurityContext: core.SecurityContext
1454
+ SecurityContext: core.SecurityContext,
1455
+ withHttpTransferCacheOptions: platformBrowser?.withHttpTransferCacheOptions ?? baseDeps.withHttpTransferCacheOptions
1420
1456
  };
1421
- }, buildProviders = (deps, sanitizer, maybeProps, tokenMap, userProviders = []) => {
1457
+ }, buildProviders = (deps, sanitizer, maybeProps, tokenMap, request, requestContext, responseInit, userProviders = []) => {
1422
1458
  const providers = [
1423
1459
  deps.provideServerRendering(),
1424
- deps.provideClientHydration(),
1460
+ deps.provideClientHydration(deps.withHttpTransferCacheOptions(buildAbsoluteHttpTransferCacheOptions())),
1425
1461
  deps.provideZonelessChangeDetection(),
1426
1462
  { provide: deps.APP_BASE_HREF, useValue: "/" },
1427
1463
  {
@@ -1429,6 +1465,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
1429
1465
  useValue: sanitizer
1430
1466
  },
1431
1467
  { provide: deps.Sanitizer, useValue: sanitizer },
1468
+ ...buildRequestProviders(deps, request, requestContext, responseInit),
1432
1469
  ...userProviders
1433
1470
  ];
1434
1471
  if (!maybeProps) {
@@ -1511,6 +1548,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
1511
1548
  };
1512
1549
  var init_ssrRender = __esm(() => {
1513
1550
  init_registerClientScript();
1551
+ init_requestProviders();
1514
1552
  routePropsCache = new Map;
1515
1553
  selectorCache = new Map;
1516
1554
  });
@@ -3563,5 +3601,5 @@ export {
3563
3601
  Island
3564
3602
  };
3565
3603
 
3566
- //# debugId=AA77A63D51EA40DB64756E2164756E21
3604
+ //# debugId=D6E8EB6C5390D86864756E2164756E21
3567
3605
  //# sourceMappingURL=index.js.map