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

@web3modal/standalone

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/standalone - npm Package Compare versions

Comparing version 2.0.0-beta.10 to 2.0.0-d8cdbe6

10

dist/_types/src/client.d.ts
import type { ConfigCtrlState } from '@web3modal/core';
import { ModalCtrl } from '@web3modal/core';
/**

@@ -6,2 +7,3 @@ * Types

type Web3ModalConfig = Omit<ConfigCtrlState, 'enableStandaloneMode'>;
type OpenOptions = Parameters<typeof ModalCtrl.open>[0];
/**

@@ -11,8 +13,8 @@ * Client

export declare class Web3Modal {
private initialized;
private queueOpen;
private queueOpenOptions;
constructor(config: Web3ModalConfig);
private initUi;
openModal: (options?: {
uri: string;
standaloneChains?: string[] | undefined;
} | undefined) => void;
openModal: (options?: OpenOptions) => void;
closeModal: () => void;

@@ -19,0 +21,0 @@ subscribeModal: (callback: (newState: import("@web3modal/core/dist/_types/src/types/controllerTypes").ModalCtrlState) => void) => () => void;

2

dist/index.js

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

import{ModalCtrl as r,ConfigCtrl as n}from"@web3modal/core";var l=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,i=(t,e,o)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,b=(t,e)=>{for(var o in e||(e={}))s.call(e,o)&&i(t,o,e[o]);if(a)for(var o of a(e))c.call(e,o)&&i(t,o,e[o]);return t};class p{constructor(e){this.openModal=r.open,this.closeModal=r.close,this.subscribeModal=r.subscribe,this.setTheme=n.setThemeConfig,n.setConfig(b({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await import("@web3modal/ui");const e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e)}}}export{p as Web3Modal};
import{ModalCtrl as o,ConfigCtrl as n}from"@web3modal/core";var a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,r=(i,e,t)=>e in i?a(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,u=(i,e)=>{for(var t in e||(e={}))l.call(e,t)&&r(i,t,e[t]);if(s)for(var t of s(e))p.call(e,t)&&r(i,t,e[t]);return i};class c{constructor(e){this.initialized=!1,this.queueOpen=!1,this.queueOpenOptions=void 0,this.openModal=t=>{this.initialized?o.open(t):(this.queueOpen=!0,this.queueOpenOptions=t)},this.closeModal=o.close,this.subscribeModal=o.subscribe,this.setTheme=n.setThemeConfig,n.setConfig(u({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await import("@web3modal/ui");const e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e)}this.initialized=!0,this.queueOpen&&(this.openModal(this.queueOpenOptions),this.queueOpenOptions=void 0,this.queueOpen=!1)}}export{c as Web3Modal};
//# sourceMappingURL=index.js.map
{
"name": "@web3modal/standalone",
"version": "2.0.0-beta.10",
"version": "2.0.0-d8cdbe6",
"main": "dist/index.js",

@@ -19,4 +19,4 @@ "type": "module",

"dependencies": {
"@web3modal/core": "2.0.0-beta.10",
"@web3modal/ui": "2.0.0-beta.10"
"@web3modal/core": "2.0.0-d8cdbe6",
"@web3modal/ui": "2.0.0-d8cdbe6"
},

@@ -23,0 +23,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