Skip to content

Commit 20121f7

Browse files
authored
Consolidate node implementations into main files (#112)
* getSubscriptionStatus * getSubscriptionStatus * fix: lint errors - remove unnecessary try-catch and fix unused variables * fix: apply formatting * fix: update calculateCurrentPeriod logic and test mocks * adjust new behavior * remove unnecessary try catch * self review * prepareCharge * fix node types * remove redundant tests * format
1 parent 2afb92c commit 20121f7

File tree

7 files changed

+369
-698
lines changed

7 files changed

+369
-698
lines changed

packages/account-sdk/src/interface/payment/index.node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
*/
44
export { getPaymentStatus } from './getPaymentStatus.js';
55
export { getSubscriptionStatus } from './getSubscriptionStatus.js';
6+
export { prepareCharge } from './prepareCharge.js';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from './methods/fetchPermission.js'; // Same as browser environment.
22
export * from './methods/fetchPermissions.js'; // Same as browser environment.
3-
export * from './methods/getPermissionStatus.node.js';
3+
export * from './methods/getPermissionStatus.js';
44
export * from './methods/prepareRevokeCallData.js'; // Same as browser environment.
5-
export * from './methods/prepareSpendCallData.node.js';
5+
export * from './methods/prepareSpendCallData.js';

packages/account-sdk/src/interface/public-utilities/spend-permission/methods/getPermissionStatus.node.ts

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)