Socket
Socket
Sign inDemoInstall

grads

Package Overview
Dependencies
118
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

8

grads.js

@@ -70,3 +70,3 @@ //

// Read in ranges for Latitude, Longitude, and Altitude
if ( typeof lat === 'number' ) {
if ( typeof lat === 'number' || ( typeof lat === 'string' && lat.indexOf(':') === -1 ) ) {
// Singular number passed

@@ -100,3 +100,3 @@ lat = [ lat ];

if ( typeof lon === 'number' ) {
if ( typeof lon === 'number' || ( typeof lon === 'string' && lon.indexOf(':') === -1 ) ) {
// Singular number passed

@@ -134,3 +134,3 @@ lon = [ lon ];

if ( typeof alt === 'number' ) {
if ( typeof alt === 'number' || ( typeof alt === 'string' && alt.indexOf(':') === -1 ) ) {
// Singular number passed

@@ -183,3 +183,3 @@ alt = [ alt ];

( !momentUsed && ( !moment(time[0]).isValid() || !moment(time[1]).isValid() ) ) ) {
throw new Error('Invalid Altitude value was set');
throw new Error('Invalid Time value was set');
}

@@ -186,0 +186,0 @@

{
"name": "grads",
"version": "0.4.0",
"version": "0.4.1",
"description": "Javascript-based GrADS (Grid Analysis and Display System) Data Server client. Primarily an API for accessing weather forecast/climate data for a location or area. Currently, acccesses a few GFS variables but working to include the majority of human-usable variables (do you care about surface flux or gravity wave stuff? I don't!)",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc