@aguacerowx/mapsgl 0.0.53 → 0.0.55
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/package.json +32 -31
- package/src/NexradWeatherController.js +520 -510
- package/src/NwsWatchesWarningsOverlay.js +66 -11
- package/src/WeatherLayerManager.js +14 -1
- package/src/nexrad/loadNexradSites.ts +85 -7
- package/src/nexrad/nexradArchiveCache.ts +286 -66
- package/src/nexrad/nexradArchiveDiag.ts +26 -0
- package/src/nexrad/nexradLevel3Products.ts +581 -581
- package/src/nexrad/nexradMapboxFrameOpts.bundled.js +3 -2
- package/src/nexrad/nexradMapboxFrameOpts.ts +3 -2
- package/src/nexrad/nexradSitesDefault.json +1700 -0
- package/src/nexrad/radarArchiveCore.bundled.js +2807 -42
- package/src/nexrad/radarArchiveCore.ts +149 -30
- package/src/nexrad/radarDecode.worker.bundled.js +130 -126
- package/src/nexrad/radarDecode.worker.ts +13 -215
- package/src/nexrad/radarDecodeSlot.ts +195 -0
- package/src/nwsAlertsFetchSpec.js +114 -0
- package/src/nwsAlertsSupport.js +28 -0
- package/src/nwsSdkConstants.js +8 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verbose NEXRAD archive pipeline logs for React Native (Hermes / Logcat).
|
|
3
|
+
* Filter: {@code [Aguacero][NEXRAD][archive]}
|
|
4
|
+
*
|
|
5
|
+
* Omits raw API keys; use lengths / booleans only.
|
|
6
|
+
*/
|
|
7
|
+
export type NexradArchiveDiagDetail = Record<string, string | number | boolean | null | undefined>;
|
|
8
|
+
|
|
9
|
+
export function redactApiKeyFromUrl(u: string): string {
|
|
10
|
+
return u.replace(/([?&])apiKey=[^&]*/gi, '$1apiKey=(redacted)');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function isReactNative(): boolean {
|
|
14
|
+
const nav = (globalThis as { navigator?: { product?: string } }).navigator;
|
|
15
|
+
return nav?.product === 'ReactNative';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Logs only on React Native to avoid noisy web consoles (mapsgl path is already observable in DevTools). */
|
|
19
|
+
export function nexradArchiveDiag(phase: string, detail?: NexradArchiveDiagDetail): void {
|
|
20
|
+
if (!isReactNative()) return;
|
|
21
|
+
if (detail !== undefined) {
|
|
22
|
+
console.warn(`[Aguacero][NEXRAD][archive] ${phase}`, detail);
|
|
23
|
+
} else {
|
|
24
|
+
console.warn(`[Aguacero][NEXRAD][archive] ${phase}`);
|
|
25
|
+
}
|
|
26
|
+
}
|