@solana/wallet-adapter-base
Advanced tools
Comparing version 0.9.14 to 0.9.15-alpha.0
@@ -18,3 +18,3 @@ "use strict"; | ||
exports.EventEmitter = eventemitter3_1.default; | ||
const errors_1 = require("./errors"); | ||
const errors_js_1 = require("./errors.js"); | ||
/** | ||
@@ -57,3 +57,3 @@ * A wallet's readiness describes a series of states that the wallet can be in, | ||
if (!publicKey) | ||
throw new errors_1.WalletNotConnectedError(); | ||
throw new errors_js_1.WalletNotConnectedError(); | ||
transaction.feePayer = transaction.feePayer || publicKey; | ||
@@ -60,0 +60,0 @@ transaction.recentBlockhash = |
@@ -17,6 +17,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./adapter"), exports); | ||
__exportStar(require("./errors"), exports); | ||
__exportStar(require("./signer"), exports); | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./adapter.js"), exports); | ||
__exportStar(require("./errors.js"), exports); | ||
__exportStar(require("./signer.js"), exports); | ||
__exportStar(require("./types.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -24,5 +24,5 @@ "use strict"; | ||
exports.BaseMessageSignerWalletAdapter = exports.BaseSignerWalletAdapter = void 0; | ||
const adapter_1 = require("./adapter"); | ||
const errors_1 = require("./errors"); | ||
class BaseSignerWalletAdapter extends adapter_1.BaseWalletAdapter { | ||
const adapter_js_1 = require("./adapter.js"); | ||
const errors_js_1 = require("./errors.js"); | ||
class BaseSignerWalletAdapter extends adapter_js_1.BaseWalletAdapter { | ||
sendTransaction(transaction, connection, options = {}) { | ||
@@ -42,7 +42,7 @@ return __awaiter(this, void 0, void 0, function* () { | ||
// If the error was thrown by `signTransaction`, rethrow it and don't emit a duplicate event | ||
if (error instanceof errors_1.WalletSignTransactionError) { | ||
if (error instanceof errors_js_1.WalletSignTransactionError) { | ||
emit = false; | ||
throw error; | ||
} | ||
throw new errors_1.WalletSendTransactionError(error === null || error === void 0 ? void 0 : error.message, error); | ||
throw new errors_js_1.WalletSendTransactionError(error === null || error === void 0 ? void 0 : error.message, error); | ||
} | ||
@@ -49,0 +49,0 @@ } |
import EventEmitter from 'eventemitter3'; | ||
import { WalletNotConnectedError } from './errors'; | ||
import { WalletNotConnectedError } from './errors.js'; | ||
export { EventEmitter }; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
export * from './adapter'; | ||
export * from './errors'; | ||
export * from './signer'; | ||
export * from './types'; | ||
export * from './adapter.js'; | ||
export * from './errors.js'; | ||
export * from './signer.js'; | ||
export * from './types.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
import { BaseWalletAdapter } from './adapter'; | ||
import { WalletSendTransactionError, WalletSignTransactionError } from './errors'; | ||
import { BaseWalletAdapter } from './adapter.js'; | ||
import { WalletSendTransactionError, WalletSignTransactionError } from './errors.js'; | ||
export class BaseSignerWalletAdapter extends BaseWalletAdapter { | ||
@@ -4,0 +4,0 @@ async sendTransaction(transaction, connection, options = {}) { |
import type { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import EventEmitter from 'eventemitter3'; | ||
import type { WalletError } from './errors'; | ||
import type { WalletError } from './errors.js'; | ||
export { EventEmitter }; | ||
@@ -5,0 +5,0 @@ export interface WalletAdapterEvents { |
@@ -1,5 +0,5 @@ | ||
export * from './adapter'; | ||
export * from './errors'; | ||
export * from './signer'; | ||
export * from './types'; | ||
export * from './adapter.js'; | ||
export * from './errors.js'; | ||
export * from './signer.js'; | ||
export * from './types.js'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import type { SendTransactionOptions, WalletAdapter } from './adapter'; | ||
import { BaseWalletAdapter } from './adapter'; | ||
import type { SendTransactionOptions, WalletAdapter } from './adapter.js'; | ||
import { BaseWalletAdapter } from './adapter.js'; | ||
export interface SignerWalletAdapterProps { | ||
@@ -5,0 +5,0 @@ signTransaction(transaction: Transaction): Promise<Transaction>; |
@@ -1,3 +0,3 @@ | ||
import type { WalletAdapter } from './adapter'; | ||
import type { MessageSignerWalletAdapter, SignerWalletAdapter } from './signer'; | ||
import type { WalletAdapter } from './adapter.js'; | ||
import type { MessageSignerWalletAdapter, SignerWalletAdapter } from './signer.js'; | ||
export declare type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter; | ||
@@ -4,0 +4,0 @@ export declare enum WalletAdapterNetwork { |
{ | ||
"name": "@solana/wallet-adapter-base", | ||
"version": "0.9.14", | ||
"version": "0.9.15-alpha.0", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -9,2 +9,5 @@ "repository": "https://github.com/solana-labs/wallet-adapter", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"main": "./lib/cjs/index.js", | ||
@@ -11,0 +14,0 @@ "module": "./lib/esm/index.js", |
import type { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import EventEmitter from 'eventemitter3'; | ||
import type { WalletError } from './errors'; | ||
import { WalletNotConnectedError } from './errors'; | ||
import type { WalletError } from './errors.js'; | ||
import { WalletNotConnectedError } from './errors.js'; | ||
@@ -6,0 +6,0 @@ export { EventEmitter }; |
@@ -1,4 +0,4 @@ | ||
export * from './adapter'; | ||
export * from './errors'; | ||
export * from './signer'; | ||
export * from './types'; | ||
export * from './adapter.js'; | ||
export * from './errors.js'; | ||
export * from './signer.js'; | ||
export * from './types.js'; |
import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
import type { SendTransactionOptions, WalletAdapter } from './adapter'; | ||
import { BaseWalletAdapter } from './adapter'; | ||
import { WalletSendTransactionError, WalletSignTransactionError } from './errors'; | ||
import type { SendTransactionOptions, WalletAdapter } from './adapter.js'; | ||
import { BaseWalletAdapter } from './adapter.js'; | ||
import { WalletSendTransactionError, WalletSignTransactionError } from './errors.js'; | ||
@@ -6,0 +6,0 @@ export interface SignerWalletAdapterProps { |
@@ -1,3 +0,3 @@ | ||
import type { WalletAdapter } from './adapter'; | ||
import type { MessageSignerWalletAdapter, SignerWalletAdapter } from './signer'; | ||
import type { WalletAdapter } from './adapter.js'; | ||
import type { MessageSignerWalletAdapter, SignerWalletAdapter } from './signer.js'; | ||
@@ -4,0 +4,0 @@ export type Adapter = WalletAdapter | SignerWalletAdapter | MessageSignerWalletAdapter; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
67648