Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wy-water

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wy-water - npm Package Compare versions

Comparing version 1.6.4 to 1.6.5

18

lib/index.js

@@ -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`)

2

package.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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc