israeli-banks-actual-budget-importer 1.6.1 → 1.7.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.7.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.7.0...v1.7.1) (2025-12-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * extend transaction scraping period to 12 months and remove debug logs ([bcfccd8](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/bcfccd8215af67ca1ca714b3677d55ad13c655d6))
7
+
8
+ # [1.7.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.6.1...v1.7.0) (2025-12-04)
9
+
10
+
11
+ ### Features
12
+
13
+ * add logging for first 5 scraped transactions ([47dc4e9](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/47dc4e956395edcddc3779fe252bc15b9ce9d3ca))
14
+
1
15
  ## [1.6.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.6.0...v1.6.1) (2025-12-04)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.1",
2
+ "version": "1.7.1",
3
3
  "name": "israeli-banks-actual-budget-importer",
4
4
  "module": "index.ts",
5
5
  "type": "module",
package/src/utils.ts CHANGED
@@ -20,7 +20,7 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
20
20
  try {
21
21
  const scraper = createScraper({
22
22
  companyId,
23
- startDate: moment().subtract(6, 'month').toDate(),
23
+ startDate: moment().subtract(12, 'month').toDate(),
24
24
  // ExecutablePath: '/opt/homebrew/bin/chromium',
25
25
  args: ['--user-data-dir=./chrome-data'],
26
26
  additionalTransactionInformation: true,
@@ -49,6 +49,7 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
49
49
 
50
50
  const accountBalance = result.accounts![0].balance!;
51
51
  const payees: PayeeEntity[] = await actual.getPayees();
52
+
52
53
  const mappedTransactions = transactions.map(async x => ({
53
54
  date: moment(x.date).format('YYYY-MM-DD'),
54
55
  amount: actual.utils.amountToInteger(x.chargedAmount),
@@ -58,9 +59,6 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
58
59
  imported_id: `${x.identifier}-${moment(x.date).format('YYYY-MM-DD HH:mm:ss')}`,
59
60
  }));
60
61
 
61
- // Print first 5 mapped transactions for debugging
62
- log('MAPPED_TRANSACTIONS_SAMPLE', {sample: await Promise.all(mappedTransactions.slice(0, 5))});
63
-
64
62
  stdout.mute();
65
63
  const importResult = await actual.importTransactions(bank.actualAccountId, await Promise.all(mappedTransactions), {defaultCleared: true});
66
64
  stdout.unmute();