@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.browser.cjs
CHANGED
|
@@ -2653,7 +2653,8 @@ var base58Decoder = codecsStrings.getBase58Decoder();
|
|
|
2653
2653
|
var transactionDecoder = transactions.getTransactionDecoder();
|
|
2654
2654
|
var transactionEncoder = transactions.getTransactionEncoder();
|
|
2655
2655
|
function deriveConnectorId(wallet) {
|
|
2656
|
-
|
|
2656
|
+
const kebab = wallet.name.toLowerCase().replace(/[^a-z0-9]+/g, "-");
|
|
2657
|
+
return `wallet-standard:${kebab}`;
|
|
2657
2658
|
}
|
|
2658
2659
|
__name(deriveConnectorId, "deriveConnectorId");
|
|
2659
2660
|
function getPrimaryAccount(accounts) {
|
|
@@ -2696,6 +2697,7 @@ function createWalletStandardConnector(wallet, options = {}) {
|
|
|
2696
2697
|
canAutoConnect: options.canAutoConnect ?? Boolean(wallet.features[features.StandardConnect]),
|
|
2697
2698
|
icon: options.icon ?? wallet.icon,
|
|
2698
2699
|
id: options.id ?? deriveConnectorId(wallet),
|
|
2700
|
+
kind: options.kind ?? "wallet-standard",
|
|
2699
2701
|
name: options.name ?? wallet.name,
|
|
2700
2702
|
ready: typeof window !== "undefined"
|
|
2701
2703
|
};
|