Skip to content

Commit

Permalink
deprecate old function and add export to index file
Browse files Browse the repository at this point in the history
  • Loading branch information
gandlafbtc committed Jan 18, 2024
1 parent 9dbc1ff commit 89127d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
import { CashuMint } from './CashuMint.js';
import { CashuWallet } from './CashuWallet.js';
import { setGlobalRequestOptions } from './request.js';
import { getEncodedToken, getDecodedToken, deriveKeysetId } from './utils.js';
import { decode as getDecodedLnInvoice } from '@gandlaf21/bolt11-decode';
import { getEncodedToken, getDecodedToken, deriveKeysetId, decodeInvoice } from './utils.js';
import { decode} from '@gandlaf21/bolt11-decode';

export * from './model/types/index.js';

/**
* @deprecated use decodeInvoice instead
*/
const getDecodedLnInvoice = decode


export {
CashuMint,
CashuWallet,
getDecodedToken,
getEncodedToken,
deriveKeysetId,
getDecodedLnInvoice,
decodeInvoice,
setGlobalRequestOptions
};

0 comments on commit 89127d3

Please sign in to comment.