Socket
Socket
Sign inDemoInstall

@walletconnect/modal

Package Overview
Dependencies
Maintainers
13
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walletconnect/modal - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2-canary-tma-0

dist/cdn/bundle-5b21cc64.js

2

dist/cdn/bundle.js

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

import{W as e}from"./bundle-5e2b32ad.js";export{e as WalletConnectModal};
export { W as WalletConnectModal } from './bundle-5b21cc64.js';
//# sourceMappingURL=bundle.js.map

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

import{ModalCtrl as t,ThemeCtrl as o,ConfigCtrl as i,OptionsCtrl as n}from"@walletconnect/modal-core";class d{constructor(e){this.openModal=t.open,this.closeModal=t.close,this.subscribeModal=t.subscribe,this.setTheme=o.setThemeConfig,o.setThemeConfig(e),i.setConfig(e),this.initUi()}async initUi(){if(typeof window<"u"){await import("@walletconnect/modal-ui");const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),n.setIsUiLoaded(!0)}}}export{d as WalletConnectModal};
import { ModalCtrl, ThemeCtrl, ConfigCtrl, OptionsCtrl } from '@walletconnect/modal-core';
class WalletConnectModal {
constructor(config) {
this.openModal = ModalCtrl.open;
this.closeModal = ModalCtrl.close;
this.subscribeModal = ModalCtrl.subscribe;
this.setTheme = ThemeCtrl.setThemeConfig;
ThemeCtrl.setThemeConfig(config);
ConfigCtrl.setConfig(config);
this.initUi();
}
async initUi() {
if (typeof window !== "undefined") {
await import('@walletconnect/modal-ui');
const modal = document.createElement("wcm-modal");
document.body.insertAdjacentElement("beforeend", modal);
OptionsCtrl.setIsUiLoaded(true);
}
}
}
export { WalletConnectModal };
//# sourceMappingURL=index.js.map
{
"name": "@walletconnect/modal",
"version": "2.6.1",
"version": "2.6.2-canary-tma-0",
"main": "dist/index.js",

@@ -21,4 +21,4 @@ "unpkg": "dist/cdn/bundle.js",

"dependencies": {
"@walletconnect/modal-core": "2.6.1",
"@walletconnect/modal-ui": "2.6.1"
"@walletconnect/modal-core": "2.6.2-canary-tma-0",
"@walletconnect/modal-ui": "2.6.2-canary-tma-0"
},

@@ -25,0 +25,0 @@ "keywords": [

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