passkey-kit 0.0.28 → 0.0.29

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,19 +1,19 @@
1
1
  {
2
2
  "name": "passkey-kit",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "types/index.d.ts",
7
7
  "dependencies": {
8
8
  "@simplewebauthn/browser": "^10.0.0",
9
9
  "@simplewebauthn/types": "^10.0.0",
10
- "@stellar/stellar-sdk": "12.0.0-rc.3",
10
+ "@stellar/stellar-sdk": "12.0.1",
11
11
  "base64url": "^3.0.1",
12
12
  "bigint-conversion": "^2.4.3",
13
13
  "buffer": "^6.0.3",
14
14
  "cbor-x": "^1.5.9",
15
- "passkey-factory-sdk": "0.0.6",
16
- "passkey-kit-sdk": "0.0.6"
15
+ "passkey-factory-sdk": "0.0.7",
16
+ "passkey-kit-sdk": "0.0.7"
17
17
  },
18
18
  "devDependencies": {
19
19
  "typescript": "^5.4.5"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.6",
2
+ "version": "0.0.7",
3
3
  "name": "passkey-factory-sdk",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "buffer": "6.0.3",
13
- "@stellar/stellar-sdk": "12.0.0-rc.3"
13
+ "@stellar/stellar-sdk": "12.0.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "typescript": "5.4.5"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.6",
2
+ "version": "0.0.7",
3
3
  "name": "passkey-kit-sdk",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "buffer": "6.0.3",
13
- "@stellar/stellar-sdk": "12.0.0-rc.3"
13
+ "@stellar/stellar-sdk": "12.0.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "typescript": "5.4.5"
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import { bufToBigint, bigintToBuf } from 'bigint-conversion'
5
5
  import base64url from 'base64url'
6
6
  import { startRegistration, startAuthentication } from "@simplewebauthn/browser"
7
7
  import { decode } from 'cbor-x/decode'
8
- import type { AuthenticationResponseJSON, RegistrationResponseJSON } from '@simplewebauthn/types';
8
+ import type { RegistrationResponseJSON } from '@simplewebauthn/types';
9
9
  import { Buffer } from 'buffer'
10
10
 
11
11
  /* TODO
@@ -29,6 +29,11 @@ export class PasskeyAccount {
29
29
  public feeBumpJwt: string
30
30
  public factoryContractId: string = networks.testnet.contractId
31
31
 
32
+ /* TODO
33
+ - Consider adding the ability to pass in a keyId and maybe even a contractId in order to preconnect to a wallet
34
+ If just a keyId call connectWallet in order to get the contractId
35
+ If both keyId and contractId are passed in then we can skip the connectWallet call (though we won't get the sudoKeyId in that case)
36
+ */
32
37
  constructor(options: {
33
38
  sequencePublicKey: string,
34
39
  networkPassphrase: Networks,