@marinade.finance/cli-common
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "@marinade.finance/cli-common", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "CLI tooling", | ||
@@ -26,5 +26,5 @@ "repository": { | ||
"@solana/web3.js": "^1.78.5", | ||
"@marinade.finance/web3js-common": "^2.1.1", | ||
"@marinade.finance/ts-common": "^2.1.1", | ||
"@marinade.finance/ledger-utils": "^2.1.1", | ||
"@marinade.finance/web3js-common": "^2.1.2", | ||
"@marinade.finance/ts-common": "^2.1.2", | ||
"@marinade.finance/ledger-utils": "^2.1.2", | ||
"@types/expand-tilde": "^2.0.0", | ||
@@ -40,5 +40,5 @@ "bn.js": "^5.2.1", | ||
"@solana/web3.js": "^1.78.5", | ||
"@marinade.finance/web3js-common": "^2.1.1", | ||
"@marinade.finance/ts-common": "^2.1.1", | ||
"@marinade.finance/ledger-utils": "^2.1.1", | ||
"@marinade.finance/web3js-common": "^2.1.2", | ||
"@marinade.finance/ts-common": "^2.1.2", | ||
"@marinade.finance/ledger-utils": "^2.1.2", | ||
"bn.js": "^5.2.1", | ||
@@ -45,0 +45,0 @@ "borsh": "^0.7.0", |
@@ -6,1 +6,2 @@ export * from './context'; | ||
export * from './pinoLogging'; | ||
export * from './wallet'; |
@@ -22,2 +22,3 @@ "use strict"; | ||
__exportStar(require("./pinoLogging"), exports); | ||
__exportStar(require("./wallet"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -10,3 +10,3 @@ import { Keypair, PublicKey, Commitment } from '@solana/web3.js'; | ||
export declare function parseWalletOrPubkey(pubkeyOrPathOrLedger: string): Promise<Wallet | PublicKey>; | ||
export declare function parseClusterUrl(url: string): string; | ||
export declare function parseClusterUrl(url: string | undefined): string; | ||
export declare function parseCommitment(commitment: string): Commitment; |
@@ -108,2 +108,3 @@ "use strict"; | ||
function parseClusterUrl(url) { | ||
const localhost = 'http://127.0.0.1:8899'; | ||
let clusterUrl = url === 'd' | ||
@@ -116,3 +117,3 @@ ? 'devnet' | ||
: url === 'l' || url === 'localnet' || url === 'localhost' | ||
? 'http://127.0.0.1:8899' | ||
? localhost | ||
: url; | ||
@@ -125,3 +126,3 @@ try { | ||
} | ||
return clusterUrl; | ||
return clusterUrl || localhost; | ||
} | ||
@@ -128,0 +129,0 @@ exports.parseClusterUrl = parseClusterUrl; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35432
617