@aguacerowx/mapsgl 0.0.59 → 0.0.60

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aguacerowx/mapsgl",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "esbuild": "^0.21.5"
22
22
  },
23
23
  "dependencies": {
24
- "@aguacerowx/javascript-sdk": "^0.0.27",
24
+ "@aguacerowx/javascript-sdk": "^0.0.29",
25
25
  "buffer": "^6.0.3",
26
26
  "fzstd": "^0.1.1",
27
27
  "mapbox-gl": "^3.4.0",
@@ -3,7 +3,7 @@
3
3
  //
4
4
  // ─── Public URL bases (must match radarArchiveCore `objectKeyToUrl`) ───────────
5
5
 
6
- export const NEXRAD_ARCHIVE_LEVEL2_BASE_URL = 'https://d3dc62msmxkrd7.cloudfront.net/level-2';
6
+ export const NEXRAD_ARCHIVE_LEVEL2_BASE_URL = 'https://d3dc62msmxkrd7.cloudfront.net/level-2-new';
7
7
  export const NEXRAD_ARCHIVE_LEVEL3_BASE_URL = 'https://unidata-nexrad-level3.s3.amazonaws.com';
8
8
 
9
9
  // ─── Types ────────────────────────────────────────────────────────────────────
@@ -128,6 +128,7 @@ export function objectKeyFromArchiveUrlString(url: string): string | null {
128
128
  try {
129
129
  const u = new URL(url);
130
130
  const p = u.pathname.replace(/^\/+/, '');
131
+ if (p.startsWith('level-2-new/')) return p.slice('level-2-new/'.length);
131
132
  if (p.startsWith('level-2/')) return p.slice('level-2/'.length);
132
133
  return p || null;
133
134
  } catch {
@@ -2895,7 +2895,7 @@ function applyLevel3StormRelativeToFrame(frame, stormSpeedMs, stormDirectionDeg)
2895
2895
  }
2896
2896
 
2897
2897
  // src/nexrad/nexradArchiveCache.ts
2898
- var NEXRAD_ARCHIVE_LEVEL2_BASE_URL = "https://d3dc62msmxkrd7.cloudfront.net/level-2";
2898
+ var NEXRAD_ARCHIVE_LEVEL2_BASE_URL = "https://d3dc62msmxkrd7.cloudfront.net/level-2-new";
2899
2899
  var NEXRAD_ARCHIVE_LEVEL3_BASE_URL = "https://unidata-nexrad-level3.s3.amazonaws.com";
2900
2900
  var MAX_ARCHIVE_CACHE_ENTRIES = 400;
2901
2901
  var MAX_ARCHIVE_CACHE_BYTES = 180 * 1024 * 1024;
@@ -2976,6 +2976,7 @@ function objectKeyFromArchiveUrlString(url) {
2976
2976
  try {
2977
2977
  const u = new URL(url);
2978
2978
  const p = u.pathname.replace(/^\/+/, "");
2979
+ if (p.startsWith("level-2-new/")) return p.slice("level-2-new/".length);
2979
2980
  if (p.startsWith("level-2/")) return p.slice("level-2/".length);
2980
2981
  return p || null;
2981
2982
  } catch {
@@ -5680,7 +5681,7 @@ function createRadarDecodeWorker() {
5680
5681
  }
5681
5682
  return new Worker(new URL("./radarDecode.worker.bundled.js", import.meta.url), { type: "module" });
5682
5683
  }
5683
- var LEVEL2_BASE_URL = "https://d3dc62msmxkrd7.cloudfront.net/level-2";
5684
+ var LEVEL2_BASE_URL = "https://d3dc62msmxkrd7.cloudfront.net/level-2-new";
5684
5685
  var LEVEL3_BASE_URL = "https://unidata-nexrad-level3.s3.amazonaws.com";
5685
5686
  var DECODE_WORKER_POOL_SIZE = 2;
5686
5687
  var PREFETCH_WORKER_START_INDEX = 1;
@@ -147,7 +147,7 @@ function createRadarDecodeWorker(): Worker {
147
147
  return new Worker(new URL('./radarDecode.worker.bundled.js', import.meta.url), { type: 'module' });
148
148
  }
149
149
 
150
- const LEVEL2_BASE_URL = 'https://d3dc62msmxkrd7.cloudfront.net/level-2';
150
+ const LEVEL2_BASE_URL = 'https://d3dc62msmxkrd7.cloudfront.net/level-2-new';
151
151
  const LEVEL3_BASE_URL = 'https://unidata-nexrad-level3.s3.amazonaws.com';
152
152
 
153
153
  const PREFETCH_DELAY_MS = 0;