Skip to content

Commit

Permalink
fix: rename nwa budget renewal option to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Feb 25, 2025
1 parent 253e186 commit 568371a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getalby/sdk",
"version": "4.1.0-beta.1",
"version": "4.1.0-beta.2",
"description": "The SDK to integrate with Nostr Wallet Connect and the Alby API",
"repository": "https://github.com/getAlby/js-sdk.git",
"bugs": "https://github.com/getAlby/js-sdk/issues",
Expand Down
2 changes: 1 addition & 1 deletion src/NWAClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("NWA URI", () => {
requestMethods: ["get_info", "pay_invoice"],
notificationTypes: ["payment_received", "payment_sent"],
expiresAt,
renewalPeriod: "monthly",
budgetRenewal: "monthly",
maxAmount,
isolated: true,
metadata: { message: "hello world" },
Expand Down
4 changes: 2 additions & 2 deletions src/NWAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type NewNWAClientOptions = {
requestMethods: Nip47Method[];
notificationTypes?: Nip47NotificationType[];
maxAmount?: number;
renewalPeriod?: BudgetRenewalPeriod;
budgetRenewal?: BudgetRenewalPeriod;
expiresAt?: number;
isolated?: boolean;
metadata?: unknown;
Expand All @@ -48,7 +48,7 @@ export class NWAClient {
notificationTypes: options.notificationTypes,
maxAmount: options.maxAmount,
expiresAt: options.expiresAt,
budgetRenewal: options.renewalPeriod,
budgetRenewal: options.budgetRenewal,
isolated: options.isolated,
metadata: options.metadata,
};
Expand Down

0 comments on commit 568371a

Please sign in to comment.