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:42:27 +04:00
2026-03-15 16:54:42 +04:00
2026-03-14 23:27:27 +04:00
2026-03-14 17:14:46 +04:00
2026-03-17 16:29:59 +04:00
2026-03-04 20:42:51 +04:00
2026-03-14 21:29:21 +04:00
2026-03-15 02:40:33 +04:00
2026-03-14 21:29:21 +04:00
2026-03-15 15:42:27 +04:00
2026-03-07 18:23:32 +04:00
2026-03-15 19:04:23 +04:00
2026-03-08 22:54:40 +04:00
2026-03-08 09:33:49 +04:00
2026-03-18 10:42:49 +04:00
2026-03-17 11:26:25 +04:00
2026-03-18 10:19:17 +04:00
2026-02-26 10:07:59 +04:00
2026-03-19 02:35:35 +04:00
2026-03-13 12:32:53 +04:00
2026-03-03 09:29:37 +04:00
2026-03-19 02:23:08 +04:00
2026-03-15 15:57:22 +04:00
2026-03-19 03:40:22 +04:00
2026-03-19 03:45:32 +04:00
2026-02-28 10:58:53 +04:00
2026-03-15 15:42:27 +04:00
2026-02-17 19:22:55 +04:00
2026-03-03 15:13:29 +04:00
2026-03-04 20:42:51 +04:00
2026-02-25 10:53:22 +04:00
2026-03-13 08:50:10 +04:00
2026-03-14 18:11:11 +04:00
2026-02-15 19:22:40 +04:00
2026-03-05 09:28:07 +04:00
2026-03-13 00:21:08 +04:00
2026-03-13 00:21:08 +04:00
2026-03-12 08:01:32 +04:00
2026-03-01 10:07:38 +04:00
2026-03-17 01:41:54 +04:00
2026-03-16 08:40:14 +04:00
2026-02-18 23:31:44 +04:00
2026-02-18 23:31:44 +04:00
2026-03-01 15:59:53 +04:00
2026-03-01 15:59:53 +04:00
2026-02-28 18:02:23 +04:00
2026-03-17 09:23:04 +04:00
2026-03-14 21:29:48 +04:00
2026-03-12 14:02:58 +04:00
2026-03-08 22:54:40 +04:00
2026-03-17 14:06:45 +04:00
2026-03-02 19:28:31 +04:00
2026-03-18 10:19:17 +04:00
2026-03-15 16:54:42 +04:00
2026-02-15 19:22:40 +04:00
2026-03-17 12:20:10 +04:00
2026-03-17 14:11:00 +04:00
2026-03-16 11:57:52 +04:00
2026-03-16 08:48:00 +04:00
2026-03-12 00:19:16 +04:00
2026-03-17 12:17:25 +04:00
2026-03-14 21:29:21 +04:00
2026-03-08 22:54:40 +04:00
2026-03-08 22:54:40 +04:00
2026-03-08 22:54:40 +04:00
2026-03-17 19:25:08 +04:00
2026-03-02 22:01:32 +04:00
2026-03-14 21:29:21 +04:00
2026-03-15 16:15:41 +04:00
2026-03-15 19:14:11 +04:00
2026-03-12 00:19:16 +04:00
2026-03-17 14:24:26 +04:00
2026-03-17 14:24:26 +04:00
2026-03-19 03:45:32 +04:00
2026-03-18 16:43:34 +04:00
2026-03-15 21:59:55 +04:00
2026-03-16 17:25:15 +04:00
2026-03-02 14:47:14 +04:00
2026-03-08 14:14:16 +04:00
2026-03-17 19:25:08 +04:00