nid-webauthn-emulator 0.1.3 → 0.1.4

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.
@@ -45,10 +45,10 @@ class WebAuthnTestServer {
45
45
  const registrationInfo = verification.registrationInfo;
46
46
  this.credentials.push({
47
47
  id: response.id,
48
- publicKey: registrationInfo.credentialPublicKey,
48
+ publicKey: registrationInfo.credential.publicKey,
49
49
  user,
50
50
  webauthnUserID: user.id,
51
- counter: verification.registrationInfo.counter,
51
+ counter: registrationInfo.credential.counter,
52
52
  backedUp: false,
53
53
  transports: undefined,
54
54
  });
@@ -73,9 +73,9 @@ class WebAuthnTestServer {
73
73
  expectedChallenge: (challenge) => this.challenges.has(challenge),
74
74
  expectedOrigin: this.origin,
75
75
  expectedRPID: this.rpID,
76
- authenticator: {
77
- credentialID: credential.id,
78
- credentialPublicKey: credential.publicKey,
76
+ credential: {
77
+ id: credential.id,
78
+ publicKey: credential.publicKey,
79
79
  counter: credential.counter,
80
80
  transports: credential.transports,
81
81
  },
@@ -44,7 +44,7 @@ class AuthenticatorEmulator {
44
44
  algorithmIdentifiers: params.algorithmIdentifiers ?? AuthenticatorEmulator.DEFAULT_ALGORITHM_IDENTIFIERS,
45
45
  signCounterIncrement: params.stateless
46
46
  ? 0
47
- : params.signCounterIncrement ?? AuthenticatorEmulator.DEFAULT_SIGN_COUNTER_INCREMENT,
47
+ : (params.signCounterIncrement ?? AuthenticatorEmulator.DEFAULT_SIGN_COUNTER_INCREMENT),
48
48
  verifications: params.verifications ?? AuthenticatorEmulator.DEFAULT_VERIFICATIONS,
49
49
  userMakeCredentialInteraction: params.userMakeCredentialInteraction ?? AuthenticatorEmulator.DEFAULT_MAKE_CREDENTIAL_INTERACTION,
50
50
  userGetAssertionInteraction: params.userGetAssertionInteraction ?? AuthenticatorEmulator.DEFAULT_GET_ASSERTION_INTERACTION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nid-webauthn-emulator",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "keywords": [
5
5
  "test",
6
6
  "e2e",
@@ -15,19 +15,19 @@
15
15
  "main": "dist/src/index.js",
16
16
  "types": "dist/src/index.d.ts",
17
17
  "devDependencies": {
18
- "@biomejs/biome": "^1.8.3",
18
+ "@biomejs/biome": "^1.9.3",
19
19
  "@jest/globals": "^29.7.0",
20
- "@simplewebauthn/server": "^10.0.1",
20
+ "@simplewebauthn/server": "^11.0.0",
21
21
  "@tsconfig/recommended": "^1.0.7",
22
- "@types/node": "^22.4.1",
22
+ "@types/node": "^22.7.5",
23
23
  "jest": "^29.7.0",
24
- "ts-jest": "^29.2.4",
24
+ "ts-jest": "^29.2.5",
25
25
  "ts-node": "^10.9.2",
26
- "typescript": "^5.5.4"
26
+ "typescript": "^5.6.3"
27
27
  },
28
28
  "dependencies": {
29
29
  "cbor": "^9.0.2",
30
- "tldts": "^6.1.40"
30
+ "tldts": "^6.1.51"
31
31
  },
32
32
  "scripts": {
33
33
  "check": "biome check .",