@luxfi/bank 1.3.0 → 1.3.2
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/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/package.json +8 -6
package/dist/index.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ export interface Overview {
|
|
|
171
171
|
account?: Account;
|
|
172
172
|
balances?: Balance[];
|
|
173
173
|
wallet?: Wallet | null;
|
|
174
|
+
wallets?: Wallet[];
|
|
174
175
|
cards?: Card[];
|
|
175
176
|
recentTransactions?: Transaction[];
|
|
176
177
|
}
|
|
@@ -246,6 +247,7 @@ export declare class Bank {
|
|
|
246
247
|
}>;
|
|
247
248
|
wallet(): Promise<{
|
|
248
249
|
wallet: Wallet;
|
|
250
|
+
wallets: Wallet[];
|
|
249
251
|
holdings: Balance[];
|
|
250
252
|
network: string;
|
|
251
253
|
sandbox: boolean;
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
export class BankError extends Error {
|
|
6
6
|
status;
|
|
7
7
|
body;
|
|
8
|
+
// Fields declared explicitly (not via constructor parameter properties) so
|
|
9
|
+
// the source runs under type-stripping runtimes — Node's native TS, Deno, bun.
|
|
8
10
|
constructor(message, status, body) {
|
|
9
11
|
super(message);
|
|
12
|
+
this.name = 'BankError';
|
|
10
13
|
this.status = status;
|
|
11
14
|
this.body = body;
|
|
12
|
-
this.name = 'BankError';
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
// enc encodes a path segment so an id can never traverse or inject into the URL.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxfi/bank",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Typed client for the Lux banking API (/v1/bank)
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "Typed client for the Lux banking API (/v1/bank) \u2014 accounts, payments, cards, crypto, FX, and membership plans.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
"dist",
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"prepublishOnly": "tsc",
|
|
27
|
+
"test": "node --test test/bank.test.ts"
|
|
28
|
+
},
|
|
24
29
|
"devDependencies": {
|
|
25
30
|
"typescript": "^5.9.0"
|
|
26
|
-
},
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "tsc"
|
|
29
31
|
}
|
|
30
|
-
}
|
|
32
|
+
}
|