@absolutejs/absolute 0.19.0-beta.984 → 0.19.0-beta.985

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-WLpTnM/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-tY8Rpv/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-WLpTnM/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-tY8Rpv/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-WLpTnM/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-tY8Rpv/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -14830,9 +14830,11 @@ var handleAngularPageRequest = async (input) => {
14830
14830
  const sanitizer = getSsrSanitizer(deps);
14831
14831
  const pageProvidersExport = Reflect.get(pageModule, "providers");
14832
14832
  const pageProviders = Array.isArray(pageProvidersExport) ? pageProvidersExport : [];
14833
+ const handlerCallProviders = Array.isArray(input.providers) ? input.providers : [];
14833
14834
  const combinedProviders = [
14834
14835
  ...await buildRouterRedirectProviders(deps, responseInit),
14835
14836
  ...pageProviders,
14837
+ ...handlerCallProviders,
14836
14838
  ...await buildServerAnimationProviders(usesLegacyAnimations)
14837
14839
  ];
14838
14840
  const providers = buildProviders(deps, sanitizer, input.request, maybeRequestContext, responseInit, combinedProviders);
@@ -14922,23 +14924,9 @@ var useResource = (fetcher, options = {}) => {
14922
14924
  // src/angular/composables/useSubscription.ts
14923
14925
  import { DestroyRef as DestroyRef2, inject as inject3 } from "@angular/core";
14924
14926
  import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
14925
- var warnedOnce = false;
14926
- var tryCaptureDestroyRef = () => {
14927
- try {
14928
- return inject3(DestroyRef2);
14929
- } catch {
14930
- if (!warnedOnce) {
14931
- warnedOnce = true;
14932
- console.warn("[absolute/angular] useSubscription was called outside an Angular injection context (likely from a lifecycle hook). Auto-teardown via takeUntilDestroyed is disabled for that call; the subscription will leak unless the caller manually unsubscribes. Move the call to a field initializer or the constructor, or pass the captured DestroyRef as the third argument.");
14933
- }
14934
- return null;
14935
- }
14936
- };
14937
14927
  function useSubscription(observable, observerOrNext, destroyRef) {
14938
- const captured = destroyRef ?? tryCaptureDestroyRef();
14928
+ const captured = destroyRef ?? inject3(DestroyRef2);
14939
14929
  const observer = typeof observerOrNext === "function" ? { next: observerOrNext } : observerOrNext;
14940
- if (!captured)
14941
- return observable.subscribe(observer);
14942
14930
  return observable.pipe(takeUntilDestroyed(captured)).subscribe(observer);
14943
14931
  }
14944
14932
  // src/angular/composables/useTimers.ts
@@ -15387,5 +15375,5 @@ export {
15387
15375
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
15388
15376
  };
15389
15377
 
15390
- //# debugId=9C93C7CD63419DAF64756E2164756E21
15378
+ //# debugId=58612E9C41E23EB264756E2164756E21
15391
15379
  //# sourceMappingURL=index.js.map