Fayez Bast
cf1fdefe92
feat: effective tariff rate source ( #1790 )
...
* feat: effective tariff rate source
* fix(trade): extract parse helpers, fix tests, add health monitoring
- Extract htmlToPlainText/toIsoDate/parseBudgetLabEffectiveTariffHtml
to scripts/_trade-parse-utils.mjs so tests can import directly
- Fix toIsoDate to use month-name lookup instead of fragile
new Date(\`\${text} UTC\`) which is not spec-guaranteed
- Replace new Function() test reconstruction with direct ESM import
- Add test fixtures for parser patterns 2 and 3 (previously untested)
- Add tariffTrendsUs to health.js STANDALONE_KEYS + SEED_META
(key trade:tariffs:v1:840:all:10, maxStaleMin 900 = 2.5x the 6h TTL)
* fix(test): update sourceVersion assertion for budgetlab addition
---------
Co-authored-by: Elie Habib <elie.habib@gmail.com >
2026-03-19 03:45:32 +04:00
..
2026-03-15 15:57:22 +04:00
2026-03-17 14:24:26 +04:00
2026-03-17 19:16:13 +04:00
2026-02-28 17:43:56 +04:00
2026-03-14 15:07:30 +04:00
2026-03-16 08:40:14 +04:00
2026-03-14 21:29:21 +04:00
2026-03-19 00:24:47 +04:00
2026-03-17 06:35:12 +04:00
2026-03-19 03:45:32 +04:00
2026-03-14 21:29:21 +04:00
2026-03-19 02:20:27 +04:00
2026-03-14 21:29:21 +04:00
2026-03-12 06:50:30 +04:00
2026-03-05 10:16:43 +04:00
2026-03-14 21:29:21 +04:00
2026-02-26 20:52:44 +04:00
2026-03-15 15:57:22 +04:00
2026-03-15 15:57:22 +04:00
2026-03-19 02:40:05 +04:00
2026-03-17 06:35:12 +04:00
2026-03-01 11:53:20 +04:00
2026-03-01 11:53:20 +04:00
2026-03-14 21:29:21 +04:00
2026-03-01 15:59:53 +04:00
2026-03-14 21:29:21 +04:00
2026-03-01 11:53:20 +04:00
2026-03-15 11:20:51 +04:00
2026-03-19 00:51:54 +04:00
2026-03-19 00:51:54 +04:00
2026-03-15 15:57:22 +04:00
2026-03-17 18:34:53 +04:00
2026-03-01 11:53:20 +04:00
2026-03-17 16:12:05 +04:00
2026-03-15 13:31:41 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-16 08:48:00 +04:00
2026-03-18 19:53:57 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-16 08:48:00 +04:00
2026-03-15 11:09:34 +04:00
2026-03-15 12:02:37 +04:00
2026-03-19 03:40:22 +04:00
2026-03-19 02:29:44 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 13:31:41 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 11:09:34 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 15:57:22 +04:00
2026-03-18 19:46:12 +04:00
2026-03-15 13:31:41 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 17:44:31 +04:00
2026-03-17 09:18:06 +04:00
2026-03-18 19:53:57 +04:00
2026-03-17 13:26:22 +04:00
2026-03-18 19:53:57 +04:00
2026-03-17 06:35:12 +04:00
2026-03-15 12:02:37 +04:00
2026-03-15 12:02:37 +04:00
2026-03-19 03:45:32 +04:00
2026-03-17 14:24:26 +04:00
2026-03-17 17:45:13 +04:00
2026-03-15 11:09:34 +04:00
2026-03-15 12:02:37 +04:00
2026-03-17 16:12:05 +04:00
2026-03-15 12:02:37 +04:00
2026-03-14 10:23:20 +04:00
2026-03-19 01:57:27 +04:00
2026-02-19 07:53:15 +04:00
2026-03-14 21:29:21 +04:00
2026-03-04 17:37:15 +04:00
2026-03-15 09:29:50 +04:00