Socket
Socket
Sign inDemoInstall

@walletconnect/client

Package Overview
Dependencies
79
Maintainers
1
Versions
230
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.60 to 1.0.0-beta.61

6

dist/cjs/index.js

@@ -6,4 +6,3 @@ "use strict";

const qrcode_modal_1 = tslib_1.__importDefault(require("@walletconnect/qrcode-modal"));
const cryptoLib = tslib_1.__importStar(require("./crypto"));
const storage_1 = tslib_1.__importDefault(require("./storage"));
const cryptoLib = tslib_1.__importStar(require("@walletconnect/iso-crypto"));
class WalletConnect extends core_1.default {

@@ -13,4 +12,3 @@ constructor(connectorOpts, pushServerOpts) {

cryptoLib,
connectorOpts: Object.assign({ bridge: 'https://bridge.walletconnect.org' }, connectorOpts),
sessionStorage: connectorOpts.storage || new storage_1.default(),
connectorOpts,
qrcodeModal: qrcode_modal_1.default,

@@ -17,0 +15,0 @@ pushServerOpts

{
"name": "@walletconnect/client",
"version": "1.0.0-beta.60",
"version": "1.0.0-beta.61",
"description": "Client for WalletConnect",

@@ -62,8 +62,9 @@ "scripts": {

"dependencies": {
"@walletconnect/core": "^1.0.0-beta.60",
"@walletconnect/qrcode-modal": "^1.0.0-beta.60",
"@walletconnect/types": "^1.0.0-beta.60",
"@walletconnect/utils": "^1.0.0-beta.60"
"@walletconnect/core": "^1.0.0-beta.61",
"@walletconnect/iso-crypto": "^1.0.0-beta.61",
"@walletconnect/qrcode-modal": "^1.0.0-beta.61",
"@walletconnect/types": "^1.0.0-beta.61",
"@walletconnect/utils": "^1.0.0-beta.61"
},
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7"
}

@@ -21,6 +21,6 @@ # WalletConnect Client

// Create a walletConnector
const walletConnector = new WalletConnect();
// Create a connector
const connector = new WalletConnect();
walletConnector.on("session_update", (error, payload) => {
connector.on("session_update", (error, payload) => {
if (error) {

@@ -34,3 +34,3 @@ throw error;

walletConnector.on("disconnect", (error, payload) => {
connector.on("disconnect", (error, payload) => {
if (error) {

@@ -40,6 +40,6 @@ throw error;

// Delete walletConnector
// Delete connector
});
const { accounts, chainId } = await walletConnector.connect();
const { accounts, chainId } = await connector.connect();
```

@@ -62,3 +62,3 @@

// Send transaction
walletConnector
connector
.sendTransaction(tx)

@@ -90,3 +90,3 @@ .then(result => {

// Sign transaction
walletConnector
connector
.signTransaction(tx)

@@ -117,3 +117,3 @@ .then(result => {

// Sign personal message
walletConnector
connector
.signPersonalMessage(msgParams)

@@ -144,3 +144,3 @@ .then((result) => {

// Sign message
walletConnector
connector
.signMessage(msgParams)

@@ -205,3 +205,3 @@ .then((result) => {

// Sign Typed Data
walletConnector
connector
.signTypedData(msgParams)

@@ -240,3 +240,3 @@ .then(result => {

// Send Custom Request
walletConnector
connector
.sendCustomRequest(customRequest)

@@ -259,4 +259,4 @@ .then(result => {

// Create a walletConnector
const walletConnector = new WalletConnect();
// Create a connector
const connector = new WalletConnect();

@@ -281,3 +281,3 @@ // Draft Instant Request

// Create Instant Request
walletConnector
connector
.createInstantRequest(instantRequest)

@@ -284,0 +284,0 @@ .then(result => {

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 too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc