@absolutejs/absolute 0.20.0-beta.175 → 0.20.0-beta.176
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/CHANGELOG.md +9 -0
- package/changelog.json +16 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +4 -2
- package/dist/build.js.map +3 -3
- package/dist/index.js +13 -3
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35921,7 +35921,7 @@ var MAX_PROPAGATION_STEPS = 500, realPath4 = (path) => {
|
|
|
35921
35921
|
if (typeof namespace !== "object" || namespace === null)
|
|
35922
35922
|
throw new Error(`${path} did not evaluate to a module`);
|
|
35923
35923
|
return Object.fromEntries(Object.entries(namespace));
|
|
35924
|
-
}, display = (path) => relative33(process.cwd(), path) || path, SLOW_UPDATE_MS = 500, SLOWEST_SHOWN = 3, statementLabel = (id) => {
|
|
35924
|
+
}, isMissingFile3 = (error) => error instanceof Error && ("code" in error) && error.code === "ENOENT", display = (path) => relative33(process.cwd(), path) || path, SLOW_UPDATE_MS = 500, SLOWEST_SHOWN = 3, statementLabel = (id) => {
|
|
35925
35925
|
const name = id.slice(id.indexOf(":") + 1);
|
|
35926
35926
|
return /^\d+$/.test(name) ? `statement #${name}` : name;
|
|
35927
35927
|
}, slowestStatements = (modules) => modules.flatMap((module) => [...moduleRecord(module)?.lastTimings ?? []].map(([id, duration]) => ({
|
|
@@ -35964,6 +35964,8 @@ var MAX_PROPAGATION_STEPS = 500, realPath4 = (path) => {
|
|
|
35964
35964
|
try {
|
|
35965
35965
|
source = readFileSync54(path, "utf-8");
|
|
35966
35966
|
} catch (error) {
|
|
35967
|
+
if (isMissingFile3(error))
|
|
35968
|
+
return { status: "unchanged" };
|
|
35967
35969
|
reportFailure(path, error);
|
|
35968
35970
|
return { error, status: "failed" };
|
|
35969
35971
|
}
|
|
@@ -43284,6 +43286,7 @@ var setUp = async (next) => {
|
|
|
43284
43286
|
}
|
|
43285
43287
|
cleanupsRegisteredDuringSetup.set(next, collected);
|
|
43286
43288
|
};
|
|
43289
|
+
var hookSignature = (app) => ["setup", "cleanup"].map((kind) => hooksOf(app, kind).map((hook) => Function.prototype.toString.call(hook)).sort().join("\x00")).join("\x01");
|
|
43287
43290
|
var tearDown = async (previous) => {
|
|
43288
43291
|
const registered = cleanupsRegisteredDuringSetup.get(previous) ?? [];
|
|
43289
43292
|
cleanupsRegisteredDuringSetup.delete(previous);
|
|
@@ -43295,7 +43298,14 @@ var adoptListeningApp = (app) => {
|
|
|
43295
43298
|
var swapApp = async (next) => {
|
|
43296
43299
|
const previous = globalThis.__absoluteLiveApp;
|
|
43297
43300
|
globalThis.__absoluteLiveApp = next;
|
|
43298
|
-
if (previous
|
|
43301
|
+
if (previous === next)
|
|
43302
|
+
return;
|
|
43303
|
+
if (previous && hookSignature(previous) === hookSignature(next)) {
|
|
43304
|
+
cleanupsRegisteredDuringSetup.set(next, cleanupsRegisteredDuringSetup.get(previous) ?? []);
|
|
43305
|
+
cleanupsRegisteredDuringSetup.delete(previous);
|
|
43306
|
+
return;
|
|
43307
|
+
}
|
|
43308
|
+
if (previous)
|
|
43299
43309
|
await tearDown(previous);
|
|
43300
43310
|
await setUp(next);
|
|
43301
43311
|
};
|
|
@@ -49433,5 +49443,5 @@ export {
|
|
|
49433
49443
|
wrapPageHandlerWithStreamingSlots
|
|
49434
49444
|
};
|
|
49435
49445
|
|
|
49436
|
-
//# debugId=
|
|
49446
|
+
//# debugId=BD6A6E3CCC95441664756E2164756E21
|
|
49437
49447
|
//# sourceMappingURL=index.js.map
|