@jskit-ai/kernel 0.1.47 → 0.1.48

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/kernel",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "typebox": "^1.0.81"
@@ -641,7 +641,7 @@ function renderPageLinkWhenLine(pageTarget = {}) {
641
641
  return "";
642
642
  }
643
643
 
644
- return " when: ({ auth }) => Boolean(auth?.authenticated)\n";
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 }) => Boolean(auth?.authenticated)\n");
280
+ assert.equal(details.whenLine, " when: ({ auth }) => auth?.authenticated === true\n");
281
281
  });
282
282
  });
283
283