@vex-chat/spire 4.1.0 → 4.1.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"cliPasskeyPage.js","sourceRoot":"","sources":["../../src/server/cliPasskeyPage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,GAAG,GAAG;IACR,oBAAoB;IACpB,iBAAiB;IACjB,0DAA0D;IAC1D,oBAAoB;IACpB,wBAAwB;IACxB,gBAAgB;IAChB,4BAA4B;IAC5B,2BAA2B;CAC9B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyjBjB,CAAC;AAET,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAmB,EAAE;IACxD,MAA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,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vex-chat/spire",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Vex server implementation in NodeJS.",
5
5
  "type": "module",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "typescript-eslint": "8.58.1",
56
56
  "vitest": "4.1.4",
57
57
  "@vex-chat/eslint-config": "0.0.1",
58
- "@vex-chat/libvex": "^9.1.0"
58
+ "@vex-chat/libvex": "^9.1.1"
59
59
  },
60
60
  "typeCoverage": {
61
61
  "atLeast": 95,
@@ -44,15 +44,25 @@ describe("CLI passkey page", () => {
44
44
  expect(res.headers.get("permissions-policy")).toContain(
45
45
  "publickey-credentials-create=(self)",
46
46
  );
47
- expect(html).toContain("Continue with your passkey.");
47
+ expect(html).toContain("Continue with your passkey");
48
+ expect(html).toContain("--accent: #e5484d");
49
+ expect(html).not.toContain("radial-gradient");
50
+ expect(html).toContain('role="status" aria-live="polite"');
48
51
  expect(html).toContain("resolveTrustedApiBase");
49
52
  expect(html).toContain("Passkey link API origin is not trusted.");
53
+ expect(html).toContain("resolveCompletionCallback");
54
+ expect(html).toContain('callback.protocol !== "vex:" ||');
55
+ expect(html).toContain('callback.pathname !== "/complete" ||');
50
56
  expect(html).toContain("window.history.replaceState");
51
57
  expect(html).toContain('mode === "register-handoff"');
52
58
  expect(html).toContain('mode === "authenticate-handoff"');
53
59
  expect(html).toContain('"/auth/passkey/browser-registration/"');
54
60
  expect(html).toContain('"/auth/passkey/browser-authentication/"');
55
61
  expect(html).toContain("action.disabled = nextBusy || completed");
62
+ expect(html).toContain("showCompletion(");
63
+ expect(html).toContain("action.hidden = true");
64
+ expect(html).toContain('err.name === "NotAllowedError"');
65
+ expect(html).toContain("apiRequestError(response.status, payload)");
56
66
  expect(html).toContain("navigator.credentials.create");
57
67
  expect(html).toContain("navigator.credentials.get");
58
68
  });