A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
fix(firms): drop argument spread in fires.push — RangeError silently dropped 2 of 3 VIIRS sources (#93)
Yang Song6b7bca2913d3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2e2cf1b22..944bffed7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,16 @@This changelog records public product changes. For the authoritative descriptionof current runtime behavior, see [`docs/CURRENT-STATE.md`](docs/CURRENT-STATE.md).+## [Unreleased]++### Fixed++- All three VIIRS sources now reach the Active Fires layer. Merging a source's+ detections used argument spread, which exceeds the engine's argument limit on+ the two largest sources and dropped them entirely — leaving roughly a third of+ global detections while reporting each dropped source twice, once as+ successful with its real count and once as failed.+## [0.1.0] — 2026-08-31 — One-click install, keyless boot, Provider Settings### Addeddiff --git a/vite.config.js b/vite.config.jsindex 788749862..7a7e6c012 100644--- a/vite.config.js+++ b/vite.config.js@@ -2086,7 +2086,10 @@ function firmsProxy() {try {const records = filterTrailing24h(await fetchSource(key, source), now);sources.push({ source, count: records.length, ok: true });- fires.push(...records);+ // NOT fires.push(...records): spread passes each record as an argument,+ // and a world/2 VIIRS pull exceeds V8's argument limit (~125k) at+ // ~131k records — RangeError, and the whole source is silently dropped.+ for (const record of records) fires.push(record);} catch (err) {console.warn(`[firms-proxy] ${source} fetch failed:`, err?.message || err);sources.push({ source, count: 0, ok: false });