Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@reown/appkit

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reown/appkit - npm Package Compare versions

Comparing version 1.5.3-ae9267.0 to 1.5.3-c311t6.0

dist/esm/src/tests/siwe.test.js

2

dist/esm/exports/constants.js

@@ -1,2 +0,2 @@

export const PACKAGE_VERSION = '1.5.3-ae9267.0';
export const PACKAGE_VERSION = '1.5.3-c311t6.0';
//# sourceMappingURL=constants.js.map
{
"name": "@reown/appkit",
"version": "1.5.3-ae9267.0",
"version": "1.5.3-c311t6.0",
"type": "module",

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

@@ -60,2 +60,3 @@ /* eslint-disable max-depth */

this.setStatus = (status, chain) => {
StorageUtil.setConnectionStatus(status);
AccountController.setStatus(status, chain);

@@ -675,5 +676,8 @@ };

this.setLoading(isLoginEmailUsed);
if (isLoginEmailUsed) {
this.setStatus('connecting', ChainController.state.activeChain);
}
const { isConnected } = await provider.isConnected();
if (isConnected && this.connectionControllerClient?.connectExternal) {
this.connectionControllerClient?.connectExternal({
await this.connectionControllerClient?.connectExternal({
id: 'ID_AUTH',

@@ -687,5 +691,8 @@ info: {

});
this.setLoading(false);
this.setStatus('connected', ChainController.state.activeChain);
}
else {
this.setLoading(false);
this.setStatus('disconnected', ChainController.state.activeChain);
}

@@ -817,2 +824,9 @@ provider.onRpcRequest((request) => {

const adapter = this.getAdapter(chainNamespace);
const connectionStatus = StorageUtil.getConnectionStatus();
if (connectionStatus === 'connected' || connectionStatus === 'connecting') {
this.setStatus('connecting', chainNamespace);
}
else {
this.setStatus(connectionStatus, chainNamespace);
}
adapter?.on('switchNetwork', ({ address, chainId }) => {

@@ -900,2 +914,3 @@ if (chainId && this.caipNetworks?.find(n => n.id === chainId)) {

try {
// this.setStatus('connecting', chainNamespace)
await adapter?.connect({

@@ -913,2 +928,3 @@ id: 'walletConnect',

if (adapter?.reconnect) {
// this.setStatus('reconnecting', chainNamespace)
adapter?.reconnect({

@@ -1068,2 +1084,5 @@ id: 'walletConnect',

async syncExistingConnection() {
if (!CoreHelperUtil.isClient()) {
return;
}
const connectedConnector = SafeLocalStorage.getItem(SafeLocalStorageKeys.CONNECTED_CONNECTOR);

@@ -1078,2 +1097,3 @@ const connectedNamespace = SafeLocalStorage.getItem(SafeLocalStorageKeys.CONNECTED_NAMESPACE);

connectedNamespace) {
this.setStatus('connecting', connectedNamespace);
const adapter = this.getAdapter(connectedNamespace);

@@ -1089,3 +1109,7 @@ const res = await adapter?.syncConnection({

await this.syncAccount({ ...res, chainNamespace: connectedNamespace });
this.setStatus('connected', connectedNamespace);
}
else {
this.setStatus('disconnected', connectedNamespace);
}
if (!this.caipNetworks?.some(network => network.id === res?.chainId)) {

@@ -1095,2 +1119,5 @@ ChainController.showUnsupportedChainUI();

}
else if (connectedConnector !== UtilConstantsUtil.CONNECTOR_TYPE_W3M_AUTH) {
this.setStatus('disconnected', ChainController.state.activeChain);
}
}

@@ -1097,0 +1124,0 @@ getAdapter(namespace) {

@@ -26,5 +26,6 @@ import { vi } from 'vitest';

off: vi.fn(),
emit: vi.fn()
emit: vi.fn(),
construct: vi.fn()
};
export default mockUniversalAdapter;
//# sourceMappingURL=Adapter.js.map

@@ -1,1 +0,1 @@

export declare const PACKAGE_VERSION = "1.5.3-ae9267.0";
export declare const PACKAGE_VERSION = "1.5.3-c311t6.0";

@@ -19,5 +19,3 @@ import { type EventsControllerState, type PublicStateControllerState, type ThemeControllerState, type ModalControllerState, type ConnectedWalletInfo, type RouterControllerState, type ChainAdapter, type SdkVersion, type UseAppKitAccountReturn, type UseAppKitNetworkReturn, type ConnectorType, type Provider } from '@reown/appkit-core';

}
type Adapters = Record<ChainNamespace, AdapterBlueprint & {
adapterType: string;
}>;
type Adapters = Record<ChainNamespace, AdapterBlueprint>;
export declare class AppKit {

@@ -24,0 +22,0 @@ private static instance?;

import type UniversalProvider from '@walletconnect/universal-provider';
import { AdapterBlueprint } from '../adapters/ChainAdapterBlueprint.js';
export declare class UniversalAdapter extends AdapterBlueprint {
connectWalletConnect(onUri: (uri: string) => void, chainId?: number | string): Promise<void>;
connectWalletConnect(onUri: (uri: string) => void): Promise<void>;
connect(params: AdapterBlueprint.ConnectParams): Promise<AdapterBlueprint.ConnectResult>;

@@ -6,0 +6,0 @@ disconnect(): Promise<void>;

@@ -6,5 +6,5 @@ import type { NamespaceConfig } from '@walletconnect/universal-provider';

getMethodsByChainNamespace(chainNamespace: ChainNamespace): string[];
createNamespaces(caipNetworks: CaipNetwork[], defaultChain: number | string | undefined): NamespaceConfig;
createNamespaces(caipNetworks: CaipNetwork[]): NamespaceConfig;
resolveReownName: (name: string) => Promise<string | false>;
getChainsFromNamespaces(namespaces?: SessionTypes.Namespaces): CaipNetworkId[];
};
{
"name": "@reown/appkit",
"version": "1.5.3-ae9267.0",
"version": "1.5.3-c311t6.0",
"type": "module",

@@ -11,10 +11,2 @@ "main": "./dist/esm/exports/index.js",

],
"scripts": {
"build:clean": "rm -rf dist",
"build": "tsc --build tsconfig.build.json",
"watch": "tsc --watch",
"typecheck": "tsc --noEmit",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"test": "vitest run --coverage.enabled=true -- coverage.reporter=json --coverage.reporter=json-summary --coverage.reportOnFailure=true"
},
"exports": {

@@ -101,10 +93,2 @@ ".": {

"dependencies": {
"@reown/appkit-common": "workspace:*",
"@reown/appkit-core": "workspace:*",
"@reown/appkit-polyfills": "workspace:*",
"@reown/appkit-scaffold-ui": "workspace:*",
"@reown/appkit-siwe": "workspace:*",
"@reown/appkit-ui": "workspace:*",
"@reown/appkit-utils": "workspace:*",
"@reown/appkit-wallet": "workspace:*",
"@walletconnect/types": "2.17.0",

@@ -115,3 +99,11 @@ "@walletconnect/universal-provider": "2.17.0",

"valtio": "1.11.2",
"viem": "2.x"
"viem": "2.x",
"@reown/appkit-common": "1.5.3-c311t6.0",
"@reown/appkit-core": "1.5.3-c311t6.0",
"@reown/appkit-polyfills": "1.5.3-c311t6.0",
"@reown/appkit-scaffold-ui": "1.5.3-c311t6.0",
"@reown/appkit-siwe": "1.5.3-c311t6.0",
"@reown/appkit-ui": "1.5.3-ae9267.0",
"@reown/appkit-utils": "1.5.3-c311t6.0",
"@reown/appkit-wallet": "1.5.3-c311t6.0"
},

@@ -139,3 +131,11 @@ "devDependencies": {

"url": "https://github.com/reown-com/appkit/issues"
},
"scripts": {
"build:clean": "rm -rf dist",
"build": "tsc --build tsconfig.build.json",
"watch": "tsc --watch",
"typecheck": "tsc --noEmit",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"test": "vitest run --coverage.enabled=true -- coverage.reporter=json --coverage.reporter=json-summary --coverage.reportOnFailure=true"
}
}
}

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

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