@jskit-ai/kernel 0.1.47 → 0.1.49
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/package.json
CHANGED
|
@@ -641,7 +641,7 @@ function renderPageLinkWhenLine(pageTarget = {}) {
|
|
|
641
641
|
return "";
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
return " when: ({ auth }) =>
|
|
644
|
+
return " when: ({ auth }) => auth?.authenticated === true\n";
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
async function resolvePageLinkTargetDetails({
|
|
@@ -277,7 +277,7 @@ test("resolvePageLinkTargetDetails emits an auth guard when the surface policy r
|
|
|
277
277
|
context: "page target"
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
assert.equal(details.whenLine, " when: ({ auth }) =>
|
|
280
|
+
assert.equal(details.whenLine, " when: ({ auth }) => auth?.authenticated === true\n");
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
|