@tpmjs/official-tax-deduction-scan 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -188,14 +188,14 @@ var taxDeductionScanTool = tool({
188
188
  if (!categoryMap.has(normalizedCategory)) {
189
189
  categoryMap.set(normalizedCategory, []);
190
190
  }
191
- categoryMap.get(normalizedCategory).push(expense);
191
+ categoryMap.get(normalizedCategory)?.push(expense);
192
192
  totalExpenses += expense.amount;
193
193
  }
194
194
  const deductions = [];
195
195
  let totalDeductible = 0;
196
196
  const flaggedForReview = [];
197
197
  for (const [category, categoryExpenses] of categoryMap.entries()) {
198
- const rules = DEDUCTION_RULES[category] || DEDUCTION_RULES["other"];
198
+ const rules = DEDUCTION_RULES[category] || DEDUCTION_RULES.other;
199
199
  let deductionRate = rules.rate;
200
200
  let notes = [...rules.notes];
201
201
  if (rules.entitySpecific?.[entityType]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpmjs/official-tax-deduction-scan",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Scans expense data for potential tax deductions by category",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "dist"
21
21
  ],
22
22
  "devDependencies": {
23
- "tsup": "^8.3.5",
23
+ "tsup": "^8.5.1",
24
24
  "typescript": "^5.9.3",
25
25
  "@tpmjs/tsconfig": "0.0.0"
26
26
  },
@@ -71,7 +71,7 @@
71
71
  ]
72
72
  },
73
73
  "dependencies": {
74
- "ai": "6.0.0-beta.124"
74
+ "ai": "6.0.49"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsup",