@absolutejs/absolute 0.19.0-beta.985 → 0.19.0-beta.986
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/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +17 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +17 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +49 -4
- package/dist/build.js.map +5 -5
- package/dist/index.js +49 -4
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-jf8JvA/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-
|
|
4
|
+
// .angular-partial-tmp-jf8JvA/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-
|
|
51
|
+
// .angular-partial-tmp-jf8JvA/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";
|
package/dist/angular/index.js
CHANGED
|
@@ -4488,7 +4488,19 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
4488
4488
|
const detectedClassName = await traceAngularPhase("wrapper/detect-component-class", () => detectExportedComponentClass(original), { entry: resolvedEntry });
|
|
4489
4489
|
const componentClassName = detectedClassName ?? `${toPascal(fileBase)}Component`;
|
|
4490
4490
|
const usesLegacyAnimations = await traceAngularPhase("wrapper/detect-legacy-animations", () => usesLegacyAngularAnimations(resolvedEntry), { entry: resolvedEntry });
|
|
4491
|
-
const
|
|
4491
|
+
const pageInjectionForHash = providersInjection?.pagesByFile.get(resolvedEntry);
|
|
4492
|
+
const providersHashInput = providersInjection ? (() => {
|
|
4493
|
+
let providersSourceContent = "";
|
|
4494
|
+
try {
|
|
4495
|
+
providersSourceContent = readFileSync4(providersInjection.appProvidersSource, "utf-8");
|
|
4496
|
+
} catch {}
|
|
4497
|
+
return JSON.stringify({
|
|
4498
|
+
basePath: pageInjectionForHash?.basePath ?? null,
|
|
4499
|
+
hasRoutes: pageInjectionForHash?.hasRoutes ?? false,
|
|
4500
|
+
source: providersSourceContent
|
|
4501
|
+
});
|
|
4502
|
+
})() : "no-providers";
|
|
4503
|
+
const serverContentHash = `${Bun.hash(original).toString(BASE_36_RADIX)}.${Bun.hash(providersHashInput).toString(BASE_36_RADIX)}`;
|
|
4492
4504
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
4493
4505
|
const clientFile = join7(indexesDir, jsName);
|
|
4494
4506
|
if (hmr && cachedWrapper && cachedWrapper.serverHash === serverContentHash && existsSync4(clientFile) && (usesLegacyAnimations || !original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__")) && (!usesLegacyAnimations || original.includes("__ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__"))) {
|
|
@@ -4516,6 +4528,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
4516
4528
|
`;
|
|
4517
4529
|
}
|
|
4518
4530
|
const pageInjection = providersInjection?.pagesByFile.get(resolvedEntry);
|
|
4531
|
+
rewritten = rewritten.replace(/\n\/\* __ABS_PROVIDERS_INJECTION_START \*\/[\s\S]*?\/\* __ABS_PROVIDERS_INJECTION_END \*\/\n?/g, "");
|
|
4519
4532
|
if (providersInjection && pageInjection) {
|
|
4520
4533
|
const compiledAppProvidersPath = (() => {
|
|
4521
4534
|
const angularDirAbs = resolve6(outRoot);
|
|
@@ -4540,9 +4553,11 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
4540
4553
|
fragments.push(`{ provide: __abs_APP_BASE_HREF, useValue: ${JSON.stringify(pageInjection.basePath)} }`);
|
|
4541
4554
|
}
|
|
4542
4555
|
rewritten += `
|
|
4556
|
+
/* __ABS_PROVIDERS_INJECTION_START */
|
|
4543
4557
|
${importLines.join(`
|
|
4544
4558
|
`)}
|
|
4545
4559
|
export const providers = [${fragments.join(", ")}];
|
|
4560
|
+
/* __ABS_PROVIDERS_INJECTION_END */
|
|
4546
4561
|
`;
|
|
4547
4562
|
}
|
|
4548
4563
|
await traceAngularPhase("wrapper/write-server-output", () => fs.writeFile(rawServerFile, rewritten, "utf-8"), { entry: resolvedEntry });
|
|
@@ -15375,5 +15390,5 @@ export {
|
|
|
15375
15390
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
15376
15391
|
};
|
|
15377
15392
|
|
|
15378
|
-
//# debugId=
|
|
15393
|
+
//# debugId=44A39DBA5FC9C91464756E2164756E21
|
|
15379
15394
|
//# sourceMappingURL=index.js.map
|