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

@getalby/bitcoin-connect-react

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getalby/bitcoin-connect-react - npm Package Compare versions

Comparing version 2.1.4 to 2.2.0

2

dist/index.modern.js

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

import e from"react";import"@getalby/bitcoin-connect";function n(n,o){e.useEffect(()=>o?(window.addEventListener(n,o),()=>{window.removeEventListener(n,o)}):()=>{},[])}function o(e){n("bc:connected",e.onConnect),n("bc:disconnected",e.onDisconnect),n("bc:connecting",e.onConnecting),n("bc:modalopened",e.onModalOpened),n("bc:modalclosed",e.onModalClosed)}const t=n=>(o(n),/*#__PURE__*/e.createElement("bc-button",null)),c=n=>(o(n),/*#__PURE__*/e.createElement("bc-modal",null));function d(){const e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}export{t as Button,c as Modal,d as launchModal};
import e from"react";import"@getalby/bitcoin-connect";function n(n,o){e.useEffect(()=>o?(window.addEventListener(n,o),()=>{window.removeEventListener(n,o)}):()=>{},[])}function o(e){n("bc:connected",e.onConnect),n("bc:disconnected",e.onDisconnect),n("bc:connecting",e.onConnecting),n("bc:modalopened",e.onModalOpened),n("bc:modalclosed",e.onModalClosed)}const t=n=>(o(n),/*#__PURE__*/e.createElement("bc-button",{"app-name":n.appName})),c=n=>(o(n),/*#__PURE__*/e.createElement("bc-modal",{"app-name":n.appName}));function d(){const e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}export{t as Button,c as Modal,d as launchModal};
//# sourceMappingURL=index.modern.js.map

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

import n from"react";import"@getalby/bitcoin-connect";function e(e,o){n.useEffect(function(){return o?(window.addEventListener(e,o),function(){window.removeEventListener(e,o)}):function(){}},[])}function o(n){e("bc:connected",n.onConnect),e("bc:disconnected",n.onDisconnect),e("bc:connecting",n.onConnecting),e("bc:modalopened",n.onModalOpened),e("bc:modalclosed",n.onModalClosed)}var t=function(e){return o(e),/*#__PURE__*/n.createElement("bc-button",null)},c=function(e){return o(e),/*#__PURE__*/n.createElement("bc-modal",null)};function r(){var n=document.querySelector("bc-modal");if(!n)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");n.setAttribute("open","true")}export{t as Button,c as Modal,r as launchModal};
import e from"react";import"@getalby/bitcoin-connect";function n(n,o){e.useEffect(function(){return o?(window.addEventListener(n,o),function(){window.removeEventListener(n,o)}):function(){}},[])}function o(e){n("bc:connected",e.onConnect),n("bc:disconnected",e.onDisconnect),n("bc:connecting",e.onConnecting),n("bc:modalopened",e.onModalOpened),n("bc:modalclosed",e.onModalClosed)}var t=function(n){return o(n),/*#__PURE__*/e.createElement("bc-button",{"app-name":n.appName})},c=function(n){return o(n),/*#__PURE__*/e.createElement("bc-modal",{"app-name":n.appName})};function r(){var e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}export{t as Button,c as Modal,r as launchModal};
//# sourceMappingURL=index.module.js.map

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("@getalby/bitcoin-connect")):"function"==typeof define&&define.amd?define(["exports","react","@getalby/bitcoin-connect"],n):n((e||self).bitcoinConnectReact={},e.React)}(this,function(e,n){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/t(n);function c(e,n){o.default.useEffect(function(){return n?(window.addEventListener(e,n),function(){window.removeEventListener(e,n)}):function(){}},[])}function i(e){c("bc:connected",e.onConnect),c("bc:disconnected",e.onDisconnect),c("bc:connecting",e.onConnecting),c("bc:modalopened",e.onModalOpened),c("bc:modalclosed",e.onModalClosed)}e.Button=function(e){return i(e),/*#__PURE__*/o.default.createElement("bc-button",null)},e.Modal=function(e){return i(e),/*#__PURE__*/o.default.createElement("bc-modal",null)},e.launchModal=function(){var e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("@getalby/bitcoin-connect")):"function"==typeof define&&define.amd?define(["exports","react","@getalby/bitcoin-connect"],n):n((e||self).bitcoinConnectReact={},e.React)}(this,function(e,n){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/t(n);function c(e,n){o.default.useEffect(function(){return n?(window.addEventListener(e,n),function(){window.removeEventListener(e,n)}):function(){}},[])}function i(e){c("bc:connected",e.onConnect),c("bc:disconnected",e.onDisconnect),c("bc:connecting",e.onConnecting),c("bc:modalopened",e.onModalOpened),c("bc:modalclosed",e.onModalClosed)}e.Button=function(e){return i(e),/*#__PURE__*/o.default.createElement("bc-button",{"app-name":e.appName})},e.Modal=function(e){return i(e),/*#__PURE__*/o.default.createElement("bc-modal",{"app-name":e.appName})},e.launchModal=function(){var e=document.querySelector("bc-modal");if(!e)throw new Error("bc-modal does not exist in the dom. Did you render the Modal somewhere on this page?");e.setAttribute("open","true")}});
//# sourceMappingURL=index.umd.js.map
{
"name": "@getalby/bitcoin-connect-react",
"version": "2.1.4",
"version": "2.2.0",
"type": "module",

@@ -24,3 +24,3 @@ "source": "src/index.ts",

"dependencies": {
"@getalby/bitcoin-connect": "^2.1.4"
"@getalby/bitcoin-connect": "^2.2.0"
},

@@ -27,0 +27,0 @@ "devDependencies": {

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 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