@solana/wallet-adapter-base
Advanced tools
Comparing version 0.9.0 to 0.9.1
export class WalletError extends Error { | ||
error; | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
@@ -10,49 +9,97 @@ constructor(message, error) { | ||
export class WalletNotReadyError extends WalletError { | ||
name = 'WalletNotReadyError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletNotReadyError'; | ||
} | ||
} | ||
export class WalletLoadError extends WalletError { | ||
name = 'WalletLoadError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletLoadError'; | ||
} | ||
} | ||
export class WalletConfigError extends WalletError { | ||
name = 'WalletConfigError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletConfigError'; | ||
} | ||
} | ||
export class WalletConnectionError extends WalletError { | ||
name = 'WalletConnectionError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletConnectionError'; | ||
} | ||
} | ||
export class WalletDisconnectedError extends WalletError { | ||
name = 'WalletDisconnectedError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletDisconnectedError'; | ||
} | ||
} | ||
export class WalletDisconnectionError extends WalletError { | ||
name = 'WalletDisconnectionError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletDisconnectionError'; | ||
} | ||
} | ||
export class WalletAccountError extends WalletError { | ||
name = 'WalletAccountError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletAccountError'; | ||
} | ||
} | ||
export class WalletPublicKeyError extends WalletError { | ||
name = 'WalletPublicKeyError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletPublicKeyError'; | ||
} | ||
} | ||
export class WalletKeypairError extends WalletError { | ||
name = 'WalletKeypairError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletKeypairError'; | ||
} | ||
} | ||
export class WalletNotConnectedError extends WalletError { | ||
name = 'WalletNotConnectedError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletNotConnectedError'; | ||
} | ||
} | ||
export class WalletSendTransactionError extends WalletError { | ||
name = 'WalletSendTransactionError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletSendTransactionError'; | ||
} | ||
} | ||
export class WalletSignMessageError extends WalletError { | ||
name = 'WalletSignMessageError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletSignMessageError'; | ||
} | ||
} | ||
export class WalletSignTransactionError extends WalletError { | ||
name = 'WalletSignTransactionError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletSignTransactionError'; | ||
} | ||
} | ||
export class WalletTimeoutError extends WalletError { | ||
name = 'WalletTimeoutError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletTimeoutError'; | ||
} | ||
} | ||
export class WalletWindowBlockedError extends WalletError { | ||
name = 'WalletWindowBlockedError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletWindowBlockedError'; | ||
} | ||
} | ||
export class WalletWindowClosedError extends WalletError { | ||
name = 'WalletWindowClosedError'; | ||
constructor() { | ||
super(...arguments); | ||
this.name = 'WalletWindowClosedError'; | ||
} | ||
} | ||
//# sourceMappingURL=errors.js.map |
@@ -12,3 +12,3 @@ import { BaseWalletAdapter } from './adapter'; | ||
const { signers, ...sendOptions } = options; | ||
signers?.length && transaction.partialSign(...signers); | ||
(signers === null || signers === void 0 ? void 0 : signers.length) && transaction.partialSign(...signers); | ||
transaction = await this.signTransaction(transaction); | ||
@@ -24,3 +24,3 @@ const rawTransaction = transaction.serialize(); | ||
} | ||
throw new WalletSendTransactionError(error?.message, error); | ||
throw new WalletSendTransactionError(error === null || error === void 0 ? void 0 : error.message, error); | ||
} | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"name": "@solana/wallet-adapter-base", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -31,5 +31,5 @@ "repository": "https://github.com/solana-labs/wallet-adapter", | ||
"@solana/web3.js": "^1.20.0", | ||
"eventemitter3": "^4.0.7" | ||
"eventemitter3": "^4.0.0" | ||
}, | ||
"gitHead": "d26322bf91216583bcb983dab677f000c2c2d941" | ||
"gitHead": "dddfd864a629873f5de255a4bccb3533a29317fa" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59789
983
0
Updatedeventemitter3@^4.0.0