@reforgium/presentia 1.4.2 → 1.4.3
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.
|
@@ -1414,7 +1414,7 @@ class RouteWatcher {
|
|
|
1414
1414
|
constructor() {
|
|
1415
1415
|
const read = () => {
|
|
1416
1416
|
const snap = this.deepestSnapshot();
|
|
1417
|
-
const url =
|
|
1417
|
+
const url = snapshotFullPath(snap);
|
|
1418
1418
|
!deepEqual(snap.params, this.#params()) && this.#params.set(snap.params);
|
|
1419
1419
|
!deepEqual(snap.queryParams, this.#query()) && this.#query.set(snap.queryParams);
|
|
1420
1420
|
!deepEqual(snap.data, this.#data()) && this.#data.set(snap.data);
|
|
@@ -1449,6 +1449,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1449
1449
|
function joinUrl(segments) {
|
|
1450
1450
|
return segments.length ? segments.map((s) => s.path).join('/') : '';
|
|
1451
1451
|
}
|
|
1452
|
+
/** Builds a full route path from root to current snapshot */
|
|
1453
|
+
function snapshotFullPath(snap) {
|
|
1454
|
+
return snap.pathFromRoot
|
|
1455
|
+
.map((s) => joinUrl(s.url))
|
|
1456
|
+
.filter(Boolean)
|
|
1457
|
+
.join('/');
|
|
1458
|
+
}
|
|
1452
1459
|
|
|
1453
1460
|
/**
|
|
1454
1461
|
* Generated bundle index. Do not edit.
|
package/package.json
CHANGED