New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aptos-labs/wallet-adapter-core

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptos-labs/wallet-adapter-core - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

7

CHANGELOG.md
# @aptos-labs/wallet-adapter-core
## 2.3.0
### Minor Changes
- bb1595e: Fix deeplink redirect
- 1605d28: Support ReadonlyArray of Wallets in AptosWalletAdapterProvider and WalletCore
## 2.2.0

@@ -4,0 +11,0 @@

4

dist/index.d.ts

@@ -125,3 +125,3 @@ import { Types, TxnBuilderTypes } from 'aptos';

private _connected;
constructor(plugins: Wallet[]);
constructor(plugins: ReadonlyArray<Wallet>);
private scopePollingDetectionStrategy;

@@ -135,3 +135,3 @@ private doesWalletExist;

isConnected(): boolean;
get wallets(): Wallet[];
get wallets(): ReadonlyArray<Wallet>;
/**

@@ -138,0 +138,0 @@ * Getter for the current connected wallet

@@ -343,5 +343,4 @@ "use strict";

);
if (!selectedWallet || selectedWallet.readyState !== "Installed" /* Installed */ && selectedWallet.readyState !== "Loadable" /* Loadable */) {
if (!selectedWallet)
return;
}
if (this._connected) {

@@ -357,6 +356,7 @@ if (((_b = this.wallet) == null ? void 0 : _b.name) === walletName)

window.location.href = location;
} else {
return;
}
}
if (selectedWallet.readyState !== "Installed" /* Installed */ && selectedWallet.readyState !== "Loadable" /* Loadable */) {
return;
}
this._connecting = true;

@@ -363,0 +363,0 @@ this.setWallet(selectedWallet);

{
"name": "@aptos-labs/wallet-adapter-core",
"version": "2.2.0",
"version": "2.3.0",
"description": "Aptos Wallet Adapter Core",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -42,3 +42,3 @@ import { HexString, TxnBuilderTypes, Types } from "aptos";

export class WalletCore extends EventEmitter<WalletCoreEvents> {
private _wallets: Wallet[] = [];
private _wallets: ReadonlyArray<Wallet> = [];
private _wallet: Wallet | null = null;

@@ -51,3 +51,3 @@ private _account: AccountInfo | null = null;

constructor(plugins: Wallet[]) {
constructor(plugins: ReadonlyArray<Wallet>) {
super();

@@ -128,3 +128,3 @@ this._wallets = plugins;

get wallets(): Wallet[] {
get wallets(): ReadonlyArray<Wallet> {
return this._wallets;

@@ -193,9 +193,3 @@ }

if (
!selectedWallet ||
(selectedWallet.readyState !== WalletReadyState.Installed &&
selectedWallet.readyState !== WalletReadyState.Loadable)
) {
return;
}
if (!selectedWallet) return;

@@ -208,2 +202,5 @@ if (this._connected) {

}
// check if we are in a redirectable view (i.e on mobile AND not in an in-app browser) and
// since wallet readyState can be NotDetected, we check it before the next check
if (isRedirectable()) {

@@ -215,6 +212,11 @@ // use wallet deep link

window.location.href = location;
} else {
return;
}
}
if (
selectedWallet.readyState !== WalletReadyState.Installed &&
selectedWallet.readyState !== WalletReadyState.Loadable
) {
return;
}
this._connecting = true;

@@ -221,0 +223,0 @@ this.setWallet(selectedWallet);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc