Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

hydrometric-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydrometric-component - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+2
-12
index.js

@@ -15,12 +15,2 @@ (function () {

const getUTC = now => {
var timezoneOffset = now.getTimezoneOffset() * 60000;
return now.getTime() + timezoneOffset;
}
const getLocalTime = (date, timezone) => {
const utc = getUTC(date);
return utc + (3600000 * timezones[timezone]);
}
const { stationid, stationname, timezone, sealevel, gaugemax, gaugescale, gaugeheight } = container.dataset;

@@ -87,3 +77,3 @@

const infoSealevel = createInfoItem("RELATIVE", `Primary water level is ${sealevel} m above sea level`);
const infoTime = createInfoItem("TIME", `Latest reading taken at 0:00 a.m. ${timezone.toUpperCase()}`);
const infoTime = createInfoItem("TIME", `Latest reading taken at 0:00 AM ${timezone.toUpperCase()}`);

@@ -112,4 +102,4 @@ gauge.appendChild(meter);

sealevelText.innerText = `Primary water level is ${Math.round((parseFloat(sealevel) + parseFloat(res.level)) * 1000) / 1000} m above sea level`;
timeText.innerText = `Latest reading taken at ${new Date(res.date + (3600000 * timezones[timezone])).toLocaleTimeString('en-CA', { hour: '2-digit', minute:'2-digit' })} ${timezone.toUpperCase()}`;
timeText.innerText = `Latest reading taken at ${new Date(res.date).toLocaleTimeString([], { timeZone: "UTC", hour: '2-digit', minute:'2-digit' })} ${timezone.toUpperCase()}`;
});
}());
+1
-1
{
"name": "hydrometric-component",
"version": "0.1.0",
"version": "0.1.1",
"description": "\"\"",

@@ -5,0 +5,0 @@ "main": "index.js",