Comparing version 1.6.4 to 1.6.5
@@ -28,8 +28,3 @@ "use strict"; | ||
const sitesData = {}; | ||
let count = 0; | ||
const maxIterations = 3; | ||
responseJson.value.timeSeries.forEach((element) => { | ||
if (count >= maxIterations) | ||
return; | ||
count++; | ||
const siteName = element.sourceInfo.siteName; | ||
@@ -84,15 +79,2 @@ const siteCode = element.sourceInfo.siteCode[0].value; | ||
exports.getWyomingSites = getWyomingSites; | ||
// function getDailyRiverMetrics(siteCode, period) { | ||
// return fetch(`${USGS_API_BASE}dv/?site=${siteCode}&period=${period}&format=json`) | ||
// .then((response) => { | ||
// if (!response.ok) { | ||
// throw new Error(`HTTP error! Status: ${response.status}`); | ||
// } | ||
// return response.json(); | ||
// }) | ||
// .catch((error) => { | ||
// console.error(`Failed to fetch data: ${error.message}`); | ||
// throw error; | ||
// }); | ||
// } | ||
function getDailyRiverMetrics(siteCode, period) { | ||
@@ -99,0 +81,0 @@ return fetch(`${USGS_API_BASE}dv/?site=${siteCode}&period=${period}&format=json`) |
{ | ||
"name": "wy-water", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
16298
342