New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lnpay

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lnpay - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

6

lib/index.d.ts

@@ -19,3 +19,3 @@ interface LNPayConfig {

num_satoshis: number;
passTru?: Record<string, unknown>;
passThru?: Record<string, unknown>;
description_hash?: string;

@@ -32,3 +32,3 @@ memo?: string;

num_satoshis: number;
passTru?: Record<string, unknown>;
passThru?: Record<string, unknown>;
custom_records?: Record<string, unknown>;

@@ -44,3 +44,3 @@ }) => Promise<any>;

public?: boolean;
passTru?: string;
passThru?: string;
memo?: string;

@@ -47,0 +47,0 @@ num_satoshis?: number;

@@ -0,0 +0,0 @@ "use strict";

{
"name": "lnpay",
"version": "1.1.2",
"version": "1.1.3",
"description": "NPM Package for LNPay.co API.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -139,3 +139,3 @@ # LNPay NodeJS API

- {number} params.num_satoshis - The number of satoshis of the invoice.
- {Object} [params.passTru] - JSON object. you can reference these parameters later via webhooks, etc. Good for ticket # or a certain ID.
- {Object} [params.passThru] - JSON object. you can reference these parameters later via webhooks, etc. Good for ticket # or a certain ID.
- {string} [params.description_hash] - base64 encoded hash of payment. If this is provided, memo will be ignored.

@@ -148,3 +148,3 @@ - {Object} [params.memo] - Add a memo text.

num_satoshis: 100,
passTru: {
passThru: {
order_id: '100',

@@ -173,3 +173,3 @@ },

- {string} params.payment_request - Payment request string.
- {Object} [params.passTru] - JSON object of custom data to pass thru.
- {Object} [params.passThru] - JSON object of custom data to pass thru.

@@ -179,3 +179,3 @@ ```js

payment_request: 'lnbc50n1p0qjf84p...',
passTru: {
passThru: {
order_id: '100',

@@ -202,3 +202,3 @@ },

- {Object} params.num_satoshis - The number of satoshis of the invoice.
- {string} [params.passTru] - Data to pass along with this invoice for webhooks (e.g. ticketId, etc)
- {string} [params.passThru] - Data to pass along with this invoice for webhooks (e.g. ticketId, etc)
- {Object} [params.custom_records] - key:value pairs to be sent in the onion. key must be an integer greater than 65536. value must be a string, encoded binary data is not supported. Too many values here will break things.

@@ -208,3 +208,3 @@

const keysend = await lnpay.keysend({
passTru: {
passThru: {
order_id: '100',

@@ -262,3 +262,3 @@ },

- {boolean} [params.public] - (default: false) if set to true, the LNURL will be a one-time allowable withdraw for the amount set with no sensitive data in the LNURL. Good for public use.
- {string} [params.passTru] - Base64 encoded json of data to use in webhooks, etc
- {string} [params.passThru] - Base64 encoded json of data to use in webhooks, etc
- {string} [params.memo] - Memo note for the invoice.

@@ -265,0 +265,0 @@ - {number} [params.num_satoshis] - Max number of satoshis this LNURL is good for. If blank max wallet balance is used.

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