@getalby/lightning-tools 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/cjs/fiat.cjs +21 -0
- package/dist/cjs/fiat.cjs.map +1 -1
- package/dist/cjs/index.cjs +21 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/fiat.js +21 -1
- package/dist/esm/fiat.js.map +1 -1
- package/dist/esm/index.js +21 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/lightning-tools.umd.js +1 -1
- package/dist/lightning-tools.umd.js.map +1 -1
- package/dist/types/fiat.d.ts +9 -1
- package/dist/types/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -258,6 +258,13 @@ declare const fetchWithL402: (url: string, fetchArgs: RequestInit, options: {
|
|
|
258
258
|
store?: KVStorage;
|
|
259
259
|
}) => Promise<Response>;
|
|
260
260
|
|
|
261
|
+
interface FiatCurrency {
|
|
262
|
+
code: string;
|
|
263
|
+
name: string;
|
|
264
|
+
symbol: string;
|
|
265
|
+
priority: number;
|
|
266
|
+
}
|
|
267
|
+
declare const getFiatCurrencies: () => Promise<FiatCurrency[]>;
|
|
261
268
|
declare const getFiatBtcRate: (currency: string) => Promise<number>;
|
|
262
269
|
declare const getFiatValue: ({ satoshi, currency, }: {
|
|
263
270
|
satoshi: number | string;
|
|
@@ -273,5 +280,5 @@ declare const getFormattedFiatValue: ({ satoshi, currency, locale, }: {
|
|
|
273
280
|
locale: string;
|
|
274
281
|
}) => Promise<string>;
|
|
275
282
|
|
|
276
|
-
export { DEFAULT_PROXY, Invoice, LN_ADDRESS_REGEX, LightningAddress, MemoryStorage, NoStorage, decodeInvoice, fetchWithL402, fromHexString, generateZapEvent, getEventHash, getFiatBtcRate, getFiatValue, getFormattedFiatValue, getSatoshiValue, isUrl, isValidAmount, parseKeysendResponse, parseL402, parseLnUrlPayResponse, parseNostrResponse, sendBoostagram, serializeEvent, validateEvent };
|
|
277
|
-
export type { Boost, BoostArguments, BoostOptions, Event, InvoiceArgs, KVStorage, KeySendRawData, KeysendResponse, LUD18PayerData, LUD18ServicePayerData, LnUrlPayResponse, LnUrlRawData, NostrProvider, NostrResponse, RequestInvoiceArgs, SuccessAction, WeblnBoostParams, ZapArgs, ZapOptions };
|
|
283
|
+
export { DEFAULT_PROXY, Invoice, LN_ADDRESS_REGEX, LightningAddress, MemoryStorage, NoStorage, decodeInvoice, fetchWithL402, fromHexString, generateZapEvent, getEventHash, getFiatBtcRate, getFiatCurrencies, getFiatValue, getFormattedFiatValue, getSatoshiValue, isUrl, isValidAmount, parseKeysendResponse, parseL402, parseLnUrlPayResponse, parseNostrResponse, sendBoostagram, serializeEvent, validateEvent };
|
|
284
|
+
export type { Boost, BoostArguments, BoostOptions, Event, FiatCurrency, InvoiceArgs, KVStorage, KeySendRawData, KeysendResponse, LUD18PayerData, LUD18ServicePayerData, LnUrlPayResponse, LnUrlRawData, NostrProvider, NostrResponse, RequestInvoiceArgs, SuccessAction, WeblnBoostParams, ZapArgs, ZapOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getalby/lightning-tools",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/getAlby/js-lightning-tools.git",
|