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

@getalby/bitcoin-connect

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getalby/bitcoin-connect - npm Package Compare versions

Comparing version 3.1.0-beta.0 to 3.1.0-beta.1

2

dist/components/bc-pay-button.d.ts

@@ -12,2 +12,3 @@ import { PropertyValues } from 'lit';

preimage?: string;
_waitingForInvoice: boolean;
private _setPaid?;

@@ -17,2 +18,3 @@ protected updated(changedProperties: PropertyValues): void;

private _onClick;
private _launchModal;
}

@@ -19,0 +21,0 @@ declare global {

2

package.json
{
"name": "@getalby/bitcoin-connect",
"version": "3.1.0-beta.0",
"version": "3.1.0-beta.1",
"description": "Web components to connect to a lightning wallet and power a website with WebLN",

@@ -5,0 +5,0 @@ "type": "module",

@@ -194,6 +194,7 @@ ![image](https://github.com/getAlby/bitcoin-connect/assets/33993199/a0eaf887-2ef1-4369-b6bf-7ef977ca2b67)

- Arguments:
- `invoice` - BOLT11 invoice
- `invoice` - BOLT11 invoice. Modal will only open if an invoice is set
- `title` - (optional) change the title of the button
- `preimage` - (optional) set this if you received an external payment
- - Events:
- Events:
- `click` - fires when the button is clicked. You can load an invoice here and set it on the button using `setAttribute('invoice', 'lnbc...')` which will then automatically launch the modal
- `bc:onpaid` **Experimental** - fires event with WebLN payment response in `event.detail` (contains `preimage`)

@@ -200,0 +201,0 @@ - `<bc-connect/>` - render connect wallet UI without modal

Sorry, the diff of this file is not supported yet

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

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

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

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