@solana/client 0.1.2 → 0.1.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.browser.cjs +3 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +3 -1
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +3 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +3 -1
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +3 -1
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/wallet/standard.d.ts +1 -0
- package/dist/types/wallet/standard.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.node.mjs
CHANGED
|
@@ -2651,7 +2651,8 @@ var base58Decoder = getBase58Decoder();
|
|
|
2651
2651
|
var transactionDecoder = getTransactionDecoder();
|
|
2652
2652
|
var transactionEncoder = getTransactionEncoder();
|
|
2653
2653
|
function deriveConnectorId(wallet) {
|
|
2654
|
-
|
|
2654
|
+
const kebab = wallet.name.toLowerCase().replace(/[^a-z0-9]+/g, "-");
|
|
2655
|
+
return `wallet-standard:${kebab}`;
|
|
2655
2656
|
}
|
|
2656
2657
|
__name(deriveConnectorId, "deriveConnectorId");
|
|
2657
2658
|
function getPrimaryAccount(accounts) {
|
|
@@ -2694,6 +2695,7 @@ function createWalletStandardConnector(wallet, options = {}) {
|
|
|
2694
2695
|
canAutoConnect: options.canAutoConnect ?? Boolean(wallet.features[StandardConnect]),
|
|
2695
2696
|
icon: options.icon ?? wallet.icon,
|
|
2696
2697
|
id: options.id ?? deriveConnectorId(wallet),
|
|
2698
|
+
kind: options.kind ?? "wallet-standard",
|
|
2697
2699
|
name: options.name ?? wallet.name,
|
|
2698
2700
|
ready: typeof window !== "undefined"
|
|
2699
2701
|
};
|