Socket
Socket
Sign inDemoInstall

@ledgerhq/connect-kit

Package Overview
Dependencies
Maintainers
20
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/connect-kit - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

14

CHANGELOG.md

@@ -10,2 +10,14 @@ # Changelog

## 1.0.4 - 2022-12-06
### Changed
- Create a new WalletConnect session each time `eth_requestAccounts` is called
(and hence each time the "Use Ledger Live" modal is shown) to avoid reusing
the same WalletConnect URI.
- The "Use Ledger Live" modal is now closed when pressing the "Use Ledger
Live" button to avoid the same WalletConnect URI being reused (e.g. if the
user clicks "Decline" in Ledger Live and clicks "Use Ledger Live" again.
- No longer reuse the provider instance in the Provider module as it
interferes with refreshing the WalletConnect URI.
- No longer reuse the provider instance in the WalletConnect module.
## 1.0.3 - 2022-12-06

@@ -15,3 +27,3 @@

### Changed
- Use the ledgerlive: deeplink for que QR code instead of the WalletConnect
- Use the ledgerlive: deeplink for the QR code instead of the WalletConnect
URI; this allows scanning the QR code with the native camera app.

@@ -18,0 +30,0 @@

4

dist/umd/components/ConnectWithLedgerLiveModal/ConnectWithLedgerLiveModal.d.ts
/// <reference types="react" />
export declare let setWalletConnectUri: (uri: string) => void;
export type ConnectWithLedgerLiveModalProps = {
withQrCode?: boolean;
uri?: string;
onClose?: () => void;
};
declare const ConnectWithLedgerLiveModal: ({ withQrCode, onClose, }: ConnectWithLedgerLiveModalProps) => JSX.Element;
declare const ConnectWithLedgerLiveModal: ({ withQrCode, uri, onClose, }: ConnectWithLedgerLiveModalProps) => JSX.Element;
export default ConnectWithLedgerLiveModal;

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

import WalletConnectProvider from '@walletconnect/ethereum-provider/dist/esm';
type EthereumRequestPayload = {

@@ -9,3 +7,3 @@ method: string;

providers?: EthereumProvider[];
request(payload: EthereumRequestPayload): Promise<unknown>;
request<T = unknown>(args: EthereumRequestPayload): Promise<T>;
disconnect?: {

@@ -37,3 +35,3 @@ (): Promise<void>;

}
type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
type ProviderResult = EthereumProvider | SolanaProvider;
declare function getProvider(): Promise<ProviderResult>;

@@ -40,0 +38,0 @@

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

import WalletConnectProvider from "@walletconnect/ethereum-provider/dist/esm";
import { EthereumProvider } from "../providers/Ethereum";

@@ -16,5 +15,5 @@ import { SolanaProvider } from "../providers/Solana";

}
export type ProviderResult = EthereumProvider | SolanaProvider | WalletConnectProvider;
export type ProviderResult = EthereumProvider | SolanaProvider;
export declare function setProviderType(providerType: SupportedProviders): void;
export declare function setProviderImplementation(providerImplementation: SupportedProviderImplementations): void;
export declare function getProvider(): Promise<ProviderResult>;

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

import { ProviderResult } from "../lib/provider";
export declare const LEDGER_ETHEREUM_PROVIDER = "ethereum";

@@ -10,3 +9,3 @@ export declare const LEDGER_CONNECT_ETHEREUM_PROP = "isLedgerConnect";

providers?: EthereumProvider[];
request(payload: EthereumRequestPayload): Promise<unknown>;
request<T = unknown>(args: EthereumRequestPayload): Promise<T>;
disconnect?: {

@@ -22,2 +21,2 @@ (): Promise<void>;

}
export declare function getEthereumProvider(): ProviderResult;
export declare function getEthereumProvider(): EthereumProvider;

@@ -10,4 +10,5 @@ import { EthereumProvider } from './Ethereum';

}
export declare function initWalletConnectProvider(options: initWalletConnectProviderOptions): void;
export declare function setWalletConnectOptions(options: initWalletConnectProviderOptions): void;
export declare function initWalletConnectProvider(): Promise<void>;
export declare function isWalletConnectProviderConnected(): boolean;
export declare function getWalletConnectProvider(): Promise<EthereumProvider>;
{
"name": "@ledgerhq/connect-kit",
"version": "1.0.3",
"version": "1.0.4",
"description": "A library for dapps to integrate with Ledger Connect and Ledger Live",

@@ -5,0 +5,0 @@ "author": "Hugo Lopes",

Sorry, the diff of this file is too big to display

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