@phantom/server-sdk 1.0.0 → 1.0.3

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/dist/index.js CHANGED
@@ -58,7 +58,7 @@ var import_bs58 = __toESM(require("bs58"));
58
58
  // package.json
59
59
  var package_default = {
60
60
  name: "@phantom/server-sdk",
61
- version: "1.0.0",
61
+ version: "1.0.3",
62
62
  description: "Server SDK for Phantom Wallet",
63
63
  repository: {
64
64
  type: "git",
@@ -105,6 +105,7 @@ var package_default = {
105
105
  "@phantom/client": "workspace:^",
106
106
  "@phantom/constants": "workspace:^",
107
107
  "@phantom/parsers": "workspace:^",
108
+ "@phantom/sdk-types": "workspace:^",
108
109
  "@phantom/utils": "workspace:^",
109
110
  bs58: "^6.0.0"
110
111
  },
@@ -233,7 +234,7 @@ var ServerSDK = class {
233
234
  authenticatorName: `auth-${(0, import_utils.getSecureTimestampSync)()}`,
234
235
  authenticatorKind: "keypair",
235
236
  publicKey: base64urlPublicKey,
236
- algorithm: "Ed25519"
237
+ algorithm: this.client.stamper?.algorithm ?? import_constants.DEFAULT_AUTHENTICATOR_ALGORITHM
237
238
  }
238
239
  ]
239
240
  }
package/dist/index.mjs CHANGED
@@ -3,7 +3,11 @@ import {
3
3
  PhantomClient
4
4
  } from "@phantom/client";
5
5
  import { randomUUID, getSecureTimestampSync, isEthereumChain } from "@phantom/utils";
6
- import { ANALYTICS_HEADERS, DEFAULT_WALLET_API_URL } from "@phantom/constants";
6
+ import {
7
+ ANALYTICS_HEADERS,
8
+ DEFAULT_WALLET_API_URL,
9
+ DEFAULT_AUTHENTICATOR_ALGORITHM
10
+ } from "@phantom/constants";
7
11
  import { ApiKeyStamper } from "@phantom/api-key-stamper";
8
12
  import { base64urlEncode, stringToBase64url } from "@phantom/base64url";
9
13
  import bs58 from "bs58";
@@ -11,7 +15,7 @@ import bs58 from "bs58";
11
15
  // package.json
12
16
  var package_default = {
13
17
  name: "@phantom/server-sdk",
14
- version: "1.0.0",
18
+ version: "1.0.3",
15
19
  description: "Server SDK for Phantom Wallet",
16
20
  repository: {
17
21
  type: "git",
@@ -58,6 +62,7 @@ var package_default = {
58
62
  "@phantom/client": "workspace:^",
59
63
  "@phantom/constants": "workspace:^",
60
64
  "@phantom/parsers": "workspace:^",
65
+ "@phantom/sdk-types": "workspace:^",
61
66
  "@phantom/utils": "workspace:^",
62
67
  bs58: "^6.0.0"
63
68
  },
@@ -205,7 +210,7 @@ var ServerSDK = class {
205
210
  authenticatorName: `auth-${getSecureTimestampSync()}`,
206
211
  authenticatorKind: "keypair",
207
212
  publicKey: base64urlPublicKey,
208
- algorithm: "Ed25519"
213
+ algorithm: this.client.stamper?.algorithm ?? DEFAULT_AUTHENTICATOR_ALGORITHM
209
214
  }
210
215
  ]
211
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phantom/server-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Server SDK for Phantom Wallet",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,12 +42,13 @@
42
42
  "typescript": "^5.0.4"
43
43
  },
44
44
  "dependencies": {
45
- "@phantom/api-key-stamper": "^1.0.0",
46
- "@phantom/base64url": "^1.0.0",
47
- "@phantom/client": "^1.0.0",
48
- "@phantom/constants": "^1.0.0",
49
- "@phantom/parsers": "^1.0.0",
50
- "@phantom/utils": "^1.0.0",
45
+ "@phantom/api-key-stamper": "^1.0.3",
46
+ "@phantom/base64url": "^1.0.3",
47
+ "@phantom/client": "^1.0.3",
48
+ "@phantom/constants": "^1.0.3",
49
+ "@phantom/parsers": "^1.0.3",
50
+ "@phantom/sdk-types": "^1.0.3",
51
+ "@phantom/utils": "^1.0.3",
51
52
  "bs58": "^6.0.0"
52
53
  },
53
54
  "files": [